text stringlengths 1 1.11k | source dict |
|---|---|
speed-of-light, hamiltonian-formalism, geometric-optics
On the other hand, if deriving non-relativistic mechanics from relativity, we do assume that the constituents of the mechanical system move at speeds $v$ much smaller than the speed of light $c$ in our lab frame. I.e. $v/c \approx 0$ and our lab frame plays a pri... | {
"domain": "physics.stackexchange",
"id": 35189,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "speed-of-light, hamiltonian-formalism, geometric-optics",
"url": null
} |
design-patterns, actionscript-3
const randomNumber:int = int(Math.random()*100);
if(randomNumber <= 10)
{
return new FruitMaker( new FruitBanana() ).getFruit();
}
if(randomNumber <= 25)
{
return new FruitMaker( new FruitWatermelon() ).getFruit();
... | {
"domain": "codereview.stackexchange",
"id": 13863,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "design-patterns, actionscript-3",
"url": null
} |
php, optimization, classes, security, sql-injection
Title: Using POST data to call a function from a specified class I've inherited a class in a project which is purposed to execute a function that exists in POST data from a specified class. I've tried to clean this up as much as possible as well as secure it against ... | {
"domain": "codereview.stackexchange",
"id": 5396,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, optimization, classes, security, sql-injection",
"url": null
} |
homework-and-exercises, newtonian-mechanics
Assuming $v_0$ is large enough, the box will move up a distance $d$ then stop, at this point friction will be equal (and opposite) to the component of weight down the plank, so $mg\text{sin}(\alpha) = Admg\text{cos}(\alpha)$ i.e. $d = \frac{\text{tan}(\alpha)}{A}$.
By the wo... | {
"domain": "physics.stackexchange",
"id": 99058,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics",
"url": null
} |
artificial-intelligence, neural-networks
I am no expert in AI, i have only have one course about it, but would a neural network be able to help me here, or should i go with another AI? I would suggest you use linear regression, or simply grid search (you can search over all possible number of points for each category,... | {
"domain": "cs.stackexchange",
"id": 3003,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "artificial-intelligence, neural-networks",
"url": null
} |
a uniform random draw from the interval$[0, 1]$, and let$I_{[a, b]}(s)$denote the indicator function, i.e., takes the value$1$if$s \in [a, b]$and$0$otherwise. In this paper, we focus on almost sure convergence. ... Convergence in Probability and in the Mean Part 1 - Duration: 13:37. The WLLN also says that we can make ... | {
"domain": "arizonachess.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9504109770159682,
"lm_q1q2_score": 0.8152322279002393,
"lm_q2_score": 0.8577681104440172,
"openwebmath_perplexity": 918.5543316154289,
"openwebmath_score": 0.728572428226471,
"t... |
java, inheritance
public double length() {
return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
}
public Vector toUnitVector() {
double length = this.length();
if (DoubleHandler.compare(length, 0.0) == 0)
throw new IllegalArgumentException("ERROR: undefined direction! A zero ... | {
"domain": "codereview.stackexchange",
"id": 32810,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, inheritance",
"url": null
} |
java, performance, game, graphics
public void actionPerformed(ActionEvent e) { | {
"domain": "codereview.stackexchange",
"id": 20683,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, performance, game, graphics",
"url": null
} |
data-mining, algorithms, graphs
Title: What is the output polytree after aplying the Ramex algorithm to this graph? I've been trying to understand the way this algorithm works, but I can't get a consistent result.
It has two phases: the first one coverts a table of events into a graph, and the second where the graph i... | {
"domain": "datascience.stackexchange",
"id": 6361,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "data-mining, algorithms, graphs",
"url": null
} |
navigation, robot-localization
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_localization" clear_params="true">
<param name="frequency" value="30"/>
<param name="sensor_timeout" value="0.1"/>
<param name="two_d_mode" value="false"/>
<param name="map_frame" value=... | {
"domain": "robotics.stackexchange",
"id": 20167,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, robot-localization",
"url": null
} |
mass, terminology, definition, matter, bosons
Gluons and strong nuclear force.
No mass here (to the limits of our ability to measure any), but this is better explained by Do Gluons have mass?
The nuclear force, since it is a residual effect of the strong nuclear force, does not contribute mass either. Nuclear Force: W... | {
"domain": "physics.stackexchange",
"id": 93024,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mass, terminology, definition, matter, bosons",
"url": null
} |
type-theory, category-theory
The paper Objects of Categories as Complex Numbers by Marcelo Fiore and Tom Leinster explores this in some detail, though it helps to have a little experience with algebra or category theory.
Sometimes a natural number $n$ will denote a type with exactly $n$ terms in any context (analogous... | {
"domain": "cs.stackexchange",
"id": 15763,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "type-theory, category-theory",
"url": null
} |
c++, ros-indigo
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)
## Declare a C++ library
add_library(classtranslator src/classtranslator.cpp)
add_library(signbotcontroll src/signbot_controll.cpp... | {
"domain": "robotics.stackexchange",
"id": 28789,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, ros-indigo",
"url": null
} |
discrete-signals, continuous-signals, z-transform
So the current output sample $y[n]$ can be computed from the current input sample $x[n]$ and $N$ past input and output samples. $N$ is the order of the difference equation $(2)$.
In your example you have
$$H(z)=\frac{Y(z)}{X(z)}=-c\frac{1-z^{-1}}{1-cz^{-1}},\qquad c=\f... | {
"domain": "dsp.stackexchange",
"id": 8175,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "discrete-signals, continuous-signals, z-transform",
"url": null
} |
quantum-field-theory, mathematical-physics, resource-recommendations, mathematics, non-perturbative
I believe the presence of transcendental objects (like $\zeta(3)$) in QFT amplitudes provides some of the motivation for the work of Bloch and Kreimer. I'm not an expert on this stuff, so perhaps someone else will chime... | {
"domain": "physics.stackexchange",
"id": 3617,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory, mathematical-physics, resource-recommendations, mathematics, ... |
t7-promoter
4. Protein-specific factors providing additional complexity
The protein may be particularly unstable in the host, especially if it is poorly folded due to inherent instability, lack of sufficient prosthetic factors, or improper post-translational modification... Expression of secreted and membrane proteins... | {
"domain": "biology.stackexchange",
"id": 74,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "t7-promoter",
"url": null
} |
php, beginner, object-oriented, validation
if(input::inputExists()){
$validate = new validate();
$validate->checkInput($_POST, array(
'username' => array(
'formatted_name' => 'username',
'required' => 'true',
'min' => 4,
'max' ... | {
"domain": "codereview.stackexchange",
"id": 11090,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, beginner, object-oriented, validation",
"url": null
} |
c++, c++11, recursion, template, stl
Title: Object storing and retrieving using wildcard identifier I'm writing an interpreter for a scripting language which allows objects to:
Have an alias
Be referenced using a wildcard
Contain child objects
Combination of all three above
For example:
CreateWindow("win", ...);
Cre... | {
"domain": "codereview.stackexchange",
"id": 12286,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11, recursion, template, stl",
"url": null
} |
c#, linq, .net-datatable
foreach (var row in metadaDataTable.Rows.Cast<DataRow>())
{
var newfileName = columns.Aggregate(string.Empty, (current, col) => current + (row[col] + "_"));
newPath = CleanFileName(newfileName);
path_variable_value = path_variable == null ? null : row[path_variable... | {
"domain": "codereview.stackexchange",
"id": 23821,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, linq, .net-datatable",
"url": null
} |
method for computing flow fields with 1. 16. A vector field. When converted into cartesian coordinates, the new values will be depicted as (X, Y, Z). Hint: Note that in this case y is a function of x and z; i. Remember that the Jacobian of a transformation is found by first taking the derivative of the transformation, th... | {
"domain": "menubuddy.sg",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.992422760300897,
"lm_q1q2_score": 0.8204475964078123,
"lm_q2_score": 0.8267117898012105,
"openwebmath_perplexity": 683.347574851877,
"openwebmath_score": 0.8974097967147827,
"tags":... |
We can actually estimate the error incurred by Euler's method if we make use of Taylor's Theorem.
The condition that there exists a constant $L \gt 0$ such that \begin{equation*} |f(t, y_1) - f(t, y_2)| \leq L |y_1 - y_2|, \end{equation*} whenever $(t, y_1)$ and $(t, y_2)$ are in $D = [a, b] \times {\mathbb R}$ is cal... | {
"domain": "sfasu.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9904406009350775,
"lm_q1q2_score": 0.8050967947595309,
"lm_q2_score": 0.8128673178375735,
"openwebmath_perplexity": 437.3318428888874,
"openwebmath_score": 0.9919545650482178,
"tags": null... |
newtonian-mechanics, rotation
Title: Normal Force Components For Circular Motion | {
"domain": "physics.stackexchange",
"id": 97665,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, rotation",
"url": null
} |
ros, pose, ros-kinetic
Originally posted by TardiSs with karma: 16 on 2019-06-19
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by gvdhoorn on 2019-06-20:
Wouldn't just looking up the TF to your EEF's frame get you this information? That would immediately be in a format that wou... | {
"domain": "robotics.stackexchange",
"id": 33220,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, pose, ros-kinetic",
"url": null
} |
Homework Trigonometric Limits. This is an example of a$\displaystyle{ \frac{0}{0} }$limit, which cannot be simply evaluated. Saying that these slopes approach 1 is equivalent to the derivative of sin at 0 being 1. 5$ means a 30-degree angle is 50% of the max height. Trigonometric Identities You might like to read about... | {
"domain": "die-kunstproduzenten.de",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.98866824713641,
"lm_q1q2_score": 0.8059944806945032,
"lm_q2_score": 0.8152324938410784,
"openwebmath_perplexity": 667.8116669872439,
"openwebmath_score": 0.8932376503944397... |
javascript, beginner, jquery, ebay
// Combine the two script variables for easier access (this gets added to the code block generated on form submit)
var scriptObj = iQuery + funcs;
//*****************************************************************
// OUTPUT GENERATION FUNCTIONS
//***********... | {
"domain": "codereview.stackexchange",
"id": 8243,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, beginner, jquery, ebay",
"url": null
} |
electrostatics, electric-fields, gauss-law, calculus, coulombs-law
Since I could not follow the argument of the answer given by naturallyInconsistent, I made up an example and evaluated it once with integrals swapped, once left in the original order. Here is the result for $\rho = r$, evaluated at $\mathbf{r} = \mathb... | {
"domain": "physics.stackexchange",
"id": 95363,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrostatics, electric-fields, gauss-law, calculus, coulombs-law",
"url": null... |
electricity, gauss-law, maxwell-equations
$$\nabla.\vec{E}=\frac{q}{\epsilon_0}$$
So this equation tells us the the divergence of electric field through a closed surface enclosing the charge is proportional to the charge or a constant for a given linear medium. This means the size of the sphere is not affecting the ... | {
"domain": "physics.stackexchange",
"id": 82203,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electricity, gauss-law, maxwell-equations",
"url": null
} |
ngs, covid-19, sars-cov-2
# map reads and sort bam file
bowtie2 -x refgenome --no-unal -U ${WGS_SAMPLE} -S - -p 12 | \
samtools view -bS - | \
samtools sort -m 5G - mapping_result_sorted.bam
-U ${WGS_SAMPLE} consider all reads as unpaired reads
-S - bowtie output in SAM format, write to standard out
-x re... | {
"domain": "bioinformatics.stackexchange",
"id": 272,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ngs, covid-19, sars-cov-2",
"url": null
} |
php, datetime
How could I make this "smarter", so that it works out if we are near the end of the month it will show the last 30 days instead of the previous month? Try the DateTime class. In combination with the DateInterval class you can do something like this:
$until = new DateTime();
$interval = new DateInterval(... | {
"domain": "codereview.stackexchange",
"id": 2440,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, datetime",
"url": null
} |
newtonian-mechanics, rotational-dynamics, rotation
Looking at the object, nothing is happening.
Looking at the outside world, it is moving in a predictable pattern.
From an external frame of reference:
The rotation on one axis is easy to see.
The rotation on 2 axes looks like a rotation on a moving axis.
The rotation ... | {
"domain": "physics.stackexchange",
"id": 16704,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, rotational-dynamics, rotation",
"url": null
} |
performance, algorithm, rust, steganography
fn set_bit(&self, n: usize, value: bool) -> u8 {
let mut result = *self;
if n > 7 {
panic!();
}
if value {
result |= 1 << n;
} else {
result &= !(1 << n);
}
result
}
fn set... | {
"domain": "codereview.stackexchange",
"id": 44335,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, algorithm, rust, steganography",
"url": null
} |
We are talking of drawing without replacement.
For the particular case you have given, the two approaches match, but beware
If the question were probability of getting 1 red, 1 blue
$(a) \dfrac{{3\choose1}{1\choose1}}{4\choose2} = \dfrac12$ , but
$(b) \dfrac34\cdot\dfrac13 = \dfrac14$ and you need to multiply by $2... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9910145707166789,
"lm_q1q2_score": 0.8442976459012491,
"lm_q2_score": 0.8519528076067262,
"openwebmath_perplexity": 419.48645035666584,
"openwebmath_score": 0.8306035995483398,
"ta... |
quantum-mechanics, hilbert-space
\begin{equation}
\hat{H} = \frac{1}{2m}\hat{P}^2 + V(\hat{x}) = \frac{1}{2m}\hat{P}^2.
\end{equation}
The kinetic term is still there. This describes a free particle. I believe that the problem with your reasoning is that the idea of "states corresponding to different positions along t... | {
"domain": "physics.stackexchange",
"id": 95027,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, hilbert-space",
"url": null
} |
haskell, hangman, state
wordsPath :: FilePath
wordsPath = "words.txt"-- "/usr/share/dict/words"
data GameState = GameState
{ _wordToGuess :: String
, guesses :: String
}
data GameStatus = Guessing | GameWon | GameLost deriving Eq
hangmanImages :: [[String]]
hangmanImages =
transpose
[ [ " ... | {
"domain": "codereview.stackexchange",
"id": 16014,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "haskell, hangman, state",
"url": null
} |
entomology, temperature
in almost all insects (in some the type of food available can also be limiting). At temperatures above a certain threshold -- usually around 50 F or 10 C -- the warmer it is, the faster development will take place, up to a certain temperature cut-off above which development is drastically slowe... | {
"domain": "biology.stackexchange",
"id": 8529,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "entomology, temperature",
"url": null
} |
visible-light, lenses
The point is that your eye will focus off axis collimated light to an off axis image point. | {
"domain": "physics.stackexchange",
"id": 95242,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visible-light, lenses",
"url": null
} |
go
//the actual merge for overlapping values
mergedIntervals = append(mergedIntervals, []int{intervals[index][0], intervals[index+1][1]})
previousEndTime = intervals[index+1][1]
} else {
//just include current interval with no overlap
mergedIntervals = append(me... | {
"domain": "codereview.stackexchange",
"id": 40988,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "go",
"url": null
} |
c++, c++11, programming-challenge
This can be done inline while you were counting. I would not have a second loop to work it out after the fact.
I would simplify this condition:
} else if (i.second == numberCount) {
if (i.first < number) {
// I find it easier to read as:
} else if (i.second == numberCoun... | {
"domain": "codereview.stackexchange",
"id": 10839,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11, programming-challenge",
"url": null
} |
beginner, rust
fn main() {
let mut game = Game::new();
println!("Welcome to tic tac toe!");
loop {
println!("{}", game.board);
println!("It's {}'s turn.", game.current_player);
let inputs = match get_row_and_column() {
Ok(inputs) => inputs,
Err(_) => return... | {
"domain": "codereview.stackexchange",
"id": 40545,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, rust",
"url": null
} |
ros, callback, ros-kinetic
Title: Callback fuction is not getting called
Hello I am new to ROS. I want to send messages in the form of string from Node1->Node2 and Node2->Node1. As Node1 can publish and Node2 can subscribe to the messages. Node2 can publish the message but in Node1 callback function is not getting ca... | {
"domain": "robotics.stackexchange",
"id": 31840,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, callback, ros-kinetic",
"url": null
} |
energy, energy-conservation
Title: Equal kinetic energy in two bodies of different masses Two bodies that are equal in their size rest in a table. There isn't friction between the bodies and the table.
The mass of one of the bodies $(A)$ are $4$ times bigger than the mass of the second body $(B)$.
$$m_A = 4m_B$$
The b... | {
"domain": "physics.stackexchange",
"id": 28817,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "energy, energy-conservation",
"url": null
} |
java
What improvements can I make to help on my future coding? Interested in knowing if there are other ways to tackle this question, and if the way I solved the problem is safe? This code interacts with the ArrayIntList.java class.
public void mirror() {
if (size != 0) {
int limit = size * 2;
this... | {
"domain": "codereview.stackexchange",
"id": 28175,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java",
"url": null
} |
water, boiling-point, kinetic-theory-of-gases, statistical-mechanics, evaporation
[OP] Diagram for discussion
The diagram has a lot of problems, so I would not use it for discussion. The curve does not change that much with temperature, the shaded area is too big by far (according to Poutnik's answer, a molecule on t... | {
"domain": "chemistry.stackexchange",
"id": 14928,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "water, boiling-point, kinetic-theory-of-gases, statistical-mechanics, evaporatio... |
waves, frequency, radio-frequency, radio
Title: How are sidebands generated in an AM signal? I can't understand how sidebands get generated, even after reading this wikipedia page: https://en.wikipedia.org/wiki/Sideband#Amplitude_modulation
This is how I picture Amplitude Modulation in its simplest form.
There is a LC... | {
"domain": "physics.stackexchange",
"id": 93141,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "waves, frequency, radio-frequency, radio",
"url": null
} |
general-relativity, metric-tensor, tensor-calculus
$$(g + h)^{-1} = g^{-1} - g^{-1} (I + hg^{-1})^{-1} h g^{-1}$$
From the form of the expansion, you can immediatly see the issue : the definition is recursive. Any expansion will require further expansion. There are many forms you can expand it into (here's another one... | {
"domain": "physics.stackexchange",
"id": 60769,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, metric-tensor, tensor-calculus",
"url": null
} |
turing-machines, computability
Question: Is it true that any function $f$ verifying this weaker assumption has Turing degree $≥ 0'$? Just to clarify the question, you are demanding that $f$ be total, i.e. that $f(M)$ terminate in all cases, even if $M$ does not terminate (otherwise we can simply run $M$ and return its... | {
"domain": "cs.stackexchange",
"id": 21673,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turing-machines, computability",
"url": null
} |
electromagnetism, classical-electrodynamics
In terms of field geometry, one consequence of this is that the magnetic field lines all have to form closed loops without beginnings or ends. Another consequence is that line integrals of the magnetic field are only path independent when changes to the path are confined to ... | {
"domain": "physics.stackexchange",
"id": 34555,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetism, classical-electrodynamics",
"url": null
} |
physical-chemistry, equilibrium
$$\begin{array}{cccc}
&\ce{X(g) &<=> &2 Y(g)}\\ \hline
\text{I} &m & &0\\
\text{C} &-\alpha m & &+2 \alpha m\\
\text{E} &m - \alpha m & & 2 \alpha m
\end{array}
$$
Then, the molar fractions are:
$$x_\text{X} = \frac{n_\text{X}}{n_\text{T}} = \frac{m - \alpha m}{m - \alpha m + 2 \alpha... | {
"domain": "chemistry.stackexchange",
"id": 9826,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, equilibrium",
"url": null
} |
general-relativity, gravity, optics, gravitational-lensing
You convert $\Delta\theta$ to $x-y$ plane coordinates I am using by multiplying by a unit distance. This gives the amount and direction of deflection from a given point mass. The total deflection of the light ray at distance B is given by the sum over all poin... | {
"domain": "physics.stackexchange",
"id": 12318,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, gravity, optics, gravitational-lensing",
"url": null
} |
Question 50 Explanation:
In the above question, the relation schema is ( lb , ub ), where lb is the primary key, and ub is the foreign key which is referencing the primary key of its own relation. Hence the table geq is both the master ( which has the referenced key ) as well as the child table (which has the referenci... | {
"domain": "geeksforgeeks.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.962673111584966,
"lm_q1q2_score": 0.8182443945985391,
"lm_q2_score": 0.8499711737573762,
"openwebmath_perplexity": 1730.2345813167385,
"openwebmath_score": 0.4198146164417267,
"tag... |
dft, window-functions
Title: Overlap correlation indices in Harris 1978 In the heavily cited paper by Harris 1978, there is a section on "Overlap Correlation" where he's using a "fractional overlap r" in his equation. Here is a screen shot from the open source paper linked above: | {
"domain": "dsp.stackexchange",
"id": 11380,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "dft, window-functions",
"url": null
} |
c++, beginner, game, sfml, pong
bool PSprite::strictlyLowerThan(PSprite& spr)
{
return spr.strictlyHigherThan(*this); //If spr is strictly higher than this
}
bool PSprite::strictlyLeftOf(PSprite& spr)
{
return lowerRight.x<spr.getPosition().x; //If the rightest point of this is on spr... | {
"domain": "codereview.stackexchange",
"id": 33610,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, beginner, game, sfml, pong",
"url": null
} |
nomenclature
Title: Why is the gram no longer a function of the atomic mass number? According to Wikipedia,
... the definition of the gram is not (as of 2011) mathematically tied to that of the atomic mass unit
Why did we change that? Unless I misunderstand the question, the gram was never defined that way.
For his... | {
"domain": "chemistry.stackexchange",
"id": 3507,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nomenclature",
"url": null
} |
beam
As for the additional deflection due to the cantilever's deformation after the support, we can simply model the cantilever alone as if it had a fixed support instead of a pinned one.
The table I used before doesn't actually have cantilever results, but I remember that a cantilever's maximum deflection is equal to... | {
"domain": "engineering.stackexchange",
"id": 4775,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beam",
"url": null
} |
object-oriented, game, objective-c, queue
_activeJob.remainingJobSlots++;
}
-(void) finishOneJobUnit {
[_activeJob finishOneJobUnit];
}
-(int) numberOfJobsInArray {
return (int) _jobArray.count;
}
-(JobType) activeJobType {
return _activeJob.jobType;
}
-(NSMutableArray *)availableJobSlotsForWork {
retu... | {
"domain": "codereview.stackexchange",
"id": 8291,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "object-oriented, game, objective-c, queue",
"url": null
} |
ros, tf-listener, tf-broadcaster, rgbdslam-v2, transform
where 'vision' is considered the base of the robot. 'till now everything is ok. The problem comes when I run the package and start processing. Using the tf view_frames, I can check the following on the tf tree:
Broadcaster: /rgbdslam
Average rate: 10000.000 Hz
M... | {
"domain": "robotics.stackexchange",
"id": 19371,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, tf-listener, tf-broadcaster, rgbdslam-v2, transform",
"url": null
} |
javascript, jquery, underscore.js
// Set previous/next month functionality
function setMonth(month){
getMonthData(month, function (data) {
_.extend(data, viewHelpers);
$(el)
.empty()
.append(_.template(Templates.calendarDay)({allDaysData: data}));
... | {
"domain": "codereview.stackexchange",
"id": 17265,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, underscore.js",
"url": null
} |
database-theory
From that last example I can vaguely see that e.g. $f(e_1 ◦ e_2) ≡ f(e_1) ◦ e_2$ there is a "moving out" of $e_2$ from the equation, but I'm not sure what direction up/down and not sure what the meaning/purpose is in doing this. Wondering what exactly this means. I would normally say "pushing inward"/"... | {
"domain": "cs.stackexchange",
"id": 11114,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "database-theory",
"url": null
} |
c++, c++14
/// \brief Returns the hyperbolic cosine of the underlying value.
/// \tparam T Predicate of the checked number.
/// \param[in] number Input value.
/// \return Hyperbolic cosine of the underlying value.
template <Predicate T>
auto cosh(const CheckedNumber<T>& number);
/// \brief Returns the hyperbolic tang... | {
"domain": "codereview.stackexchange",
"id": 30098,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++14",
"url": null
} |
python, unicode
write something like:
return " ".join("{}{}".format(key, str(count).translate(SUPERSCRIPT_TRANS))
for key, count in sorted(self.items())
or, if you are happy to use formatted string literals:
return " ".join(f"{key}{str(count).translate(SUPERSCRIPT_TRANS)}"
for key, cou... | {
"domain": "codereview.stackexchange",
"id": 31906,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, unicode",
"url": null
} |
ros-kinetic
Originally posted by gvdhoorn with karma: 86574 on 2018-03-06
This answer was ACCEPTED on the original site
Post score: 2
Original comments
Comment by Ibrahim_aerospace on 2018-03-07:
sir thanks for help. now error is ibrahim@ibrahim-Aspire-V5-591G:~/catkin_ws$ source devel/setup.bashibrahim@ibrahim-Aspir... | {
"domain": "robotics.stackexchange",
"id": 30211,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-kinetic",
"url": null
} |
type-theory, inductive-datatypes, abstract-data-types
Indeed, all the occurrences of r must appear in positive position.
Should all type variables also only appear covariantly?
Yes, precisely.
Essentially, your Fix Bad tries to generate a type $T$ isomorphic to $T \to T$. If we had that, we would have a model of the... | {
"domain": "cs.stackexchange",
"id": 11613,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "type-theory, inductive-datatypes, abstract-data-types",
"url": null
} |
slam, navigation, stereo-camera, occupancy-grid, rtabmap-ros
<!-- RTAB-Map's parameters -->
<param name="Rtabmap/TimeThr" type="string" value="700"/>
<param name="Grid/DepthDecimation" type="string" value="4"/>
<param name="Grid/FlatObstacleDetected" ty... | {
"domain": "robotics.stackexchange",
"id": 26078,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, stereo-camera, occupancy-grid, rtabmap-ros",
"url": null
} |
fasta, python
I get almost what i want, but the header still has spaces:
>TEST~~~TEST~~~AAA a aa
ATGATG
I have tried to make the .id and .description match by adding a "_" to the end of .id, or by adding .replace(" ", "_") to both .id and .description (despite there being no spaces in .id), but I just cant seem to ge... | {
"domain": "bioinformatics.stackexchange",
"id": 1429,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fasta, python",
"url": null
} |
quantum-mechanics, electromagnetism, optics, quantum-electrodynamics, quantum-optics
The wavelike nature of photons, as displayed in the Hong-Ou-Mandel effect, is rather subtle ground, but let me start off with a statement that sounds controversial but really isn't: | {
"domain": "physics.stackexchange",
"id": 75591,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, electromagnetism, optics, quantum-electrodynamics, quantum-opti... |
f#, playing-cards
let cardsHaveFourOfAKind =
List.groupBy (fun c -> c.Rank)
>> List.map snd
>> List.tryFind (List.length >> (=) 4)
Actual functions
// All these functions return None if nothing is found and Some(Card list)
// if a project is found, including the cards that make up the project.
// Someh... | {
"domain": "codereview.stackexchange",
"id": 21207,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "f#, playing-cards",
"url": null
} |
Quantified Statements To English
The problem I am working on is:
Translate these statements into English, where C(x) is “x is a comedian” and F(x) is “x is funny” and the domain consists of all people.
a) $∀x(C(x)→F(x))$
b)$∀x(C(x)∧F(x))$
c) $∃x(C(x)→F(x))$
d)$∃x(C(x)∧F(x))$
-------------------------------------... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9241418158002492,
"lm_q1q2_score": 0.8029191420533315,
"lm_q2_score": 0.8688267626522814,
"openwebmath_perplexity": 749.37068222931,
"openwebmath_score": 0.7554276585578918,
"tags"... |
2018 Ford Ranger Review, Miniature Scottish Terrier Puppies For Sale, White Hair Cartoon Boy, How To Brew Genmaicha Reddit, Contact Us Text Generator, Homemade Roasted Almond Chocolate Recipe, Blind Pig Beer Price, | {
"domain": "ochorvatsku.cz",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773708026035287,
"lm_q1q2_score": 0.81446713057223,
"lm_q2_score": 0.8333245973817158,
"openwebmath_perplexity": 405.818027622058,
"openwebmath_score": 0.7087054252624512,
"tags": nu... |
algorithms, time-complexity, amortized-analysis, stacks, queues
It is obviously that $insert$ takes constant time and $remove$ takes $O(n)$ time in worst case. (where n is the size of the queue).
Now considering an sequence of queue operation with length $n$ (pop an empty stack is allowed), I want to get the amortized... | {
"domain": "cs.stackexchange",
"id": 13460,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, time-complexity, amortized-analysis, stacks, queues",
"url": null
} |
formal-languages
Title: Why is the quantity of sentences not finite? I'm currently studying formal languages. My lecture states that, while the words of a language are finite, the sentences build with the underlying grammar are not. But I don't get why this should be generally true. I can imagine grammar which leaves ... | {
"domain": "cs.stackexchange",
"id": 8445,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "formal-languages",
"url": null
} |
homework-and-exercises, quantum-information, rotation, density-operator, bloch-sphere
There are some caveats in that section about multiple solutions etc, which you should check.
Anyway, in your case
\begin{align*}
\alpha &= \text{atan2}(-\sin\theta,0) = -90^\circ \\
\beta &= \arccos(\cos\theta) = \theta
\\
\gamma &= ... | {
"domain": "physics.stackexchange",
"id": 53446,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, quantum-information, rotation, density-operator, bloch-sph... |
randomness, matrix-model
This has even been proposed as a definition of quantum chaotic system, and a random matrix like distribution of the energies has been observed in many real systems.${}^2$
To your question: the different ensembles describe quantum systems with different symmetries. The GUE is the most general a... | {
"domain": "physics.stackexchange",
"id": 68730,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "randomness, matrix-model",
"url": null
} |
now write it dx/dt + Mx = BeMt,
and use the particular solution and general solution method (do you know what that is?) …
the g s gives you Ce-Mt, and the p s of course is (B/M - 1)eMt, or just BeMt.
And I got it from the "D" method …
we write D instead of d/dt, so the original equation is (D2 - A)x = 0,
then (D +... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9865717428891156,
"lm_q1q2_score": 0.8385575497980513,
"lm_q2_score": 0.849971181358171,
"openwebmath_perplexity": 1362.3640592392353,
"openwebmath_score": 0.761214554309845,
"tags... |
java, number-guessing-game
Title: One-shot number guessing game This program is one of the exercises I solved in my book. Can anyone suggest any improvements to it?
import java.util.Random;
import java.util.Scanner;
public class GuessMyNumber {
public static void main(String[] args) {
Scanner in = new Scanner(... | {
"domain": "codereview.stackexchange",
"id": 21915,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, number-guessing-game",
"url": null
} |
\mathbb {R} ^{n}} ) The partial derivative with respect to The graph of this function defines a surface in Euclidean space. x U . ( Since both partial derivatives Ïx and Ïy will generally themselves be functions of both arguments x and y, these two first order conditions form a system of two equations in two unknowns... | {
"domain": "montserrat-flights.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9863631635159683,
"lm_q1q2_score": 0.8176346970004308,
"lm_q2_score": 0.8289387998695209,
"openwebmath_perplexity": 560.6435858355239,
"openwebmath_score": 0.9494776129722595,
... |
java, security, cryptography, aes
/**
* Format the exception message
*
* @param t
* @return
*/
public static String formatException(final Throwable t)
{
if (t == null)
return null;
final Throwable cause = t.getCause();
final String msg = cause == n... | {
"domain": "codereview.stackexchange",
"id": 30955,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, security, cryptography, aes",
"url": null
} |
on the theory of chain rule is similar to the product the. Differentiation and Integration ; Integral Calculus ; Quotient rule is similar to the product rule it using intuition... Change represent simpler than the proof of this theorem uses the following we...: Calculus ; differentiation and Integration ; Integral Calc... | {
"domain": "huyongyi.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676425019243,
"lm_q1q2_score": 0.8009512553078374,
"lm_q2_score": 0.817574471748733,
"openwebmath_perplexity": 1076.51939535719,
"openwebmath_score": 0.9811563491821289,
"tags":... |
photons, visible-light, microscopy
And additionally beyond the realm of reality, if I could shrink myself down to the size of a bacterium, could I see atoms? The other answers to the effect that one needs big optics to see fine detail are indeed true for are true for conventional imaging optics that sense the electrom... | {
"domain": "physics.stackexchange",
"id": 11940,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "photons, visible-light, microscopy",
"url": null
} |
python, beginner, object-oriented, python-2.x, quiz
The operation to perform (both taking two arguments);
The representation of this operation.
You can thus define
def problems_1(operation, symbol):
score = 0
while score < 30:
a = randint(1,10)
b = randint(1,10)
result = operation(a, ... | {
"domain": "codereview.stackexchange",
"id": 17142,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, object-oriented, python-2.x, quiz",
"url": null
} |
python, python-3.x, array, complexity
if positive_count + negative_count == k: # break if sliding window size limit reached
break
if positive_sum + negative_sum > 0: # if we still contribute to the maximum value
positive_count += negative_count
... | {
"domain": "codereview.stackexchange",
"id": 27179,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x, array, complexity",
"url": null
} |
thermodynamics
Title: Conditions for spontaneity So the two conditions for a reaction to be spontaneous are:
tendency to achieve minimum energy
tendency to achieve maximum randomness. | {
"domain": "chemistry.stackexchange",
"id": 2896,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics",
"url": null
} |
thermodynamics, enthalpy, entropy
$$dG \leq 0 ~~~(\textrm{const. T, P)}$$
The second assumption is that $\Delta S$ and $\Delta H$, associated with the macroscopic process you are investigating, are independent of T and P over the range of interest. At constant T and P you are then allowed to write
$$ \Delta G = \Delt... | {
"domain": "chemistry.stackexchange",
"id": 12514,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, enthalpy, entropy",
"url": null
} |
c++, beginner, hangman
std::vector<std::string>{std::istream_iterator<std::string>(infile), {}};
One point though: this will produce different results if your input file has multiple words on one line. In this case your code treats a whole line as one word, but this treats each word separately.
I generally advise aga... | {
"domain": "codereview.stackexchange",
"id": 37337,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, beginner, hangman",
"url": null
} |
homework-and-exercises, newtonian-mechanics, forces, friction, free-body-diagram
Title: Force required to move bar at one end
A uniform bar of length $L$ and weight $W$ rests on a level floor so that there is a uniform contact pressure between floor and bar. A horizontal force $P$ is applied at one end, normal to the... | {
"domain": "physics.stackexchange",
"id": 52641,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics, forces, friction, free-body-diagram",... |
python, reinventing-the-wheel, number-systems
Title: Binary to decimal in python binaryToDecimal = lambda binary: sum([[int(2**index) for index in range(len(binary))][-index-1] for index, char in enumerate(binary) if int(char)])
I wrote a simple function that converts binary strings into decimal integers. How can thi... | {
"domain": "codereview.stackexchange",
"id": 30508,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, reinventing-the-wheel, number-systems",
"url": null
} |
important fact about real symmetric matrices is the following theo-rem. Symmetric, Hermitian, unitary matrices Spectral theorem: A (real) symmetric matrix is diagonalizable. Then Av = λv, v ̸= 0, and v∗Av = λv. The leading coefficients occur in columns 1 and 3. The orthogonal matrix is a symmetric matrix always. Then X... | {
"domain": "ionoale.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718477853187,
"lm_q1q2_score": 0.8181733803731045,
"lm_q2_score": 0.8267117855317474,
"openwebmath_perplexity": 383.32462228033,
"openwebmath_score": 0.8360525369644165,
"tags": n... |
orbital-motion, astronomy, history, solar-system, celestial-mechanics
I'm really sorry if this post appears off topic but the internet is filled with mysticism in regards to this topic and hence there's a lot of informational bias regarding it - which led me to ask this question in one of the few reliable sources on t... | {
"domain": "physics.stackexchange",
"id": 54512,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbital-motion, astronomy, history, solar-system, celestial-mechanics",
"url": n... |
c++, matrix, mathematics, c++17
int rows() const;
int cols() const;
int size() const;
//Overloaded operators
scalarType operator()(const int i, const int j) const;
scalarType& operator()(const int i, const int j);
Matrix operator+(const Matrix& m) const;
Matrix operator-(const Matrix& m) c... | {
"domain": "codereview.stackexchange",
"id": 42369,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, matrix, mathematics, c++17",
"url": null
} |
other. Give a reason. In fact, one method of proving a quadrilateral a rhombus is by first proving it a parallelogram, and then proving two consecutive sides congruent, diagonals bisecting verticies, etc. Mathematics. Its four interior angles add to 360° and any two adjacent angles are supplementary, meaning they add t... | {
"domain": "co.kr",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9854964220125033,
"lm_q1q2_score": 0.8453274001757967,
"lm_q2_score": 0.8577681068080749,
"openwebmath_perplexity": 491.7611758590075,
"openwebmath_score": 0.6805704236030579,
"tags": null... |
finite-automata, edit-distance
$$d(L_1,L_2) = \sum_{n=0}^\infty {s^\top A^n f \over 2^n |\Sigma|^n}
= s^\top C f$$
where
$$C = \sum_{n=0}^\infty B^n = {1 \over I - B} = (I - B)^{-1}$$
where $B={1 \over 2|\Sigma} A$ and $I$ represents the identity matrix. This can be computed in time proportional to the cube of the nu... | {
"domain": "cs.stackexchange",
"id": 15811,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "finite-automata, edit-distance",
"url": null
} |
- 5 years, 3 months ago
$\left\{\cos\left(\dfrac{k\pi}{n+1}\right)\right\}_{k=1}^{n}$ are the roots of $U_{n} (x)$ and since we can write any polynomial as its leading coefficient times $\displaystyle \prod \ (x - \text{roots})$, hence the factorization. As for the leading coefficient of $U_{n} (x)$ and the fact that ... | {
"domain": "brilliant.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363485313248,
"lm_q1q2_score": 0.8024629629353234,
"lm_q2_score": 0.8152324803738429,
"openwebmath_perplexity": 638.4254263423666,
"openwebmath_score": 0.9667221903800964,
"tags": ... |
Then he says let $$\varepsilon_{n-} = \sup\{\varepsilon>0\mid (x_n-\varepsilon, x_n] \subseteq A\}$$ and let $$\varepsilon_{n+} = \sup\{\varepsilon>0\mid [x_n, x_n+\varepsilon)\subseteq A\}$$
Now we need to show that $A$ is a subset of $$\bigcup_{n=1}^{\infty}(x_n-\varepsilon_{n-},x_n+\varepsilon_{n+})$$
Take $x$ in ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676460637104,
"lm_q1q2_score": 0.8142439511888032,
"lm_q2_score": 0.8311430457670241,
"openwebmath_perplexity": 212.43381481452016,
"openwebmath_score": 0.9665129780769348,
"ta... |
homework-and-exercises, newtonian-mechanics, angular-momentum, rotational-dynamics, moment-of-inertia
Title: Angular momentum in a rod rotating around one end? Sorry if I can't get straight to the point, I have to give a lot of details before I actually state the question.
The formula for angular momentum is $L=I \ome... | {
"domain": "physics.stackexchange",
"id": 43432,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics, angular-momentum, rotational-dynamics... |
primes, swift, iterator, swift3
Can making basePrimes an implicitly unwrapped optional be avoided?
No, and the reason is as the above recursion tells us. If basePrimes is a non-optional type, then it has to be initialized at the initialization step. And since this is a copy of PostponedPrimeIterator in PostponedPrime... | {
"domain": "codereview.stackexchange",
"id": 21289,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "primes, swift, iterator, swift3",
"url": null
} |
# A Change In Velocity Is Called | {
"domain": "ristorantepaoli.it",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.963779946215714,
"lm_q1q2_score": 0.8093187581986588,
"lm_q2_score": 0.8397339676722393,
"openwebmath_perplexity": 451.0853840780799,
"openwebmath_score": 0.6651929020881653,
"tag... |
experimental-physics, rotational-dynamics
In the time it takes the ball to go round the loop, the other ball in the straight tube should cover a distance of $188\pi \times 1.0067= 595$mm. This is still significantly short of 704mm, but it is an improvement on 176$\pi$=553mm. The uncertainty in ramp height could bring ... | {
"domain": "physics.stackexchange",
"id": 35851,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-physics, rotational-dynamics",
"url": null
} |
• I don't understand your proof of theorem 2, what if $i < k$? How then can you say that $p(i)$ is equal to that sum without the terms beyond $a_i$? Feb 4 '16 at 19:07
• @Brennan.Tobias I added a little clarification. The terms after $a_i \binom{i}{i}$ are all zero.
– 6005
Feb 4 '16 at 19:11
• Thanks, That's a really e... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307668889048,
"lm_q1q2_score": 0.8189538957932693,
"lm_q2_score": 0.8418256532040707,
"openwebmath_perplexity": 263.8806514288384,
"openwebmath_score": 0.9804226756095886,
"tag... |
ros2, roslaunch, ros-crystal
Title: Any way to see IO sooner with OnProcessIO event in ROS2 Launch Description?
Background
Starting with a counter node that looks something like this:
import rclpy
import time
if __name__ == "__main__":
rclpy.init()
node = rclpy.create_node("counter_node")
for n in range(... | {
"domain": "robotics.stackexchange",
"id": 32272,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2, roslaunch, ros-crystal",
"url": null
} |
ros, raspberrypi, mobile, ros-groovy, raspbian
Title: Installing ROS-Groovy Mobile on Raspbian
Hi,
I have been trying to install ROS Groovy Mobile on my RPi. I keep getting an error when I run sudo rosdep install --from-paths src --ignore-src --rosdistro groovy -y which returns ERROR: the following rosdeps failed to... | {
"domain": "robotics.stackexchange",
"id": 12966,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, raspberrypi, mobile, ros-groovy, raspbian",
"url": null
} |
sql, sql-server
</Then>
<Else>
<ScalarOperator>
<Const ConstValue="(0.00000000)" />
</S... | {
"domain": "codereview.stackexchange",
"id": 31682,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "sql, sql-server",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.