text stringlengths 49 10.4k | source dict |
|---|---|
lagrangian-formalism, field-theory, hamiltonian-formalism, constrained-dynamics, majorana-fermions
Using anticommutation relation of fermion we get,
$${\cal H}=-\frac{\dot\iota}{2}(\psi^\dagger\partial_1\psi^\dagger-\psi\partial_1\psi)+m\psi^\dagger\psi$$
Now to answer your question | {
"domain": "physics.stackexchange",
"id": 65767,
"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": "lagrangian-formalism, field-theory, hamiltonian-formalism, constrained-dynamics, m... |
reference-frames, plasma-physics, shock-waves
Title: Particle acceleration at magnetized shocks by convective electric fields? Let us assume we have a flow of charged particles in a quasi-neutral state (i.e., a plasma) convecting at some speed, $\mathbf{V}_{sw}$ = V$_{sw}$ $\hat{x}$, and the particles have species-dep... | {
"domain": "physics.stackexchange",
"id": 41620,
"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": "reference-frames, plasma-physics, shock-waves",
"url": null
} |
gazebo-plugin, groovy
rosbuild\_add\_boost\_directories()
rosbuild\_link\_boost(my\_gazebo\_ros\_p3d thread)
change the manifest by adding
<depend package="tf"> <!-- this is needed for p3d plugin -->
in your model.sdf add
<plugin filename="libmy_gazebo_ros_p3d.so" name="my_gazebo_ros_p3d"> <bodyName>chassis</body... | {
"domain": "robotics.stackexchange",
"id": 3236,
"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": "gazebo-plugin, groovy",
"url": null
} |
c#, linq, json
var jsonText = await response.Content.ReadAsStringAsync().GetResults();
jsonArray = JsonArray.Parse(jsonText);
}
foreach (var groupValue in jsonArray)
{
var groupObject = groupValue.GetObject();
IWorkgroup group = new Workgroup
{
GroupState = (int... | {
"domain": "codereview.stackexchange",
"id": 10888,
"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, json",
"url": null
} |
newtonian-mechanics, forces, reference-frames, acceleration, space-travel
Now a couple of provisos.
First, if your speed became a large fraction of the speed of light, any particles (even single atoms or nuclear particles) you encounter would fly clean through the spacecraft and through the astronaut. If you're going ... | {
"domain": "physics.stackexchange",
"id": 6373,
"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, forces, reference-frames, acceleration, space-travel",
"url"... |
wavelet
(scale = 8) –320 –160 0 160 320 240 160 80
(scale = 7) –240 –80 80 240 240 160 80 0
(scale = 6) –240 –160 0 160 240 160 80 0
(scale = 5) –160 –80 80 160 160 80 0 0
(scale = 4) –160 –80 0 80 160 80 0 0
(scale = 3) –80 0 0 80 80 0 0 0
(scale = 2) –80 0 0 0 80 0 0 0
(scale = 1) 0 0 0 0 0 0 0 0 | {
"domain": "dsp.stackexchange",
"id": 723,
"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": "wavelet",
"url": null
} |
haskell, homework
Title: UPenn CIS 194 Homework 3: Code golf I am working through UPenn CIS 194: Introduction to Haskell (Spring 2013). Since I am not able to take the course for real I am asking for CR (feedback) as it could be from teacher in that course.
HW3 - Code golf - Full description
module Golf where
import ... | {
"domain": "codereview.stackexchange",
"id": 15787,
"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, homework",
"url": null
} |
electromagnetism, electric-current, biophysics, biology
Tell me if this question is off-topic or too biological to be answered here. The RC circuit that approximates a myelinated fiber looks like a series of resistors along the length of the fiber with capacitors connected to ground at the gaps between the Schwann cel... | {
"domain": "physics.stackexchange",
"id": 11126,
"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, electric-current, biophysics, biology",
"url": null
} |
.ui-slider .ui-slider-range,.woocommerce-page .widget_price_filter .ui-slider .ui-slider-range,.swiper-slide .button.solid_color a.extra-color-2,.swiper-slide .button.solid_color_2 a.extra-color-2,.toggle.open.extra-color-2 h3 a,.portfolio-filters-inline[data-color-scheme="extra-color-2"],.pricing-table[data-style="fla... | {
"domain": "wolfpacknyc.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9572778000158575,
"lm_q1q2_score": 0.8383714508542798,
"lm_q2_score": 0.8757869981319863,
"openwebmath_perplexity": 11396.313708180473,
"openwebmath_score": 0.7313063144683838,
"tags... |
electrostatics, charge
Title: Linear charge density of a path on a surface My problem is somewhat general. I do not think it has been posted before, however, I am new to Physics Stack Exchange so please, if I'm wrong, feel free to let me know.
I will give an example problem and then talk about the general case I'm int... | {
"domain": "physics.stackexchange",
"id": 70251,
"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, charge",
"url": null
} |
lagrangian-formalism, variational-principle, action, covariance
then $f : M \to \mathbb{R}$ is a scalar function on our spacetime $M$. Coordinate-dependent expressions do not define such functions, when you write something like
$$ L = g^{\mu \nu}\Gamma_{\mu \lambda}^{\rho} \Gamma^{\lambda}_{\nu \rho}, $$
then that act... | {
"domain": "physics.stackexchange",
"id": 76927,
"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": "lagrangian-formalism, variational-principle, action, covariance",
"url": null
} |
special-relativity, energy, speed-of-light, mass-energy, faster-than-light
At the center of mass of the system a uniquely, not velocity dependent mass, is called the invariant mass of the system and is the "length" of the four momentum vector describing the system in any Lorentz covariant frame. There is no flaw to yo... | {
"domain": "physics.stackexchange",
"id": 44074,
"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": "special-relativity, energy, speed-of-light, mass-energy, faster-than-light",
"ur... |
acid-base, ph
2)Calculate the pH of the following solutions
a) 0.10M KCN, Ka (HCN) = 6.2E-10 (Hint: KCN is the salt of a weak acid and a strong base)
x = sqrt(Ka*c)
x = sqrt(6.2E-10 * 0.1) = 7.8E-6
-log(7.8E-6) = pH = 5.1 1a) First use $pOH = 14 - pH$
Then use: $pOH = \log([OH^-])$
b) Simply use: $\dfrac{\text{dissoc... | {
"domain": "chemistry.stackexchange",
"id": 389,
"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": "acid-base, ph",
"url": null
} |
biochemistry, bacteriology, restriction-enzymes
Title: Why do Type II Restriction Endonucleases cleave at palindromic sequences? Type II Restriction enzymes usually cut only at palindromic sequences. Is there any specific reason for that? Is there any advantage for bacteria if they cleave phage DNA at this type of seq... | {
"domain": "biology.stackexchange",
"id": 9546,
"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": "biochemistry, bacteriology, restriction-enzymes",
"url": null
} |
# Definition of Cauchy Sequence
I have a question regarding the definition of a Cauchy sequence of a sequence in a metric space. The definition I learned and that is consistent with Wikipedia defines a sequence $(x_n)_{n=1}^\infty$ as a Cauchy sequence if $$\forall\, \varepsilon>0 \;\;\exists\, N\in\mathbb{N}\;\; \for... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.951142221377825,
"lm_q1q2_score": 0.8046115708264877,
"lm_q2_score": 0.845942439250491,
"openwebmath_perplexity": 244.16903286052172,
"openwebmath_score": 0.9450280070304871,
"tags... |
ros, ros-lunar, ros-control, hardware-interface
Originally posted by venkisagunner on ROS Answers with karma: 89 on 2018-06-15
Post score: 0
According to the sources (here), cmd_vel_ is a pointer to a double that gets initialised in the ctor (here).
The code you show ("The problem occurs when I executed the following... | {
"domain": "robotics.stackexchange",
"id": 31020,
"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, ros-lunar, ros-control, hardware-interface",
"url": null
} |
The question asks for the number of solutions of $$\prod_{i=1}^n x_i = c \bmod{p}.$$ The above notation is more common in Computer Science than in Mathematics. I am more comfortable with the usual mathematical notation, so will use it instead.
I assume that you are asking for the number of ordered $n$-tuples $(x_1,x_2... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9928785708328175,
"lm_q1q2_score": 0.8230355751181735,
"lm_q2_score": 0.8289388040954684,
"openwebmath_perplexity": 67.01482703796876,
"openwebmath_score": 0.9132015705108643,
"tag... |
rotational-dynamics, rigid-body-dynamics
& ={\rm I}\;\boldsymbol{\alpha}+\boldsymbol{\omega}\times\boldsymbol{L}_{{\rm net}}
\end{aligned}
\tag{7} $$ | {
"domain": "physics.stackexchange",
"id": 92885,
"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": "rotational-dynamics, rigid-body-dynamics",
"url": null
} |
java, object-oriented
public class Item<I> {
private I value;
private Shape shape;
public Item(I value, Shape shape) { /* ... */ }
}
and an ìtem should be packed into an inventory/container:
public class RectangleContainer implements GridContainer {
/* ... */
@Override public void add(Item i... | {
"domain": "codereview.stackexchange",
"id": 36469,
"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, object-oriented",
"url": null
} |
performance, strings, powershell, edit-distance
##Write-Verbose "Matrix location: [$rowIndex, $columnIndex]"
##Write-Verbose "Compare character: $compareCharacter - Difference character: $differenceCharacter"
# Calculate the cost
$cost=if($compareCharacter -ceq $differenceCharacter)... | {
"domain": "codereview.stackexchange",
"id": 34079,
"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, strings, powershell, edit-distance",
"url": null
} |
the two vectors both in magnitude and direction. Penjumlahan Vektor Saffanahpertiwi. Let R be the resultant of vectors P and Q. Triangle Law of Vector Addition. Vector Addition is nothing but finding the resultant of a number of vectors acting on a body. ABCD is a quadrilateral. The third side (joining the initial poin... | {
"domain": "uh.cz",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9458012732322216,
"lm_q1q2_score": 0.8094651044988912,
"lm_q2_score": 0.8558511469672594,
"openwebmath_perplexity": 815.4427464279745,
"openwebmath_score": 0.581605076789856,
"tags": null,... |
electromagnetism, optics, visible-light, polarization
Title: Is there a simple model explaining Faraday effect? I find magneto-optical effects fascinating, and especially the Faraday effect. But most sources only give a phenomenological description, while I want a deeper explanation of its mechanism. Is there a simple... | {
"domain": "physics.stackexchange",
"id": 10489,
"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, optics, visible-light, polarization",
"url": null
} |
ros, turtlebot, ubuntu, ubuntu-lucid, nvidia
Title: Installing "Restricted" drivers for turtlebot
Hi,
I'm unpacking and installing turtlebot I just received. The setup tutorial says:
DO NOT INSTALL THE NVIDIA RESTRICTED DRIVERS! Nvidia ION/Optimus is not supported yet in the nVidia restricted drivers.
On the other ... | {
"domain": "robotics.stackexchange",
"id": 6385,
"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, turtlebot, ubuntu, ubuntu-lucid, nvidia",
"url": null
} |
quantum-mechanics, hilbert-space, wavefunction, schroedinger-equation, normalization
But how is this possible, because we already know that we cannot use separation of variables to solve the Schrödinger equation? The assumption that separability and normalizability are somehow linked is wrong. It can be directly shown... | {
"domain": "physics.stackexchange",
"id": 82476,
"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, wavefunction, schroedinger-equation, normalizati... |
scikit-learn, cross-validation
Your $k-1$ training folds increase in size
Your validation folds decreases in size
From the first point you can draw the conclusion that your $k$ models become more similar since your training data becomes more similar since you splitt off less data for the validation sets in the $k$-th... | {
"domain": "datascience.stackexchange",
"id": 6993,
"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": "scikit-learn, cross-validation",
"url": null
} |
zoology, food
References:
http://www.sciencenews.org/view/generic/id/6910/title/Ant_Iron_Chefs_Larvae_fix_dinner_but_dont_sneak_snacks
http://www.thenakedscientists.com/ | {
"domain": "biology.stackexchange",
"id": 5016,
"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": "zoology, food",
"url": null
} |
So, for the first eigenvalue, we have:
$e^{\lambda_1 t}v_1 = e^{(2+i)t}\begin{bmatrix}\frac{1}{2}(1-i)\\1\end{bmatrix} = e^{2t}e^{it}\begin{bmatrix}\frac{1}{2}(1-i)\\1\end{bmatrix} = e^{2t}(\cos t + i \sin t)\begin{bmatrix}\frac{1}{2}(1-i)\\1\end{bmatrix} = \begin{bmatrix} \frac{1}{2}e^{2t}(\cos t + \sin t) + \frac{1}... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9724147185726375,
"lm_q1q2_score": 0.8145139809155633,
"lm_q2_score": 0.8376199633332891,
"openwebmath_perplexity": 760.3634820510744,
"openwebmath_score": 0.7993175387382507,
"tag... |
data-structures, hash-tables
Title: Iterable hash table I'm currently working on implementing all the major data structures from C++ to better understand them and I arrived at the unordered_map, which should be a hash table implementation (it's actually not) and wondered that even if I implement the hash table, how co... | {
"domain": "cs.stackexchange",
"id": 19529,
"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-structures, hash-tables",
"url": null
} |
homework-and-exercises, quantum-information, bells-inequality
The probabilities $\overline{P}$s are nonnegative, the vectors $\vec{a}, \vec{b}, \vec{c}$ are unit vectors and I'm assuning $\varepsilon, \delta > 0$. What Equation (1) says is that if you replace $P(\vec x,\vec y)$ by $-\vec x\cdot \vec y$, you incur an e... | {
"domain": "physics.stackexchange",
"id": 92842,
"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, bells-inequality",
"url": null
} |
classical-mechanics, statistical-mechanics
we even don't know $\rho (q,p,t)$ in arbitrary moment of time $t$?
Maybe my undestanding is wrong, but I just want to know $\rho (q,p,t)$. Consider a set of $N$ harmonic oscillators. $\rho(q,p,t=0)$ gives the probability to find one of these oscillators in the state $(q,p)$ a... | {
"domain": "physics.stackexchange",
"id": 67636,
"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": "classical-mechanics, statistical-mechanics",
"url": null
} |
php, object-oriented, csv, laravel, network-file-transfer
protected function write($line);
protected function deliver($filename);
}
abstract class Export implements Exportable
{
protected $fileHandle = null;
private $dataCollection;
private $filename;
public function __construct($dataCollect... | {
"domain": "codereview.stackexchange",
"id": 32635,
"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, object-oriented, csv, laravel, network-file-transfer",
"url": null
} |
java, algorithm, unit-testing, interview-questions
@Test
public void testSecondEmpty() {
AvlTree t1 = new AvlTree(1);
AvlTree t2 = new AvlTree();
Assert.assertNotEquals(t1, t2);
}
@Test
public void testRootsEqual() {
AvlTree t1 = new AvlTree(1);
AvlTree t2 = new... | {
"domain": "codereview.stackexchange",
"id": 15962,
"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, algorithm, unit-testing, interview-questions",
"url": null
} |
edit: Thanks for the replies so far, I think what I'm trying to get a feel for is how to know around which terms I should use brackets when I see this type of fraction.
• Moral lesson: when in doubt, use parentheses. – J. M. is a poor mathematician Dec 28 '16 at 16:05
• $/$ is not an associative operation. $$\frac{\pi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9585377249197138,
"lm_q1q2_score": 0.8222030930936901,
"lm_q2_score": 0.8577681104440172,
"openwebmath_perplexity": 262.06004117668454,
"openwebmath_score": 0.7721677422523499,
"ta... |
communication-standard, lte
Title: System Frame Number in LTE Specifications What exactly is System Frame Number in LTE specifications? What is the use of it?
I have read that it is a 10 bit number and used for synchronization purposes. But it's not clear how it helps for synchronization. Any help is appreciated. Sy... | {
"domain": "dsp.stackexchange",
"id": 5859,
"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": "communication-standard, lte",
"url": null
} |
general-relativity, black-holes, metric-tensor, geodesics
Title: Geodesic equations in Schwarzschild geometry I am a little bit confused about the following equations. In the lecture we derived the following four equations for a geodesic motion of a particle in Schwarzschild geometry using the Lagrangian approach:
$(1... | {
"domain": "physics.stackexchange",
"id": 63524,
"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, black-holes, metric-tensor, geodesics",
"url": null
} |
linear-systems, terminology, adaptive-algorithms
When considering blind algorithm, we assume no knowledge of the process noise that drives the model. But, When we assume that the model order is known, then does it still become blind or non-blind estimation / equalization technique?
Please correct me where wrong. The ... | {
"domain": "dsp.stackexchange",
"id": 2743,
"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": "linear-systems, terminology, adaptive-algorithms",
"url": null
} |
earth, comets, rotation, speed, meteor
Lastly, this would mean the Earth travel about 18.6 miles per second:
1115.876591933 ÷ 60 = 18.597943199
Google says the diameter of the Earth is 7,917.5 miles. So, as fast as the Earth is traveling, a catastrophic meteor has about a 7 minute window to hit target Earth.
7917.5 ÷... | {
"domain": "astronomy.stackexchange",
"id": 5051,
"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": "earth, comets, rotation, speed, meteor",
"url": null
} |
java, performance, beginner, array, design-patterns
// Return current visible size of the array
public int length(){
return size;
}
So far i have bug tested it for a couple of hours and it seems like it fits what i need overall but,
Is it structured well enough to meet my expectations related to performance and ... | {
"domain": "codereview.stackexchange",
"id": 17799,
"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, beginner, array, design-patterns",
"url": null
} |
#Let's build a function to simulate
sim_european_call<-function(S_0=100,K=100,vol=0.25,T_years=1,r=0.02,n=10^4){
#Simulate the stock
sim_S_T<-S_0*exp((r-0.5*vol^2)*T_years + vol*rnorm(n)*sqrt(T))
#Calculate payoffs
payoffs<-pmax(sim_S_T-K,0)*exp(-r*T_years)
#Simulate results and bounds
Price<-mean(payoffs)
SE<-1.96*sd(... | {
"domain": "github.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9865717464424894,
"lm_q1q2_score": 0.8111485707034921,
"lm_q2_score": 0.822189134878876,
"openwebmath_perplexity": 1919.0135008901761,
"openwebmath_score": 0.5941701531410217,
"tags": null... |
java, swing
public class GridBagUIPanel extends JPanel {
/**
*
*/
private static final long serialVersionUID = 8550646555771187030L;
private HashMap<String,JComponent> mappedComponents;
private GridBagConstraints cons;
private GridBagLayout layout;
private ArrayList<JComponent>... | {
"domain": "codereview.stackexchange",
"id": 15483,
"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, swing",
"url": null
} |
# Thread: Testing of population varience
1. ## Testing of population varience
with an individual lines at its various windows , a post office finds that the standard deviation for normally distributed waiting times for customers on Friday afternoon is 7.2 minutes . The post office expreiemets with a single, main wait... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.979035762851982,
"lm_q1q2_score": 0.8321521839431972,
"lm_q2_score": 0.849971181358171,
"openwebmath_perplexity": 1286.7547894705313,
"openwebmath_score": 0.7890415191650391,
"tags... |
php, authentication, session
For better depth of knowledge around securely handling sessions, I would recommend you read and understand the PHP sessions "basics" documentation at http://php.net/manual/en/features.session.security.management.php
In particular, I would point you to this section:
Session Data Deletion
O... | {
"domain": "codereview.stackexchange",
"id": 22854,
"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, authentication, session",
"url": null
} |
zoology, human-physiology, digestive-system
Title: Are intestinal and pancreatic lipases different? For explaining the action pancreatic lipase, my book wrote this equation:-
$$fat\space particles + lipase\rightarrow fatty\space acid + glycerol + lipase$$
But for intestinal lipase, my book has a different equation:-
$... | {
"domain": "biology.stackexchange",
"id": 10708,
"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": "zoology, human-physiology, digestive-system",
"url": null
} |
calculus, chain rule, ap calculus. Example. Now we can rewrite \displaystyle \frac{df}{dx} as follows: \begin{align} \frac{df}{dx} & = \lim_{\Delta x\to 0}\frac{f[u(x+\Delta x)]-f[u(x)]}{\Delta x} \\ & =\lim_{\Delta x\to 0}\frac{f[u(x)+\Delta u]-f[u(x)]}{\Delta x} \\ & =\lim_{\Delta x\to 0} \frac{\left(g(\Delta u)+\fra... | {
"domain": "hospedagemdesites.ws",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877700966099,
"lm_q1q2_score": 0.8151194964473998,
"lm_q2_score": 0.8397339716830605,
"openwebmath_perplexity": 875.9200162634464,
"openwebmath_score": 0.984427809715271,
"t... |
reaction-mechanism, stoichiometry, ionic-compounds
Title: What is the correct molecular, total ionic, and net ionic reaction equation of reaction between magnesium nitrate and sodium chromate? From the question, I think that the reactants are $$\ce{Mg(NO3)2(aq) + Na2CrO4(aq)}$$
But the problem is, I am confused about ... | {
"domain": "chemistry.stackexchange",
"id": 15971,
"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": "reaction-mechanism, stoichiometry, ionic-compounds",
"url": null
} |
BUT if it is a fraction the denominator in the solution will not have = SIGN
example -
3.a
(x + 2)(x - 1)/(x -4)(x - 7) < =0
the solution will be -2 <= x <= 1 or 4< x < 7
we cant make 4<=x<=7 as it will make the solution infinite
4) Variation - ROOTS
@Karishma -
As for roots, you have to keep in mind that given $$\sq... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9348724567894617,
"lm_q1q2_score": 0.8575609851742254,
"lm_q2_score": 0.9173026533686324,
"openwebmath_perplexity": 2156.2014103647634,
"openwebmath_score": 0.5639657974243164,
"tags": ... |
computational-chemistry
Title: Kinetic Energy Evaluation Integral Evaluation Program I'm reading Ostlund's Modern Quantum Chemistry. In Appendix A, the kinetic energy integral is evaluated using the Gaussian Basis functions to be
$$
\left(A\left| -\frac{1}{2}\nabla^2 \right| B\right) =
\alpha\beta/(\alpha + \beta)[3 ... | {
"domain": "chemistry.stackexchange",
"id": 13207,
"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": "computational-chemistry",
"url": null
} |
homework-and-exercises, general-relativity, stress-energy-momentum-tensor
The first two I managed to figure out, but the third I can't quite manage.
My attempt at a solution:
I begin by taking one of the time derivatives inside of the integral, and making use of the stress-energy conservation identity,
$$
\frac{\parti... | {
"domain": "physics.stackexchange",
"id": 19508,
"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, general-relativity, stress-energy-momentum-tensor",
"url... |
our lesson on Relations and Functions, in order for something to be a Function it must pass the Vertical Line Test; but in order to a function to have an inverse it must also pass the Horizontal Line Test, which helps to prove that a function is One-to-One. Graph of function h, question 2 Solutions to the Above Questio... | {
"domain": "bahealthcare.ae",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407137099625,
"lm_q1q2_score": 0.8110254218792301,
"lm_q2_score": 0.8333245932423308,
"openwebmath_perplexity": 442.91511005936906,
"openwebmath_score": 0.5648279190063477,
"tags... |
performance, c, palindrome
char* _remove(char* str, int i) {
int j,k;
char* nstr = (char*)malloc(strlen(str));
nstr[0] = '\0';
for(j = 0, k = 0; j < strlen(str); j++) {
if(j == i) { continue; }
nstr[k] = str[j];
k++;
}
nstr[k] = '\0';
return nstr;
}
elmt* _add(elmt... | {
"domain": "codereview.stackexchange",
"id": 1622,
"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, c, palindrome",
"url": null
} |
rotational-dynamics, reference-frames, angular-velocity
I_{zx} & I_{zy} & I_{zz}
\end{bmatrix}$$
which are all mathematically defined and are not ambiguous whatsoever. We can then check that $\vec{\tau} = \frac{d}{dt}\vec{L}$, which mirrors $\vec{F} = \frac{d}{dt}\vec{p}$ for linear motion. Taking this further,... | {
"domain": "physics.stackexchange",
"id": 39504,
"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": "rotational-dynamics, reference-frames, angular-velocity",
"url": null
} |
antimatter, dirac-equation, spinors, chirality, helicity
As we manifestly see, the left-chiral antifermion $\hat{v}^\dagger_L$ has positive helicity, unlike the left-chiral fermion $\hat{u}_L$. And the converse is true for the opposite chirality.
I must admit, I had to ponder a lot about this. The way I see it is that... | {
"domain": "physics.stackexchange",
"id": 76316,
"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": "antimatter, dirac-equation, spinors, chirality, helicity",
"url": null
} |
java, authentication, rest
public static User getUser() throws ConfigurationException, SecurityException, IOException, InterruptedException {
if(instance == null) {
instance = new User();
}
return instance;
}
public void createUser() throws ConfigurationException, SecurityE... | {
"domain": "codereview.stackexchange",
"id": 9392,
"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, authentication, rest",
"url": null
} |
physical-chemistry, equilibrium
Title: Get K for a weak acid equilibrium when given the ionization percentage
There is some weak acid with a concentration of $0.0284$ M, which is
ionized by $6.70$%. What is the value of $K_\mathrm a$?
So we got
$$\ce{HA <=> H+ + A-}$$
The formula for the ionization percentage is $... | {
"domain": "chemistry.stackexchange",
"id": 3996,
"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
} |
# How to ask Mathematica to do the given operation for a set of parameters?
I have a set of numbers like this
s = {a, b, c, d, e, f, ..., g, h}
and I would like to ask Mathematica to do the following operation (to sum the subtractions of adjacent numbers)
(a - b) + (c - d) + (e - f) + ... + (g - h)
Is it possibl... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799472560581,
"lm_q1q2_score": 0.8010390028271279,
"lm_q2_score": 0.8311430478583168,
"openwebmath_perplexity": 1134.5330924338646,
"openwebmath_score": 0.3170989453792572,
"ta... |
thermodynamics, heat, thermal-conductivity
Update:
Here's some data for water in a wine bottle (hey, I'm not wasting good wine). I used one of those vacuum storage stoppers; the hole was just right to poke through a kitchen thermometer. Two diffferent ones, actually. The third curve is an exponential with a 30 minu... | {
"domain": "physics.stackexchange",
"id": 6681,
"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, heat, thermal-conductivity",
"url": null
} |
statistical-mechanics, superfluidity
Title: How do we imagine the transition between phonons and rotons? In the theory of superfluidity, we have both phonon and roton excitations. Phonons are long-range density fluctuations (sound waves) and rotons are short-range (atomic scale) circulations of the atoms of the fluid.... | {
"domain": "physics.stackexchange",
"id": 53973,
"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": "statistical-mechanics, superfluidity",
"url": null
} |
for cracked cantilever beam (CCB) a crack of 20*1*1mm is considered. SFD& BMD Cantilever beam with Pt load and UDL( Part 3. 0127m Thickness 0. It may refer to an angle or a distance. Question 30 A cantilever beam has a cantilever length of 10 ft. The moment of inertia of a cracked beam (Icr) with tension reinforcement,... | {
"domain": "on50mm.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9861513873424044,
"lm_q1q2_score": 0.8062522083374559,
"lm_q2_score": 0.8175744806385542,
"openwebmath_perplexity": 989.1310041200337,
"openwebmath_score": 0.6327506303787231,
"tags": null... |
rviz
Title: rviz crashes when used with pr2 navigation
I'm trying to launch the navigation stack for the pr2. Here's what I run:
rosrun map_server map_server basement_map.yaml
roslaunch pr2_navigation_global rviz_move_base.launch
(on the robot) roslaunch pr2_2dnav pr2_2dnav.launch
After I launch the 2dnav on the ro... | {
"domain": "robotics.stackexchange",
"id": 17277,
"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": "rviz",
"url": null
} |
newtonian-mechanics, newtonian-gravity, rotational-dynamics, projectile, coriolis-effect
&= \frac12 \mathbf{\Omega^2}R\\
&= 8.5~\rm{mm/s^2}\end{align}$$
If you toss the coin at 15 m/s, it will be in the air for approximately 8 seconds. In that time, the above acceleration will give rise to a displacement of about 27 c... | {
"domain": "physics.stackexchange",
"id": 27483,
"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, newtonian-gravity, rotational-dynamics, projectile, coriolis-... |
javascript, optimization, jquery, animation
function gogogo(scrollRatePerSecond, frame_skip) {
var lastFrameTime = null,
i = 0;
function loop(now) {
var delta = lastFrameTime ? now - lastFrameTime : 0;
if (++i % (frame_skip + 1) == 0) {
lastFrameTime = now; | {
"domain": "codereview.stackexchange",
"id": 10207,
"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, optimization, jquery, animation",
"url": null
} |
localization, navigation, ekf, odometry, ros-kinetic
Originally posted by Jacob Seibert on ROS Answers with karma: 16 on 2018-05-09
Post score: 0
Original comments
Comment by gvdhoorn on 2018-05-09:
Could I ask you to please not post screenshots of text? There is no need to do that (just copy-paste the console text) ... | {
"domain": "robotics.stackexchange",
"id": 30790,
"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": "localization, navigation, ekf, odometry, ros-kinetic",
"url": null
} |
java, strings, reflection
Title: Getting a list of all fields in an object I've got the following code that I use to output a list of all (public) fields in an object in an easy(ish) to read way. The issue with it is that the code is not easy to look at, and I'm not sure what I could do to improve it.
I'm not too fond... | {
"domain": "codereview.stackexchange",
"id": 16297,
"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, strings, reflection",
"url": null
} |
special-relativity, field-theory, gauge-theory, representation-theory, degrees-of-freedom
$$(\square + m^2)A^\mu = 0 \\
\partial^\mu A_\mu = 0$$
In momentum space and in the center of mass frame ($p^\mu = (p^0,\vec 0)$), the first equation is telling you $p^2=(p^0)^2 = m^2$, while the second is $A^0 = 0$. That is you... | {
"domain": "physics.stackexchange",
"id": 53127,
"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": "special-relativity, field-theory, gauge-theory, representation-theory, degrees-of-... |
machine-learning, classification, class-imbalance, cost-function
After doing this balancing, you can start to adjust the weights to get the best ratio of FN to FP, trying to get the total cost as low as possible.
minimizing: total cost = FN x cost_of_fn + FP x cost_of_fp
Not sure if there is a mathematical equation to... | {
"domain": "datascience.stackexchange",
"id": 7909,
"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": "machine-learning, classification, class-imbalance, cost-function",
"url": nul... |
java, performance, swing, cellular-automata
public void actionPerformed(ActionEvent e) {
//Timer tick processing
if (e.getSource().equals(timer)){
repaint();
Color[][] newGrid = new Color[board_size.height][board_size.width];
for (int h = 0; h < ... | {
"domain": "codereview.stackexchange",
"id": 9789,
"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, swing, cellular-automata",
"url": null
} |
physical-chemistry
Li Zhi correctly points out that octadecane has a molecular weight of 254.5 g/mole and that $5.64×10^{18}$ molecules would weigh 2.38 milligrams considering the significant figures.
Li Zhi makes the correct assessment when he says "It certainly cannot weigh that amount with adequate precision for m... | {
"domain": "chemistry.stackexchange",
"id": 7407,
"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",
"url": null
} |
condensed-matter, acoustics, quantization, amorphous-solids, quasicrystals
Title: Phonons in non-crystalline media Do sound waves in a gas consist of phonons?
What about a glass? Or other non-crystalline materials such as quasicrystals?
How does the lack of translational symmetry affect the quantization of the displac... | {
"domain": "physics.stackexchange",
"id": 908,
"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": "condensed-matter, acoustics, quantization, amorphous-solids, quasicrystals",
"url"... |
eyes, vision, feline
Fig. 3. Lens transmission spectra of various species. Source: Douglas & Jeffery, 2014
References
- Douglas & Jeffery, Proc R Soc B (2014); 281: 20132995
- Griswold & Stark, Vis Res (1992); 32(9): 1739-43 | {
"domain": "biology.stackexchange",
"id": 3945,
"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": "eyes, vision, feline",
"url": null
} |
# Converting absolute value program into linear program
I have the generic optimization problem:
$$\max c^T|x|$$
$$\text{s.t. } Ax \le b$$
$x$ is unrestricted
How do I convert it into a linear programming problem?
Online I read something about letting $x$ equal the difference of 2 positive numbers but I could not... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.96036116089903,
"lm_q1q2_score": 0.8255876774225177,
"lm_q2_score": 0.8596637505099167,
"openwebmath_perplexity": 336.4134292885795,
"openwebmath_score": 0.9193260669708252,
"tags"... |
titration, density
I loathe that the problem is inferring that volumes are additive.
Looking up some data...
\begin{array}{|c|c|c|c|} \hline
& Mol. Wt. & Density\ (g/ml) & mol/ml \\ \hline
\pu{Water} & 18.015 & \pu{0.9950 @ 25 °C} & 0.05523\\ \hline
\pu{Acetic anhydride} & 102.09 & \pu{1.082 @ 20 °C} & 0.01052 \\ \h... | {
"domain": "chemistry.stackexchange",
"id": 13697,
"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": "titration, density",
"url": null
} |
vacuum, air, speed
So 2000 m/s, 2 km/s, 7200 km/hr should do the trick. For reference this is about 7 times the speed of sound at sea level. | {
"domain": "physics.stackexchange",
"id": 19203,
"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": "vacuum, air, speed",
"url": null
} |
java, logging
private static void printerr(String message, Rank severityLevel) {
This sounds like printer with a typo. I don't thing saving two letters is worth it. It should be called printError (with capital "E").
print, iPrint, uPrinterr, iPrinterr, ....
This sounds like logging, but I'm afraid that it's hard to... | {
"domain": "codereview.stackexchange",
"id": 14932,
"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, logging",
"url": null
} |
theoretical-chemistry, crystal-structure, software, nanotechnology, boron-family
Beta_12.cif file:
data_Beta_12_str
_audit_creation_date 2021-09-18
_audit_creation_method 'Materials Studio'
_symmetry_space_group_name_H-M 'PMM2'
_symmetry_Int_Tables_number 25
_symmetry_cell_setting ... | {
"domain": "chemistry.stackexchange",
"id": 15985,
"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": "theoretical-chemistry, crystal-structure, software, nanotechnology, boron-family... |
algorithms
If for some reason you absolutely need the optimal solution (not one that is good enough), then you could formulate this as an integer linear program and try solving it using an off-the-shelf ILP solver. I am very skeptical of the request for an absolutely optimal solution; I think that is poorly motivated... | {
"domain": "cs.stackexchange",
"id": 2210,
"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",
"url": null
} |
javascript, programming-challenge, ascii-art
Title: Eloquent JavaScript chessboard Is this a good way to solve the quiz "Chessboard" from http://eloquentjavascript.net/02_program_structure.html ?
Write a program that creates a string that represents an 8×8 grid, using newline characters to separate lines. At each pos... | {
"domain": "codereview.stackexchange",
"id": 26841,
"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, programming-challenge, ascii-art",
"url": null
} |
# Using induction to prove that $\sum_{r=1}^n r\cdot r! =(n+1)! -1$
Use induction to prove that $\displaystyle\sum_{r=1}^n r\cdot r! =(n+1)! -1$
I first showed that the formula holds true for $n=1$. Then I put n as $k$ and got an expression for the sum in terms of $k$. I then found the sum till the $(k+1)$th term by ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713883126862,
"lm_q1q2_score": 0.8008949062932538,
"lm_q2_score": 0.8128673133042217,
"openwebmath_perplexity": 638.7074552065794,
"openwebmath_score": 0.9928795695304871,
"tag... |
chemical-biology, notation
Title: What does the Pi stand for in the reaction for biological nitrogen fixation? In the reaction for biological nitrogen fixation, what does the Pi stand for in the products?
$$\ce{N2 + 8H + 8e- + 16 ATP -> 2NH3 + H2 + 16ADP + 16 P_{i}}$$ It stands for inorganic phosphate (Pi). When ATP ... | {
"domain": "chemistry.stackexchange",
"id": 8534,
"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": "chemical-biology, notation",
"url": null
} |
( Chapter 1, Section 1 ) Definition & Basic R Syntax of dist function ( Definition & )! Any help would be appreciated and returns a dist object, nearest source to find distance between points. Md works well when two or more than 2 dimensional space, delta, max.points=,... See plot.hclust.. check Pythagorean distance ro... | {
"domain": "alathailand.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9441768620069626,
"lm_q1q2_score": 0.8252834886612207,
"lm_q2_score": 0.874077222043951,
"openwebmath_perplexity": 996.2104000000988,
"openwebmath_score": 0.7712957859039307,
"ta... |
quantum-field-theory, operators, path-integral
EDIT
I think it can be useful to add some details to what I said about Dirac brackets, defined as
$$
\{a,b\}_\mathrm{DB}=\{a,b\}_\mathrm{PB}-\{a,\ell^i\}_\mathrm{PB} M_{ij}\{\ell^j,b\}_\mathrm{PB}\tag{11}
$$
where $\ell^i$ are the constraints and $M^{ij}=\{\ell^i,\ell^j\}... | {
"domain": "physics.stackexchange",
"id": 33487,
"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, operators, path-integral",
"url": null
} |
statistical-mechanics, coordinate-systems, integration, mathematics, molecular-dynamics
must be written as
$$
\sin (\theta) d \theta d \phi.$$
Similarly, for the average on Euler's angles. | {
"domain": "physics.stackexchange",
"id": 88955,
"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": "statistical-mechanics, coordinate-systems, integration, mathematics, molecular-dyn... |
algorithms, time-complexity, number-theory, linear-algebra, factoring
Title: Devising an Algorithm for Linear Combination with Column Restrictions Application:
We intend to factor an integer $N$ using a variation of the rational sieve.
This involves constructing a congruence of squares modulo $N$ from a set of linear ... | {
"domain": "cs.stackexchange",
"id": 4985,
"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, number-theory, linear-algebra, factoring",
"url": null
} |
Am I missing something obvious here?
How can I factorize this? Should modify the original equation some way so that it's possible?
• hint : let $(2x-a)(2x-b)=4x^2-4x-15$ now find a,b – Khosrotash Apr 13 '15 at 4:37
• @daryakhosrotash ok, I'm trying... thanks – Trufa Apr 13 '15 at 4:39
• $$(2x-a)(2x-b)=4x^2-2x(a+b)+ab... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 1,
"lm_q1q2_score": 0.8376199572530448,
"lm_q2_score": 0.8376199572530448,
"openwebmath_perplexity": 202.60988074011576,
"openwebmath_score": 0.9055958986282349,
"tags": null,
"url... |
electromagnetism, electric-fields, charge, classical-electrodynamics
Title: Motional Electric Field When a conductor moves through an electric field, charge carriers inside it experience the Lorentz force, which takes the form $\mathbf{F} = q \mathbf{v} \times \mathbf{B}$. As the positive and negative charges separate... | {
"domain": "physics.stackexchange",
"id": 48800,
"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, electric-fields, charge, classical-electrodynamics",
"url": nu... |
javascript, dom, animation
}
function createMask() {
var y;
const can = createCanvas(config.width, config.height), ctx = can.getContext("2d");
const spread = config.width * (config.spread - config.spreadMin), lineH = config.lineHeight;
const spreadMin = config.width * config.spreadMin;
const sprea... | {
"domain": "codereview.stackexchange",
"id": 35750,
"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, dom, animation",
"url": null
} |
pushdown-automata
Title: How do you obtain transition relation of a PDA? I know how to figure out the start state, accepting state, input alphabet, and all that stuff. But how do you develop the transition relation of a PDA? For an FSM, (q0,a),q1) means if you start at q0 and get an a, you transition to q1. But what d... | {
"domain": "cs.stackexchange",
"id": 2024,
"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": "pushdown-automata",
"url": null
} |
complexity-theory, graphs, np-complete, np-hard
Title: Is the weighted transitive reduction problem NP-hard? The transitive reduction problem is to find the graph with the smallest number of edges such that $G^t = (V,E^t)$ has the same reachability as $G=(V,E)$.
When $E^t \subseteq E$ it is NP-complete. When $E^t \sub... | {
"domain": "cs.stackexchange",
"id": 4658,
"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": "complexity-theory, graphs, np-complete, np-hard",
"url": null
} |
ros
Title: Can we use ROS for our own robot
Can we use ROS for our own robot? ie, without buying the bases like PR2, Husky, TurtleBot, Kobuki etc. I can use a laptop inside my robot. I need to control the robot by a program installed in laptop. Whether i can use ROS in such a condition? Can i use ROS for controlling ... | {
"domain": "robotics.stackexchange",
"id": 15026,
"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",
"url": null
} |
ros
Title: how to upgrade my ros to latest version
I have installed ros(electric), old version ,I know, so I wanna upgrade to ros(hydro), Is there a simple way.
I have google a lot, can't find a good answer.(ps. I am in Ubuntu 11.10)
Thanks in advance!!
Originally posted by Yum.my on ROS Answers with karma: 11 on 20... | {
"domain": "robotics.stackexchange",
"id": 16086,
"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",
"url": null
} |
of Sines. An excircle and its properties. Then (a, b, c) is a primative Pythagorean triple. equal to 1/2 times the inradius times the perimeter. of the equation means integral of f(x) with respect to x. F(x)is called anti-derivative or primitive. Euler's Formula, Proof 10: Pick's Theorem We have translated our sum-of-a... | {
"domain": "coffeegallery.la",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639669551474,
"lm_q1q2_score": 0.8032033963979948,
"lm_q2_score": 0.8267118004748677,
"openwebmath_perplexity": 883.9167367789622,
"openwebmath_score": 0.7556191682815552,
"tags... |
gravity, rotational-dynamics, orbital-motion, rotation
Title: Does orbital motion cause rotation? Assume the moon was flying freely in space, and not rotating at all. If if then happened to pass earth at just the right distance and velocity to fall into orbit, would its absolute rotation be altered in any way, or woul... | {
"domain": "physics.stackexchange",
"id": 28625,
"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": "gravity, rotational-dynamics, orbital-motion, rotation",
"url": null
} |
ros, ros2, yaml
Title: Ros1_bridge can't mapping my msgs..... HELP
I installed Ros1_bridge by apt install ros-dashing-ros1_birdge.
and refered to https://github.com/ros2/ros1_bridge/blob/master/doc/index.rst.
i make 'my_mapping_rules.yaml'
<my_mapping_rules.yaml>
-
ros1_package_name: 'tut_msgs'
ros1_message_name:... | {
"domain": "robotics.stackexchange",
"id": 34611,
"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, ros2, yaml",
"url": null
} |
# Applying the Dominated Convergence Theorem
In a question I've got, I found that I need to prove the following equality:
$\lim_{h\rightarrow 0}\int_{0}^{\infty}\frac{e^{-(t+h)x}-e^{-tx}}{hx}dx=\int_{0}^{\infty}\lim_{h\rightarrow 0}\frac{e^{-(t+h)x}-e^{-tx}}{hx}dx$ ($t>0$ is a constant.)
I know the limit in the righ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357640753515,
"lm_q1q2_score": 0.8027048921235032,
"lm_q2_score": 0.8198933293122507,
"openwebmath_perplexity": 261.60180822541963,
"openwebmath_score": 0.9470835328102112,
"ta... |
ros2
Topics
Publisher
Subscription
Read the warning (ignore the typo):
Warning:
Users should not create a publisher with this constuctor, instead they should call Node.create_publisher().
Click the link to Node.create_publisher()
Looking at
create_publisher(msg_type, topic, qos_profile, *, callback_group=None, eve... | {
"domain": "robotics.stackexchange",
"id": 2702,
"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",
"url": null
} |
quantum-mechanics, mathematical-physics, operators, terminology, hilbert-space
Title: About the postulates of quantum mechanics and self-adjointness I am a freshman trying to understand the very basics of quantum mechanics but I met barriers at the beginning.
What really matters is the postulates of quantum mechanics ... | {
"domain": "physics.stackexchange",
"id": 19100,
"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, mathematical-physics, operators, terminology, hilbert-space",
... |
java, performance, android
/** gets the list */
chords = new ArrayList<>();
ChordsList list = new ChordsList();
list.createList();
chords = list.getList();
/** inflates the list into the recyclerview */
recyclerView = (RecyclerView) findViewById(R.id.chords_recycler);
recyclerView.setLayou... | {
"domain": "codereview.stackexchange",
"id": 22073,
"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, android",
"url": null
} |
c#, beginner, object-oriented, entity-framework-core
class WordProvider
{
private WordprocessingDocument document;
private Dictionary<string, string> _dict;
private string _templatePath;
private string _outputPath;
private string _tempPath;
public void CreateDocument(Dictionary<string, string>... | {
"domain": "codereview.stackexchange",
"id": 35785,
"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, object-oriented, entity-framework-core",
"url": null
} |
html, css
Didn't we just leave this party? What kept you? We ran into some old friends. Is the ship all right? Seems okay, if we can get to it. Just hope the old man got the tractor beam out of commission. Look! Come on, Artoo, we're going! Now's our chance! Go! No! Come on! Come on! Luke, its too late! Blast the door... | {
"domain": "codereview.stackexchange",
"id": 35625,
"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": "html, css",
"url": null
} |
where $$C$$ is just another constant. So I basically changed one constant for another one (completely allowed). Now the problem becomes
$$\begin{eqnarray} \ln\left(\frac{p + qF(t)}{1 - F(t)}\right) &=& (p + q)t + \color{blue}{C}(p + q) + \ln q = (p + q)(t + C) + \ln q\\ p + qF(t) &=& e^{(p + q)(t + C) + \ln q}(1 - F(t... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668657039606,
"lm_q1q2_score": 0.8067047322100867,
"lm_q2_score": 0.8221891305219504,
"openwebmath_perplexity": 1733.8631028593086,
"openwebmath_score": 0.9243391752243042,
"ta... |
fluid-dynamics, definition, flow, physical-constants
A flow of fluid comes in from infinity at some fixed flow velocity, then travels around an object like a marble that is fixed in space. While the fluid has many different speeds as it gets closer to the object, we all agree to use the speed off at infinity upstream ... | {
"domain": "physics.stackexchange",
"id": 90690,
"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": "fluid-dynamics, definition, flow, physical-constants",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.