text stringlengths 49 10.4k | source dict |
|---|---|
recursion, swift, fibonacci-sequence
or eliminate it completely:
var x = 0
func myFibonacci(of n: Int, a: Int, b: Int) -> Int {
x += 1
if (x == n) {
return b
} else {
return myFibonacci(of: n, a: b, b: a + b)
}
}
Now get rid of the global variable x by decrementing n instead
in the rec... | {
"domain": "codereview.stackexchange",
"id": 28782,
"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": "recursion, swift, fibonacci-sequence",
"url": null
} |
ros, callback, ros-kinetic, service, node
Edit: (nested) while-loops are not necessarily a good idea with an event-based, asynchronous framework such as ROS. You may want to re-evaluate your approach and possibly restructure your node.
Originally posted by gvdhoorn with karma: 86574 on 2018-02-25
This answer was ACCE... | {
"domain": "robotics.stackexchange",
"id": 30145,
"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, service, node",
"url": null
} |
image, rust, file-structure
Title: Extract PNGs embedded in a file My approach was to find each occurrence of the PNG's file signature followed by its end of file (EOF) and write the bytes between to a new file whose name is simply a counter starting at zero.
use std::env;
use std::fs::File;
use std::io::prelude::*;
... | {
"domain": "codereview.stackexchange",
"id": 19645,
"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": "image, rust, file-structure",
"url": null
} |
newtonian-mechanics, inertial-frames
Title: How does Newton's first law asserts the existence of inertial frames? Recently I've seem here one answer telling that Newton's first law really assures the existence of inertial reference frames. But how is that? I really can't see it. As I know, Newton's first law says:
Ev... | {
"domain": "physics.stackexchange",
"id": 9542,
"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, inertial-frames",
"url": null
} |
turtlebot, android
Title: turtlebot bringup android
[there's a question about this by ftrujillo on 27 oct 2013 but there's no answer. so i decided to bring this up again]
hello guys
I have a problem when bringing up the turtlebot. (just a warning)
after launching:
roslaunch turtlebot_bringup minimal_with_appmanager.l... | {
"domain": "robotics.stackexchange",
"id": 18382,
"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": "turtlebot, android",
"url": null
} |
electrostatics, electricity, water, everyday-life, air
Title: The Ultimate Hand Dryer I have come across many hand dryers that attempt to dry your hands really fast after you wash them. Here are two of them:
XLERATOR
http://www.exceldryer.com/
Dyson Airblade
http://www.dysonairblade.com/homepage.asp
So I guess I have ... | {
"domain": "physics.stackexchange",
"id": 14284,
"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, electricity, water, everyday-life, air",
"url": null
} |
semiconductor-physics, simulations, boundary-conditions, equilibrium
\end{equation}
where $F_{1/2}$ is the 1/2nd order Fermi-distribution and $g(E)$ is the density of states.
I have to compute the integrals with $E_c\text{ and }E_v$, but those are unknown. How do I initiate and update their values? How are each of th... | {
"domain": "physics.stackexchange",
"id": 94045,
"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": "semiconductor-physics, simulations, boundary-conditions, equilibrium",
"url": nu... |
quantum-mechanics, homework-and-exercises, time-evolution, unitarity
Title: time evolution of the state $|a'\rangle$ with Hamiltonian $H=|a'\rangle\delta\langle{a}''|+|a''\rangle\delta\langle{a}'|$ Reference to Chapter2, Problem8.b, Modern Quantum Mechanics, Sakurai:
$|a'\rangle$,$|a''\rangle$: eigenket of the hermiti... | {
"domain": "physics.stackexchange",
"id": 28843,
"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, homework-and-exercises, time-evolution, unitarity",
"url": nu... |
Cheers, Werner
05-25-2018, 08:20 PM
Post: #7
DavidM Senior Member Posts: 744 Joined: Dec 2013
RE: MC: Ping-Pong Cubes
An interesting challenge, Joe. This has a similar feel to some of your past challenges (Pan-prime Cube and All-odd digits come to mind). I suspect that some of the optimizations from the Pan-prime cube... | {
"domain": "hpmuseum.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9787126444811033,
"lm_q1q2_score": 0.8413637791072295,
"lm_q2_score": 0.8596637469145054,
"openwebmath_perplexity": 1845.7878489250068,
"openwebmath_score": 0.45289504528045654,
"tags":... |
javascript, beginner, html, css, dom
.o6 {
opacity: .6
}
.o7 {
opacity: .7
}
.o8 {
opacity: .8
}
.o9 {
opacity: .9
}
.o0:hover,
.o1:hover,
.o2:hover,
.o3:hover,
.o4:hover,
.o5:hover,
.o6:hover,
.o7:hover,
.o8:hover,
... | {
"domain": "codereview.stackexchange",
"id": 33871,
"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, html, css, dom",
"url": null
} |
homework-and-exercises, eigenvalue, equilibrium, non-linear-systems
Update:
These are the phase portraits for $a<a^*, a>a^*$ with $a^*=-1$ being the bifurcation point: As a check, for your linear stability matrix I get:
$$A = {\left. {\left( {\matrix{
{3{x^2} + a} & 1 \cr
1 & { - 1} \cr
} } \right)} \right|... | {
"domain": "physics.stackexchange",
"id": 11015,
"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, eigenvalue, equilibrium, non-linear-systems",
"url": nul... |
where:
The constants A, B, P, and Q are still to be determined, which we shall do by comparing the Runge-Kutta formula with the second order Taylor series given above. While f0 involves only information already available at the initial position (x,y), f1 must be evaluated by developing the Taylor expansion of f(x,y) a... | {
"domain": "utoronto.ca",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9886682454669815,
"lm_q1q2_score": 0.8217247305877824,
"lm_q2_score": 0.8311430394931456,
"openwebmath_perplexity": 267.5769564799191,
"openwebmath_score": 0.8647951483726501,
"tags": nu... |
scrnaseq, single-cell, 10x-genomics, cellranger
Title: Cellranger results have too many cells I have the results of cellranger analysis for single-nucleus RNA seq data that was done by someone else. So I do not know which parameters were used for cellranger. In the results, there are 77000 estimated cells (which is wa... | {
"domain": "bioinformatics.stackexchange",
"id": 2249,
"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": "scrnaseq, single-cell, 10x-genomics, cellranger",
"url": null
} |
physical-chemistry, quantum-chemistry
where "(1)" just reminds as that the operator is a single electron operator.
The operator $\widehat {\rm{h}}(1)$
$$\widehat {\rm{h}}(1) = - \frac{1}{2}\nabla _1^2 - \sum\limits_\mu {\frac{{{Z_\mu }}}{{{r_{\mu 1}}}}} $$
is also called the core-hamitonian since it represents the en... | {
"domain": "chemistry.stackexchange",
"id": 17232,
"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, quantum-chemistry",
"url": null
} |
ros, real-time
Edit:
Okay, sorry for the misuse of the word. My question remains though, but maybe this formulation would be better : if using a real-time tool together with ROS within a system, wouldn't the use of ROS make the whole system non-realtime?
For an answer to your rephrased question, I think I can refer ... | {
"domain": "robotics.stackexchange",
"id": 21267,
"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, real-time",
"url": null
} |
1} \over z^{2} + z - 1} \,{\dd z \over 2\pi\ic} \\[5mm]&=\oint_{\verts{z}\ =\ \varphi^{+}} {\pars{2 + z}^{n + 1} \over \pars{z + \varphi}\pars{z - \varphi^{-1}}} \,{\dd z \over 2\pi\ic} ={\pars{2 - \varphi}^{n + 1} \over -\varphi - \varphi^{-1}} +{\pars{2 + \varphi^{-1}}^{n + 1} \over \varphi^{-1} + \varphi} \\[5mm]&={... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9888419664501421,
"lm_q1q2_score": 0.819689479197989,
"lm_q2_score": 0.828938806208442,
"openwebmath_perplexity": 750.4311017111237,
"openwebmath_score": 0.9999997615814209,
"tags"... |
openni
Title: OpenNI: Camera calibration file not found
Hi,
I have calibration file for both RGB and IR camera. However, i'm still getting the Camera calibration file xxx not found. even though the xxx is the correct path?
Full console output:
Initializing nodelet with 4 worker threads.
Loading nodelet /xtion2/rgb/r... | {
"domain": "robotics.stackexchange",
"id": 14227,
"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": "openni",
"url": null
} |
There are many ways to find the system of equations. I just found this approach "elegant".
Hope it helps!
_________________
Consider giving me Kudos if I helped, but don´t take them away if I didn´t!
What would you do if you weren´t afraid?
Manager
Joined: 20 Jan 2016
Posts: 195
Re: When the positive integer k is d... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9585377272885903,
"lm_q1q2_score": 0.8240201445388361,
"lm_q2_score": 0.8596637577007393,
"openwebmath_perplexity": 1965.6477730458753,
"openwebmath_score": 0.7322742342948914,
"tags": ... |
c, console, to-do-list, markdown
Title: Command line todo list manager This is a tiny project of mine, a minimal command line todo list program that I regularly use to manage my todos.
It saves todos using GitHub markdown task lists format in a plain text file.
The whole thing is divided into three files: utils.c, tod... | {
"domain": "codereview.stackexchange",
"id": 32432,
"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, console, to-do-list, markdown",
"url": null
} |
lagrangian-formalism, field-theory, variational-principle, boundary-conditions, classical-field-theory
Title: Why my 4-divergence term added to a Lagrangian modifies the equation of motion? I take this Lagrangian:
$$\mathcal{L}=\mathcal{L}_0+\partial_\alpha f(\phi, \partial_\mu \phi).$$
In this topic Does a four-dive... | {
"domain": "physics.stackexchange",
"id": 39223,
"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, variational-principle, boundary-conditions, cl... |
x is divisible by 15 -> x is divisible by 3 and 5
x is not divisible by 20 -> x is not divisible by 4
Now because x is divisible by 15, it has 3 and 5 as factors and because x is not divisible by 20, it definitely does not have 4 as a factor .
In the given options only 12 is the number with 4 as a factor.
Thus x wil... | {
"domain": "blogspot.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773708039218115,
"lm_q1q2_score": 0.816577212318569,
"lm_q2_score": 0.8354835330070839,
"openwebmath_perplexity": 752.6824713266565,
"openwebmath_score": 0.5903541445732117,
"tags": nu... |
everyday-life, interference, radio
Title: Why does a green stoplight interfere with FM radio reception (more than yellow)? While listening to an FM radio station (frequencies between 88 and 108 MHz) in my car, I've noticed that as I pull up to a red light, there's an increase in the amount of noise. It's very noticeab... | {
"domain": "physics.stackexchange",
"id": 54497,
"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": "everyday-life, interference, radio",
"url": null
} |
kinect, rviz, openni, ros-kinetic
Title: How to change the kinect sensor view in RViz
Hello,
I am using kinect sensor for object recognition. Followed the below steps to see kinect sensor view in RViz.
Connected the kinect sensor to my desktop.
Ran "roslaunch openni_launch openni.launch"
Ran "rosrun rviz rviz" and S... | {
"domain": "robotics.stackexchange",
"id": 30363,
"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": "kinect, rviz, openni, ros-kinetic",
"url": null
} |
javascript, performance, algorithm, integer, binary
function createBitOrder(fromLeft, bits) {
const bitMasks = [];
var i = bits;
while (i-- > 0) { bitMasks.push(fromLeft ? (1 << i) : (1 << (bits - 1 - i))) }
return bitMasks;
}
function BitStream(mask) {
var pos = 0, buf = [];
const maskOut = ma... | {
"domain": "codereview.stackexchange",
"id": 40419,
"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, performance, algorithm, integer, binary",
"url": null
} |
homework-and-exercises, energy, spring
The final potential energy should be less than the initial mechanical energy in the spring by the energy lost due to friction.
If you're subtracting the friction energy from the final energy, it's the same as if you're adding the friction energy to the initial energy. I.e., you'... | {
"domain": "physics.stackexchange",
"id": 16096,
"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, energy, spring",
"url": null
} |
fluid-dynamics, pressure, drag
Title: What is the resistance of an object travelling through static fluid at different pressures? I'm interested in the resistance a body feels as it travels through a static fluid in a tube (of a fixed radius), at different pressures.
I would assume that as the pressure is reduced, t... | {
"domain": "physics.stackexchange",
"id": 50821,
"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, pressure, drag",
"url": null
} |
rosparam, ros-indigo
And if I'd like to load dumps I'd need to handle docker volumes/mounts which I don't like to do in this case.
use one container to run rosparam and target another container? Only volume mount (-v) would be the .yaml file containing the parameters?
Comment by gvdhoorn on 2018-05-18:
Btw: you could... | {
"domain": "robotics.stackexchange",
"id": 30856,
"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": "rosparam, ros-indigo",
"url": null
} |
special-relativity, speed-of-light
For the purpose of acceleration, he weights millions of billions of
tons. Can his muscles keep up?
It isn't clear what your reasoning here is. The spacecraft is in free-fall, moving uniformly through space, i.e., Joe is weightless. His muscles impart a force that accelerates him t... | {
"domain": "physics.stackexchange",
"id": 59639,
"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, speed-of-light",
"url": null
} |
thermodynamics, entropy, carnot-cycle
Entropy and the Second Law:
Let $\rm A$ and $\rm B$ be two equilibrium states of a system.
Consider two reversible continuous curves connecting $\rm A$ and $\rm B$ viz. $\mathtt I$ and $\mathtt I';$ together they constitute a reversible cycle. So, applying $\rm(II.a.i)$ we have
\b... | {
"domain": "physics.stackexchange",
"id": 33513,
"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, entropy, carnot-cycle",
"url": null
} |
javascript, object-oriented, recursion
"birth_year": "112BBY",
"gender": "n/a",
"homeworld": "http://swapi.co/api/planets/1/",
"films": [
"http://swapi.co/api/films/5/",
"http://swapi.co/api/films/4/",
"http://swapi.co/api/films/6/",
... | {
"domain": "codereview.stackexchange",
"id": 21984,
"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, object-oriented, recursion",
"url": null
} |
quantum-mechanics, harmonic-oscillator
Title: Quantum harmonic oscillator Hamiltonian terms I am trying to get the Hamiltonian for the harmonic oscillator using the following approach.
\begin{align}
p=&-i\sqrt{\frac{m\omega\hbar}{2}}\left(a-a^+\right) \\
H=&\frac{p^2}{2m}=\frac{\hbar \omega}{2}\left(aa^+-aa-a^+a^++a^+... | {
"domain": "physics.stackexchange",
"id": 36566,
"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, harmonic-oscillator",
"url": null
} |
Last edited by a moderator:
fresh_42
Mentor
But why is it true for radians only? I solved on my calculator and this is what i saw :
Tan (0.12) = 0.12 (where 0.12 is radians)
But when x is in degrees
Tan(0.12) = 0.00209
##\tan 0.12 \approx \tan 7° \approx [x + O(x^3)]_{at \, 0} = 0.12 \pm 0.002## which is close to ##0.1... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9609517072737737,
"lm_q1q2_score": 0.844817590225287,
"lm_q2_score": 0.8791467706759584,
"openwebmath_perplexity": 1083.5200391542446,
"openwebmath_score": 0.9414845705032349,
... |
sets, streaming-algorithm
Title: Count-Min sketch: dyadic ranges Can anyone give me a proof as to why
Any range over a unviverse {1...n} can be reduced to at most $2log_2n$
disjoint dyadic ranges? | {
"domain": "cs.stackexchange",
"id": 3762,
"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": "sets, streaming-algorithm",
"url": null
} |
In fact, we can do slightly better, by evaluating $$\prod_{k=0}^\infty \frac{(4k+1)(4k+4)}{(4k+2)(4k+3)}=\frac{\sqrt{\pi } \Gamma \left(\frac{3}{4}\right)}{\Gamma \left(\frac{1}{4}\right)}\approx 0.599$$ to give us a bound on the value, which is between this number and its reciprocal, around 1.669.
This method could b... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877675527114,
"lm_q1q2_score": 0.8171498562732341,
"lm_q2_score": 0.8418256452674009,
"openwebmath_perplexity": 472.86482224279206,
"openwebmath_score": 0.8669694662094116,
"ta... |
newtonian-mechanics, energy, lagrangian-formalism, metric-tensor, work
Now I also asked, how come Newton's three laws make no reference to energy, yet the usual notion of kinetic energy is special? The answer lies in the force laws that we use to model systems. Those force laws for which $\nabla\times_{e}\vec{F} = 0$ ... | {
"domain": "physics.stackexchange",
"id": 85109,
"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, energy, lagrangian-formalism, metric-tensor, work",
"url": ... |
database-theory, relational-algebra
We often write $U^n \times U^m = U^{n+m}$, but this isn't in general an equality of sets (it might be in some special cases, depending on the exact definition of $U^n$). Rather, we identify $U^n \times U^m$ with $U^{n+m}$, that is, we ignore the difference (this informal notion can ... | {
"domain": "cs.stackexchange",
"id": 8890,
"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, relational-algebra",
"url": null
} |
quantum-field-theory, renormalization, regularization
This is from the point of view of UV complete theories, where renormalization is all about taking the limit in which the energy cutoff is sent to infinity. Ok, you might say that one can use dimensional regularization, where there seems to be no cutoff. But then ag... | {
"domain": "physics.stackexchange",
"id": 64875,
"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, renormalization, regularization",
"url": null
} |
Last edited: Oct 7, 2005
10. Oct 7, 2005
### robphy
11. May 27, 2008
### a.a
Long WAy
I've been trying to do this proof the long way for almost 3 hrs now... and I've been working on it since two days ago.
my two sides look nothing alike at this point...
12. Mar 19, 2011
### Nes_physics
thanks for Physics Monke... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668723123673,
"lm_q1q2_score": 0.8067047376434469,
"lm_q2_score": 0.8221891305219504,
"openwebmath_perplexity": 627.7594249046862,
"openwebmath_score": 0.8243608474731445,
"tag... |
quantum-mechanics, interference, observers, double-slit-experiment, wavefunction-collapse
Title: Double slit experiment with detector and experimenter In the double slit experiment we have particles which travel through two slits and then hit a final wall/detector.
We can perform the experiment with or without an extr... | {
"domain": "physics.stackexchange",
"id": 96475,
"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, interference, observers, double-slit-experiment, wavefunction-c... |
1. Find all of the cyclic permutations in $S_3\text{.}$ Find their inverses.
2. Find all of the cyclic permutations in $S_4\text{.}$
###### 8.
Cycles $(a_1a_2\cdots a_k)$ and $(b_1b_2\cdots b_\ell)$ are called disjoint if the the sets $\{a_1,a_2,\ldots,a_k\}$ and $\{b_1,b_2,\ldots,b_\ell\}$ are disjoint, that is, if $... | {
"domain": "mathvista.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9937100986082059,
"lm_q1q2_score": 0.8005648489105505,
"lm_q2_score": 0.8056321959813275,
"openwebmath_perplexity": 1141.365494774177,
"openwebmath_score": 0.9926450848579407,
"tags": ... |
tensorflow, optimization
In Adam
The gradient was constant in the recent past, so $\text{BCMA}\left(g_{j}^{2}\right)\approx g_{j}^{2}$ and $\text{BCMA}\left(g_{j}\right)\approx g_j$.
Thus we get:
$$\begin{gathered}\\
\Delta x_{j}^{(t)}=-\frac{\text{learning_rate}}{\sqrt{g_{j}^{2}}}\cdot g_{j}=-\frac{\text{learning_rat... | {
"domain": "datascience.stackexchange",
"id": 10537,
"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": "tensorflow, optimization",
"url": null
} |
mechanical-engineering, motors
Title: What is your best recommendation to optimize the torque/speed relationship of a motor? I'm a engineering student currently taking Thermodynamics and we have this project for our finals which is a sort of reeling /towing device, the assignment consists in a reeling motor that has t... | {
"domain": "engineering.stackexchange",
"id": 2140,
"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": "mechanical-engineering, motors",
"url": null
} |
programming-challenge, time-limit-exceeded, swift, trie, backtracking
fileprivate struct Trie {
var root = TrieNode()
func insert(_ word: String) {
var rootNode = root
for char in word {
rootNode = insertInternal(char, at: rootNode)
}
rootNode.... | {
"domain": "codereview.stackexchange",
"id": 43770,
"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": "programming-challenge, time-limit-exceeded, swift, trie, backtracking",
"url"... |
State the power rule for integrals. $\endgroup$ – Michael E2 Aug 4 at 2:45 Antiderivative Calc. Erika. Free math problem solver answers your algebra, geometry, trigonometry, calculus, and statistics homework questions with step-by-step explanations, just like a math tutor. If the original problem had been . When you fi... | {
"domain": "mahicrack.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9621075690244281,
"lm_q1q2_score": 0.8119178656303714,
"lm_q2_score": 0.8438951025545426,
"openwebmath_perplexity": 732.2589013623224,
"openwebmath_score": 0.7130890488624573,
"tag... |
music, eigendecomposition, doa
The received signal, i.e., the (basedband version of the) RF data at the ouput of the $M$ antennas observed in $N$ subsequent snapshots is the $M \times N$ matrix $X$. The matrix $F$ comprises only the waveforms itself, you could think of it as the signal "before" the antenna array. But ... | {
"domain": "dsp.stackexchange",
"id": 9395,
"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": "music, eigendecomposition, doa",
"url": null
} |
special-relativity
Why coordinate time?
As far as I know the moving observer itself measures the proper things. It's clock measures proper time, it's speedometer measures proper velocity.
So if the observer accelerates with $10m/s^2$ (and feels that proper acceleration), isn't the speed shown by the local speedomete... | {
"domain": "physics.stackexchange",
"id": 8251,
"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",
"url": null
} |
special-relativity, vectors, tensor-calculus, linear-algebra
(c=1) Timaeus's answer could be correct. The $\Lambda$ matrix from your book may have been intended as a passive transformation (one that acts on the coordinate system) and you mistakenly used it as an active transformation (one that acts on the object). A... | {
"domain": "physics.stackexchange",
"id": 24159,
"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, vectors, tensor-calculus, linear-algebra",
"url": null
} |
spacetime-dimensions
Title: Can you affect higher dimensions from lower ones? To make it easier to explain, I'm going to use 2-D and 3-D.
Imagine you have a stationary sphere in a 3-dimensional space crossing through a 2-dimensional space (meaning the 2-D perspective has a circle that is a cross-section of that sphere... | {
"domain": "physics.stackexchange",
"id": 81765,
"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": "spacetime-dimensions",
"url": null
} |
ros, arduino, usb, hardware
Originally posted by tfoote with karma: 58457 on 2011-02-16
This answer was ACCEPTED on the original site
Post score: 9
Original comments
Comment by mjcarroll on 2011-02-16:
This is exactly what we do. We choose some informative names as well, like /dev/lrf, /dev/motor_controller, /dev/po... | {
"domain": "robotics.stackexchange",
"id": 4771,
"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, arduino, usb, hardware",
"url": null
} |
In general, suppose you have an expression of the form
$$f_1(x)+f_2(x)\over g_1(x)+g_2(x)$$
for which
$$\lim_{x\to c}{f_2(x)\over f_1(x)}=\lim_{x\to c}{g_2(x)\over g_1(x)}=0$$ Then
$$\lim_{x\to c}{f_1(x)+f_2(x)\over g_1(x)+g_2(x)}=\lim_{x\to c}{f_1(x)\over g_1(x)}$$
The proof amounts to inserting the intermediate ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307716151472,
"lm_q1q2_score": 0.8503292199677951,
"lm_q2_score": 0.8740772236840656,
"openwebmath_perplexity": 367.1341241313003,
"openwebmath_score": 0.8866962790489197,
"tag... |
This is the case because the abundances of the two elements must add up to give 100%, or $1$ as a decimal abundance.
You know that the average atomic mass of rubidium is $\text{85.5 u}$, and that the two isotopes have atomic masses equal to $\text{85 u}$ and $\text{87 u}$, respectively.
The equation will thus take th... | {
"domain": "socratic.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9603611608990299,
"lm_q1q2_score": 0.8255876722431774,
"lm_q2_score": 0.8596637451167997,
"openwebmath_perplexity": 543.2580279391957,
"openwebmath_score": 0.9055471420288086,
"tags": n... |
energy, electrostatics
Title: Energy density what volume? In a derivation of energy density for an electric field (see here) We get rid of the
$$\epsilon_0\oint(V \vec E \cdot d\vec a)$$
term by choosing a surface sufficiently far away so that this term vanishes. This leaves us with the expression:
$$W=\int\frac{\ep... | {
"domain": "physics.stackexchange",
"id": 19652,
"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, electrostatics",
"url": null
} |
ros-indigo
Originally posted by DinnerHowe with karma: 188 on 2016-09-23
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by lolz733 on 2016-09-23:
yes thats what i want to do , however when i did that it seems as though as i did not manage to change how the program work. Because ... | {
"domain": "robotics.stackexchange",
"id": 25808,
"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-indigo",
"url": null
} |
newtonian-mechanics, classical-mechanics, rotational-dynamics, reference-frames
Linear Momentum
$$\boldsymbol{p} = \sum_i m_i \boldsymbol{v}_i = \left( \sum_i m_i \right) \boldsymbol{v}_{\rm COM} + \boldsymbol{\omega} \times \left( \cancel{ \sum_i m_i \boldsymbol{d}_i }\right) = m\, \boldsymbol{v}_{\rm COM} $$
Angula... | {
"domain": "physics.stackexchange",
"id": 69966,
"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, classical-mechanics, rotational-dynamics, reference-frames",
... |
primitive-recursion
Title: How can primitive recursion in two variables be made to be of only one variable? Problem 7.16 in The Nature of Computation reads as follows:
[...] show that when defining primitive recursive functions, we really only need to think about functions of a single variable. In particular, show th... | {
"domain": "cs.stackexchange",
"id": 8667,
"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": "primitive-recursion",
"url": null
} |
ros, navigation, odometry, icp
Title: odometry feedback from ICP algorithm
I have a Fotonic E70P (ToF camera) publishing a Pointcloud2 topic. So I would like to know a good way to reconstruct a 3D scene through ICP and get published an odometry topic. Could any of the available software for RGBD cameras be used? RGBD... | {
"domain": "robotics.stackexchange",
"id": 17573,
"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, navigation, odometry, icp",
"url": null
} |
forces, acoustics, faster-than-light, causality, speed
Title: What's the speed of force? Brain storm:
Suppose we have a perfect lever, which has 0 quality, and perfect rigidity. It is long enough that can reach Proxima Centauri from the earth.
Someone push one side of lever from Proxima Centauri, immediately, the pers... | {
"domain": "physics.stackexchange",
"id": 76466,
"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": "forces, acoustics, faster-than-light, causality, speed",
"url": null
} |
java
buildDtos(dtos,
netProductIds,
sevenDayNetValues,
thirtyDayNetValues,
ninetyDayNetValues,
threeHundredSixtyFiveDayNetValues);
return dtos;
}
public void buildDtos(List<ProductValuesDto> dtos,
List<String> productIds,
Map<Strin... | {
"domain": "codereview.stackexchange",
"id": 37679,
"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
} |
special-relativity
Title: Is there a subtlety to the Lorentz transformations one needs to be aware of? Playing around with the four acceleration $$\left(\gamma^4_u \frac{\vec a\cdot\vec u}{c^2}\vec u +\gamma^2_u\vec a,\, \gamma^4_u\frac{\vec a\cdot\vec u}{c}\right)$$ I found the time part for frame' moving with veloci... | {
"domain": "physics.stackexchange",
"id": 3578,
"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",
"url": null
} |
php
echo min_strpos_array('hello#,?', array('#', '?')); //5
Outside of the algorithm, I made a few other changes.
for ($i; $i < count($needles); $i++) became for ($i = 0; $i < $length; $i++). When you have a function in a for loop, it gets called every iteration, which is unnecessary when the value doesn't change. Ju... | {
"domain": "codereview.stackexchange",
"id": 7826,
"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",
"url": null
} |
newtonian-mechanics, equilibrium, statics
$$c(N+1) = \frac{0\times N + 1(-1/2)}{N+1} = -\frac{1}{2(N+1)}$$
with masses measured in book masses. The negative means that the center of mass is now over the table away from the edge. We can now push the entire stack that distance towards the edge, resulting in a new extent... | {
"domain": "physics.stackexchange",
"id": 94560,
"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, equilibrium, statics",
"url": null
} |
ros, ros2, rclcpp, logging
Title: [ROS2] How to enable spdlog logger?
I know how to edit the logging format and logging level, but how to change the logger itself?
I was searching and trying with rclcpp::InitOptions options = rclcpp::InitOptions(); and rclcpp::init() but I couldn't find anything regarding changing ... | {
"domain": "robotics.stackexchange",
"id": 34096,
"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, rclcpp, logging",
"url": null
} |
php, wordpress
Title: Display content if form field is filled - Do not display if field is empty I am using the following code within the footer of my test site. I am using WordPress and Advanced Custom Fields
The intention is:
To display the HTML container .social-media--icons if any of the fields contain content wi... | {
"domain": "codereview.stackexchange",
"id": 37420,
"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, wordpress",
"url": null
} |
homework-and-exercises, newtonian-mechanics, forces, classical-mechanics
Title: Finding the acceleration of a cart rolling on a table
The cart is rolls frictionless on the table. It has a mass of $1 kg$. Attached to it are 2 strings, that go through two frictionless sheaves. The weights have masses as in the picture... | {
"domain": "physics.stackexchange",
"id": 6897,
"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, classical-mechanics",
"url":... |
ros
Title: Distributing a vdi with ROS pre-installed
I built an Ubuntu12.04LTS virtual machine and i use it with Oracle VirtualBox. I had downloaded the corresponding .iso from the official site, converted that into a virtual machine. So, with Ubuntu as guest OS, i have then installed ROS hydro and it works perfectly... | {
"domain": "robotics.stackexchange",
"id": 15723,
"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
} |
c++, simulation
Here's a simple symmetric clock in which the half period and phase (really only a half phase) may be specified by the user and produces a single output.
class SimpleClock : public Source<1> {
using Source<1>::output;
public:
SimpleClock(unsigned halfperiod = 1, unsigned phase = 0) :
Sou... | {
"domain": "codereview.stackexchange",
"id": 27816,
"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++, simulation",
"url": null
} |
dna-sequencing, human-genetics, human-evolution
One last comment about this mysterious species (nobody says it but most people think of Homo erectus): again, Prüfer et al. (2014) found some interesting patterns of derived allele sharing between present-day Africans, Denisovans and Neandertals (this should be equal for... | {
"domain": "biology.stackexchange",
"id": 5702,
"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": "dna-sequencing, human-genetics, human-evolution",
"url": null
} |
formal-languages, computability, pumping-lemma
Here are several exercises that readers can do so as to fill the gaps in the above sections.
Exercise 1. Show the class of non-recursively enumerable languages is closed under concatenation with a fixed string at the front.
Exercise 2. Show the class of non-recursively en... | {
"domain": "cs.stackexchange",
"id": 12778,
"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, computability, pumping-lemma",
"url": null
} |
fourier-transform, sampling, convolution, zero-padding
Title: Why do the lengths of the sampled signals $x_1, \: x_2$ have to be $\text{length}(x_1)+\text{length}(x_2)-1$? We know that convolution in time is equivalent to multiplication in frequency (Fourier).
$$x_1(t) \ast x_2(t) \leftrightarrow X_1(\omega)X_2(\omega... | {
"domain": "dsp.stackexchange",
"id": 10546,
"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": "fourier-transform, sampling, convolution, zero-padding",
"url": null
} |
ecmascript-6, promise, express.js
I think my then route could be better than what it is now. How do I optimize the promise chain a little better? You can't optimize a promise chain that doesn't exist. The only method that's returning a promise here is User.findOne(). In order for the route to be promise based, you'll ... | {
"domain": "codereview.stackexchange",
"id": 24156,
"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": "ecmascript-6, promise, express.js",
"url": null
} |
javascript, php, jquery, css, chess
function add_castling_moves_to_moves_list($moves, $piece, $squares_attacked_by_enemy, $board) {
$scenarios = array (
array(
'boolean_to_check' => 'white_can_castle_kingside',
'color_to_move' => 'white',
'rook_start_... | {
"domain": "codereview.stackexchange",
"id": 31987,
"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, php, jquery, css, chess",
"url": null
} |
• Hi Steve, I don't quite understand your description of $D^{-1}$. Could you explain it in more detail? Do you mean $D^{-1}(\tau)(\sigma)=[\tau \cap \partial^{-1}\sigma]$? For your computation, I'm not sure if $D^{-1}(\beta)(\alpha)$ makes sense, since $\beta$ and $\alpha$ are $1$-cycles in the link $L$, not in the com... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769092358046,
"lm_q1q2_score": 0.8171626988973955,
"lm_q2_score": 0.8376199673867852,
"openwebmath_perplexity": 240.67533200773497,
"openwebmath_score": 0.9773452281951904,
"ta... |
On the other hand, for any fixed $x > 0$ we have
$$\operatorname{erf}(x \sqrt{\log n})^n = \left(1 - \frac{1+o(1)}{x\sqrt{\pi \log n}} n^{-x^2} \right)^n \xrightarrow{n\to\infty} \begin{cases} 0, & x < 1 \\ 1, & x \geq 1. \end{cases}$$
Thus by the bounded convergence theorem, we have
$$\int_{0}^{R} (1 - \operatornam... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9740426405416756,
"lm_q1q2_score": 0.8298383568460924,
"lm_q2_score": 0.8519528019683106,
"openwebmath_perplexity": 505.1583865222356,
"openwebmath_score": 0.9999593496322632,
"tag... |
polymers
Title: Will the mass of ethene change if it is polymerized into poly ethene? Choose the correct answer and give a reason :
When the ethene is polymerized into poly ethene , all coming will change except (mass- molar mass- density ) Mass of reaction mixture doesn't change, because of law of conservation but ... | {
"domain": "chemistry.stackexchange",
"id": 8861,
"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": "polymers",
"url": null
} |
$d_{TV}(X,Y) \leq 2\mathbb{P}(X \not = Y).$
Proof. Let $$A$$ be an event. Note that
$\begin{eqnarray*} |\mathbb{P}(X \in A) - \mathbb{P}(Y \in A)| &=& \Big| \mathbb{P}(X \in A, X = Y) + \mathbb{P}(X \in A, X\not = Y) - \mathbb{P}(Y \in A, X\not = Y)- \mathbb{P}(Y \in A, X = Y) \Big| \\ &=& |\mathbb{P}(X \in A, X \not... | {
"domain": "github.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232940063591,
"lm_q1q2_score": 0.8035312485252839,
"lm_q2_score": 0.8175744850834649,
"openwebmath_perplexity": 406.306094629983,
"openwebmath_score": 0.8406763672828674,
"tags": null,... |
ros, roslaunch, ros-indigo
import rosnode; nodes = rosnode.get_node_names(); print(nodes) lists /<some-node> (and /rosout). some-node is (at least) discoverable in the network. So far so good.
If I send multiple service requests with
rc_itempick_start = rospy.ServiceProxy('/<some-node-namespace>/<some-service>', <serv... | {
"domain": "robotics.stackexchange",
"id": 31385,
"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, roslaunch, ros-indigo",
"url": null
} |
# Math Help - Solving integral using residue
1. ## Solving integral using residue
Need help to complete the following integral using the residue theorem:
$\displaystyle\int_{0}^{\infty}\frac{cos x}{x^{4}+4}dx= \frac{1}{2}\int_{-\infty}^{\infty}\frac{cos x}{x^{4}+4}dx=\frac{1}{2}Re\int_{-\infty}^{\infty}\frac{e^{ix}}... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9518632234212403,
"lm_q1q2_score": 0.8013028741515498,
"lm_q2_score": 0.8418256472515683,
"openwebmath_perplexity": 781.4271084736887,
"openwebmath_score": 0.9678022265434265,
"tag... |
ros, vslam-system, vslam
Title: Running vslam_system with stereo images via uvc_camera
I've been able to successfully install and run uvc_camera stereo_node. I can see published images with rviz, with data on following topics
/left/image_raw
/left/camera_info
/right/image_raw
/right/camera_info
so everything fine so... | {
"domain": "robotics.stackexchange",
"id": 5470,
"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, vslam-system, vslam",
"url": null
} |
Stokes' Theorem to evaluate (a) ZZ S. Example Verify the divergence theorem. Evaluate the surface integral directly. 12 [4 pts] Use the Divergence theorem to calculate RR S FnbdS, where F = hx4; x3z2;4xy2zi, and Sis the surface of the solid bounded by the cylinder x2 +y2 = 1 and the planes z= x+2 and z= 0. 6C-7 Verify ... | {
"domain": "saltotech.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9904405991009794,
"lm_q1q2_score": 0.8253585073266065,
"lm_q2_score": 0.8333245911726382,
"openwebmath_perplexity": 476.73427828009363,
"openwebmath_score": 0.9027653932571411,
"tag... |
I'll mark which outcomes belong to A, and to B (none can be both!):
AS - A A A
AC B - x x
AH B x - x
Now, P(A) is the number of A's over the number of letters: 3/12 = 1/4. Likewise, P(B) is the number of B's over the number of letters, also 1/4. And P(A and B) is 0, since no outcomes are in both A and B... | {
"domain": "themathdoctors.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587239874875,
"lm_q1q2_score": 0.8209687943379097,
"lm_q2_score": 0.8311430457670241,
"openwebmath_perplexity": 485.7630434708867,
"openwebmath_score": 0.7486289739608765,
"ta... |
cc.complexity-theory, graph-theory, graph-algorithms
Here is a rough proof to the above claim:
We start with a copy $H$ of $G$. We scan the vertices of $H$ one by one. If a vertex $v \in V(H)$ has degree $\leq k$ then we leave it as it is. Otherwise, consider $v$ and the edges coming out of it. We replace $v$ by a lis... | {
"domain": "cstheory.stackexchange",
"id": 1779,
"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": "cc.complexity-theory, graph-theory, graph-algorithms",
"url": null
} |
visualization, model-selection, tools, software-development, management
Title: Keep track of trainings, datasets eetc After searching quite some time for it on Google I could not find a sufficient software/toolbox that can manage trainings of neural networks. I thought of a program that combines visualization techniqu... | {
"domain": "datascience.stackexchange",
"id": 3240,
"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": "visualization, model-selection, tools, software-development, management",
"ur... |
electromagnetism, electrostatics, dielectric
If there is no dielectric material at all (or any other material), i.e. in a vacuum, the susceptibility is zero (there is no dielectric to receive the $\vec E$ field): $\chi =({\frac{\epsilon}{{\epsilon}_0}}-1)$, where $\chi$ is the susceptibility, $\epsilon$ the absolute p... | {
"domain": "physics.stackexchange",
"id": 41225,
"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, electrostatics, dielectric",
"url": null
} |
java
Title: Creative triangle stacks using for loops I was wondering if someone can help me out with achieving the following result (using for loops):
|../\..../\..|
|./\/\../\/\.|
|/\/\/\/\/\/\|
This is the code that I have written:
public static void drawBody1(){
for (int line = 1; line <= 3; line++){
Syst... | {
"domain": "codereview.stackexchange",
"id": 26035,
"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
} |
java, matrix, image
You can narrow this problem down in to four stages:
Set up a 'region counter', starting at 2
Scan the matrix for a 1
When you find a 1, recursively join it to all of it's 1-value neighbours, setting them all to the region-counter. You only need to look at 1-value'd neighbours.
When you have comple... | {
"domain": "codereview.stackexchange",
"id": 6522,
"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, matrix, image",
"url": null
} |
java, random
Title: Extending java.util.Random.nextInt(int) into nextLong(long) In java.util.Random the Oracle implementation of nextInt(int) is as follows:
public int nextInt(int n) {
if (n <= 0)
throw new IllegalArgumentException("n must be positive");
if ((n & -n) == n) // i.e., n is a power of 2
... | {
"domain": "codereview.stackexchange",
"id": 2712,
"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, random",
"url": null
} |
matlab, filters, discrete-signals, signal-analysis, cross-correlation
This is now your template. It is shorter than the signal you are looking for and you can "slide" it over the lower rate signal and estimate the cross correlation. At the point that the cross correlation peaks is where this second waveform is, in the... | {
"domain": "dsp.stackexchange",
"id": 5581,
"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": "matlab, filters, discrete-signals, signal-analysis, cross-correlation",
"url": null
} |
visible-light, interference
$$
\cos(\theta + \phi) = \cos(\theta) \cos(\phi) - \sin(\theta) \sin(\phi).
$$
So the overall result is
$$
I = \frac{A_1^2 + A_2^2}{2}.
$$
This calculation considered just two waves with a random relative phase. For many waves the argument is similar but involves a larger sum, with similar ... | {
"domain": "physics.stackexchange",
"id": 79151,
"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, interference",
"url": null
} |
light
Title: How much photon is still in flight? Since space is mostly empty, one might first think that the majority of the photons, e.g. emissions from the stars since the beginning of the universe, are still in flight and not absorbed by anything.
Is this true?
Is there any estimates that the proportion is relativ... | {
"domain": "astronomy.stackexchange",
"id": 4101,
"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": "light",
"url": null
} |
kinect, pcl, openni-kinect
[roscpp_internal] [2011-06-27 15:48:26,661] [thread 0x7feb0e4e47c0]: [DEBUG] XML-RPC call [getParam] returned an error (-1): [Parameter [/camera/depth/image/theora/quality] is not set]
[roscpp_internal] [2011-06-27 15:48:26,664] [thread 0x7feb0e4e47c0]: [DEBUG] XML-RPC call [getParam] return... | {
"domain": "robotics.stackexchange",
"id": 5971,
"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": "kinect, pcl, openni-kinect",
"url": null
} |
$\| x \|_2 \leq \sqrt{m} \| x \|_\infty \text{:}$
\begin{equation*} \begin{array}{l} \| x \|_2^2 \\ ~~~=~~~~ \lt \mbox{ definition } \gt \\ \sum_{i=0}^{m-1} \vert \chi_i \vert^2 \\ ~~~\leq~~~~ \lt \mbox{ algebra } \gt \\ \sum_{i=0}^{m-1} \left( \max_{j=0}^{m-1} \vert \chi_j \vert \right)^2 \\ ~~~=~~~~ \lt \mbox{ defin... | {
"domain": "utexas.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9888419671077918,
"lm_q1q2_score": 0.8130151150058149,
"lm_q2_score": 0.8221891283434876,
"openwebmath_perplexity": 1413.3954530479873,
"openwebmath_score": 1.0000100135803223,
"tags": nu... |
-
I've edited the question. Mind if I pick your brain some more? – Millardo Peacecraft Mar 31 '14 at 8:43
@MillardoPeacecraft: I edited my answer. – Najib Idrissi Mar 31 '14 at 8:58 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718483945665,
"lm_q1q2_score": 0.8091304386557798,
"lm_q2_score": 0.817574471748733,
"openwebmath_perplexity": 256.0779790250708,
"openwebmath_score": 0.9916040897369385,
"tags... |
;l is the length of pendulum;g is the acceleration due to gravity. 8 ; 30 : D The designer of the ride wants to know if the ride has the same time period as a pendulum of the same length. 20. This result is … When the length of a simple pendulum is increased by 22 cm, the period changes by 20% . Increasing the mass of ... | {
"domain": "jameswelling.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9871787830929849,
"lm_q1q2_score": 0.8138913233158339,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 486.29451470729504,
"openwebmath_score": 0.8461595177650452,
"tag... |
conformal-field-theory, stress-energy-momentum-tensor, scale-invariance
\delta S = 2 \int \omega T
$$
Thus, if the trace of energy momentum tensor vanishes, $T = 0$, then
$$
\delta S = 0
$$
and we have a symmetry of our theory!
OK. So we have shown that if $T = 0$, then the theory is invariant under Weyl and conformal... | {
"domain": "physics.stackexchange",
"id": 94155,
"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": "conformal-field-theory, stress-energy-momentum-tensor, scale-invariance",
"url":... |
• Dang you beat me by a few seconds :D – John Griffin Sep 23 '17 at 20:32
• Funny how that happens :) – Bram28 Sep 23 '17 at 20:34
• @JohnGriffin. So what? Is the stack a competitive game? – William Elliot Sep 23 '17 at 23:06
It seems correct, but you did skip a step in the backward direction with the words "by the de... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.980280872180697,
"lm_q1q2_score": 0.8370743345853134,
"lm_q2_score": 0.8539127492339909,
"openwebmath_perplexity": 219.07502156807092,
"openwebmath_score": 0.986110270023346,
"tags... |
kinematics, rotational-dynamics, collision
Title: Finding motion for an off-center collision of two bodies that can both translate and rotate I am writing a simple physics simulation of a real-life problem, and am having trouble coming up with a closed-form solution.
Problem description
Two rigid bodies with specified... | {
"domain": "physics.stackexchange",
"id": 92791,
"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": "kinematics, rotational-dynamics, collision",
"url": null
} |
graphs, trees, np
Title: Node weighted Steiner Tree Problem where all Nodes have the same Weight The node weighted Steiner Tree Problem as found in this compendium:
$\textbf{Instance}: \text{Graph } G = (V, E)\text{, set of terminals } S \subseteq V \text{ and a node weight function } w:V \to \mathbb{R}^+$
$\textbf{So... | {
"domain": "cs.stackexchange",
"id": 20425,
"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": "graphs, trees, np",
"url": null
} |
machine-learning, neural-network, keras
The image is taken from https://colah.github.io/posts/2015-08-Understanding-LSTMs
$ $
In RNN, your columns (the "700 columns") is the timesteps of RNN. Your data is processed from $t=1 \ to \ 700$. After feeding the data to the RNN, now it have 700 outputs which are $h_1$ to $h... | {
"domain": "datascience.stackexchange",
"id": 1040,
"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, neural-network, keras",
"url": null
} |
openni, asus-xtion-pro-live, xtion, asus, primesense
Original comments
Comment by dbworth on 2013-02-08:
Thanks @akin I will try that. Here is something you can test: try plugging your sensors into different USB ports. You should find that when you run openni_launch it reports that the device is connected to a diffe... | {
"domain": "robotics.stackexchange",
"id": 12808,
"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": "openni, asus-xtion-pro-live, xtion, asus, primesense",
"url": null
} |
The impulse response of an R-L circuit is a _____. Transient response of RC and RL circuits ENGR40M lecture notes | July 26, 2017 Chuan-Zheng Lee, Stanford University Resistor{capacitor (RC) and resistor{inductor (RL) circuits are the two types of rst-order circuits: circuits either one capacitor or one inductor. If a ... | {
"domain": "hotrodsmc.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808753491772,
"lm_q1q2_score": 0.8014526275435109,
"lm_q2_score": 0.8175744806385542,
"openwebmath_perplexity": 997.9841681574762,
"openwebmath_score": 0.5418322086334229,
"tags": n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.