text stringlengths 1 1.11k | source dict |
|---|---|
fluid-dynamics, capillary-action
We thus end up with the equation:
\begin{equation}
P_o -(P_{atm}-\rho_l g h) = \frac{4\gamma_{air/l}}{w}
\end{equation}
If we assume that the trapped air in the tube is describable as an ideal gas and that there is thermal equilibrium, we have that $P_o = P_c(h) = P_{atm}(1-\frac{\pi w... | {
"domain": "physics.stackexchange",
"id": 29986,
"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, capillary-action",
"url": null
} |
python, python-3.x, random, simulation
Reel = enum("CHERRY", "LEMON", "ORANGE", "PLUM", "BELL", "BAR", "SEVEN")
or use the enum34 library which is a backport of 3.4's version of Enum.
Simplify boolean expressions
You don't need parentheses around your boolean expressions - they make it more confusing. Instead of som... | {
"domain": "codereview.stackexchange",
"id": 14847,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x, random, simulation",
"url": null
} |
java, array, random, fluent-interface
long[] array1 = createArray().ofLongs()
.ofLength(12)
.withMinimum(-100L)
.withMaximum(200L)
.withDefaultRandom();
The above example code, for me, would be written better, as:
long[] array = ThreadLocalRandom.lon... | {
"domain": "codereview.stackexchange",
"id": 33564,
"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, array, random, fluent-interface",
"url": null
} |
I i = 7. h bih 1, = 4 Get more help from Chegg Get 1:1 help now from expert Mechanical Engineering tutors. The distance of the center of mass of the triangle in its new position from the pivot is the same. Neutral Axis/Moment of Inertia. This simple, easy-to-use moment of inertia calculator will find moment of inertia ... | {
"domain": "ricominciodalmesdi.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9883127413158322,
"lm_q1q2_score": 0.8257190309516621,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 410.50764068409853,
"openwebmath_score": 0.6430168151855469,
... |
Proof
Let $$A$$ is a finite set and assume that $$\text{card}(A) = k$$, where $$k = 0$$ or $$k \in \mathbb{N}$$. Assume $$x \notin A$$.
If $$A = \emptyset$$, then $$\text{card}(A) = 0$$ and $$A \cup \{x\} = \{x\}$$, which is equivalent to $$\mathbb{N}_1$$. Thus, $$A \cup \{x\}$$ is a finite set with cardinality 1, wh... | {
"domain": "libretexts.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936082881854,
"lm_q1q2_score": 0.8157533746136748,
"lm_q2_score": 0.8289387998695209,
"openwebmath_perplexity": 63.19698834679683,
"openwebmath_score": 0.9840684533119202,
"ta... |
autocorrelation, random-process
However, one thing we can do: we can split $R_X$:
$$\newcommand{\K}{{K_X}}\newcommand{\X}{{\tilde X}}
R_X(\tau) = 1 + \K(\tau)
$$
and consider $1$ and $\K$ separately. $\K$ is the autocovariance of $X$. For WSS $X$, this implies the mean of $X$ absolute squared needs to be $1$, so $\mu... | {
"domain": "dsp.stackexchange",
"id": 10993,
"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": "autocorrelation, random-process",
"url": null
} |
$$y= \begin{cases} f(x/n,z)&z\ge0\;,\\ 1 - f(1 - x/n,-z)&z<0\;, \end{cases}$$
with $f$ defined as above. Here are some plots.
-
Very cool. Is there any way to shape the curves more like quarter-circles? – Matt Munson Aug 17 '11 at 8:12
That's awesome, I can definitely put this to work. Many thanks. – Matt Munson Aug ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.976310529389902,
"lm_q1q2_score": 0.8218832355735209,
"lm_q2_score": 0.8418256393148982,
"openwebmath_perplexity": 237.22503405617704,
"openwebmath_score": 0.9164741635322571,
"tag... |
• $T(x)=y=Ax$
and
• $x=Mx'$
• $y=My'$
we have that
$$y=Ax\implies My'=AMx'\implies y'=M^{-1}AMx'$$
• I'm having trouble understanding this. $M * [x]_{B'} = [x]$ in the canonical basis, right? – iaskdumbstuff May 13 '18 at 19:32
• Note that in the new basis the vector (1,1,1) is represented by (0,0,1) indeed M(0,0,... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575157745542,
"lm_q1q2_score": 0.8187893482708012,
"lm_q2_score": 0.8333245994514084,
"openwebmath_perplexity": 290.67963101080477,
"openwebmath_score": 0.8232821822166443,
"ta... |
python, csv, beautifulsoup, wikipedia
r = requests.get(
'https://en.wikipedia.org/w/api.php',
params={
'action': 'query',
'titles': 'Transistor_count',
'prop': 'revisions',
'rvprop': 'content',
'format': 'json',
}
)
r.raise_for_status()
pages = r.json()['query']['pag... | {
"domain": "codereview.stackexchange",
"id": 39966,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, csv, beautifulsoup, wikipedia",
"url": null
} |
ros, moveit, catkin-make, ros-kinetic, fcl
# include catkin from workspace or via find_package()
if(_res EQUAL 0)
set(catkin_EXTRAS_DIR "${CMAKE_SOURCE_DIR}/${_out}/cmake")
# include all.cmake without add_subdirectory to let it operate in same scope
include(${catkin_EXTRAS_DIR}/all.cmake NO_POLICY_SCOPE)
add_s... | {
"domain": "robotics.stackexchange",
"id": 30877,
"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, moveit, catkin-make, ros-kinetic, fcl",
"url": null
} |
quantum-mechanics, quantum-field-theory, lattice-model
To maybe clarify a bit further, consider a simple double slit experiment: I want to calculate the QM amplitude of an electron at position A (on one side of the double slit) at time t0 to appear at position B (on the other side of the double slit) at time t1. For t... | {
"domain": "physics.stackexchange",
"id": 39111,
"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, quantum-field-theory, lattice-model",
"url": null
} |
- 4 years, 4 months ago
There is no bijection that will map the $n^ 2$ points onto the $(n+1)^2 - 4$ points, in part since the number of points are different.
I'm not too sure what you mean by "given any square of side length $m$, ...". Is there the possibility that you mean the mapping is from $m^2$ to $m^2 + 1$? If... | {
"domain": "brilliant.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211553734218,
"lm_q1q2_score": 0.8266169118139478,
"lm_q2_score": 0.8479677602988602,
"openwebmath_perplexity": 606.5233141919299,
"openwebmath_score": 0.8842993974685669,
"tag... |
homework-and-exercises, reference-frames, distance
Title: What distance does one travels in his lifetime? I think this isn't answerable without having point of reference from which speed at which earth travels in space, however if I am wrong the please give absolute distance.
Considering that earth spins around it's a... | {
"domain": "physics.stackexchange",
"id": 15880,
"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, reference-frames, distance",
"url": null
} |
Least squares solution
\begin{align} x_{LS} &= \left( \mathbf{A}^{*} \mathbf{A} \right)^{-1} \mathbf{A}^{*} b \\ % \left[ \begin{array}{cc} x_{1} \\ x_{2} \\ \end{array} \right] &= \frac{1}{6} \left[ \begin{array}{cc} 14 & -6 \\ -6 & 3 \\ \end{array} \right] % \left[ \begin{array}{cc} 5 \\ 11 \end{array} \right] \\ % ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407160384082,
"lm_q1q2_score": 0.8588147165635318,
"lm_q2_score": 0.8824278540866547,
"openwebmath_perplexity": 151.7890099958561,
"openwebmath_score": 1.0000100135803223,
"tag... |
simulation, manipulator, moveit, gripper, motionplanning
Title: How to add gripper to robot arm and plan according to the end effector on Moveit
Hello! I am simulating for a university project, the Elfin 5 robot arm which package can be found here along with a gripper which package is found here.
Being new to Moveit,... | {
"domain": "robotics.stackexchange",
"id": 38237,
"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": "simulation, manipulator, moveit, gripper, motionplanning",
"url": null
} |
ros, rviz, ros-kinetic
Fix:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
After:
$ ldd /opt/ros/kinetic/lib/librviz.so | grep Qt
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007ff360453000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff35e38a000)
... | {
"domain": "robotics.stackexchange",
"id": 30021,
"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, rviz, ros-kinetic",
"url": null
} |
quantum-field-theory, mass, field-theory
First, make the substitution $m\rightarrow \omega$ to get
\begin{array}
\mathcal{H} = \frac{1}{2} \pi^2 + \frac{\omega^2}{2}\phi^2 + \frac{1}{2}(\nabla\phi)^2.
\end{array}
Next, make the change of field coordinate $\phi\rightarrow \sqrt{m}\phi$. The reason for being such a ... | {
"domain": "physics.stackexchange",
"id": 62234,
"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, mass, field-theory",
"url": null
} |
primes, modular-arithmetic, encryption
So I need to show, that $ap \mod p=(ap)^e\mod p$. Since ap is a multiple of p, it should be $ap\equiv 0\mod p$ and so $(ap)^e=0\mod p$. It follows that $ap\mod p=(ap)^e\mod = p= 0 \mod p$.
I now need to show, that $ap\mod q=(ap)^e\mod q$. This is the part I am struggling with. I ... | {
"domain": "cs.stackexchange",
"id": 17589,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "primes, modular-arithmetic, encryption",
"url": null
} |
Note the above example $\,\Bbb Q(\sqrt{-14})$ has class group $\,K = {\rm C}(4)\,$ with exponent $4$.
See Coykendall's paper [1] for a recent discussion of related results and generalizations.
[1] Jim Coykendall. Properties of the normset relating to the class group.
http://www.ams.org/proc/1996-124-12/S0002-9939-96-... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363535858372,
"lm_q1q2_score": 0.8093106485515466,
"lm_q2_score": 0.8221891283434877,
"openwebmath_perplexity": 258.4447504522351,
"openwebmath_score": 0.9142245054244995,
"tag... |
quantum-mechanics, hilbert-space, wavefunction, complex-numbers
Also, you probably shouldn't think of the transpose as being a fundamental part of the concept of "adjoint". The transpose in the inner product expressed in matrix notation $\left<\psi_1, \psi_2\right> = \Psi_1^\dagger \Psi_2 = {\Psi_1^*}^T \Psi_2= {\Psi_... | {
"domain": "physics.stackexchange",
"id": 10099,
"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, complex-numbers",
"url": null
} |
acid-base, experimental-chemistry
The speed at which different acids dissolve the material? (Why then vary the volume of acid?)
The quantity of acid needed to dissolve a given of material? (Measured in what exactly? What does the volume effectively stand for? Moles?)
Something else?
Edit 1
J M's answer makes this muc... | {
"domain": "chemistry.stackexchange",
"id": 142,
"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, experimental-chemistry",
"url": null
} |
Question
# I have a total of Rs. $$300$$ in coins of denomination Re. $$1$$, Rs. $$2$$ and Rs. $$5$$. The number of Rs. $$2$$ coins is $$3$$ times the number of Rs. $$5$$ coins. The total number of coins is $$160$$. How many coins of each denomination are with me?
A
Number of Re. 1 coins =50; Number of Rs. 2 coins =4... | {
"domain": "byjus.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9891815497525024,
"lm_q1q2_score": 0.8558637091998235,
"lm_q2_score": 0.8652240930029117,
"openwebmath_perplexity": 3512.7088031497474,
"openwebmath_score": 0.9646574854850769,
"tags":... |
+0
Unusual simult equations with sqrts
+3
480
4
+88
Let a, b, c, and d be distinct real numbers such that
\begin{align*} a &= \sqrt{4 + \sqrt{5 + a}}, \\ b &= \sqrt{4 - \sqrt{5 + b}}, \\ c &= \sqrt{4 + \sqrt{5 - c}}, \\ d &= \sqrt{4 - \sqrt{5 - d}}. \end{align*}
Compute $$abcd$$.
Jan 28, 2021
edited by Melody May... | {
"domain": "0calc.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471647042429,
"lm_q1q2_score": 0.8322780665383708,
"lm_q2_score": 0.8459424353665381,
"openwebmath_perplexity": 1637.0312357475564,
"openwebmath_score": 1.0000087022781372,
"tags": nul... |
fft
Above is Fig. 1, the FTIR simulation program with ethyl acrylate as the test substance. The simulation conditions are shown in Fig. 1.
Figure 2 is the last of the ten 16k interferograms generated. It takes about 2.5 minutes per interferogram on my 2006 iMac 24. (It would be much faster on a modern Windows-based PC... | {
"domain": "dsp.stackexchange",
"id": 7767,
"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": "fft",
"url": null
} |
ros, turtlebot, startup
NODES
/
appmaster (app_manager/appmaster)
app_manager (app_manager/app_manager)
turtlebot_node (turtlebot_node/turtlebot_node.py)
turtlebot_laptop_battery (turtlebot_node/laptop_battery.py)
robot_state_publisher (robot_state_publisher/state_publisher)
diagnostic_aggreg... | {
"domain": "robotics.stackexchange",
"id": 8783,
"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, startup",
"url": null
} |
• Being a bridge player, I am very interested by this answer. My question is : does this result means that if I have one ace and my partner has one ace, the probability that one of the opponents has the two other aces is 90% ? Or, is such a statement totally wrong ? – Claude Leibovici Jan 8 '16 at 4:54
• If you have on... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9925393547705742,
"lm_q1q2_score": 0.8587689526529805,
"lm_q2_score": 0.8652240825770432,
"openwebmath_perplexity": 275.1453267648314,
"openwebmath_score": 0.8813962936401367,
"tag... |
ros2
Originally posted by EdwardNur on ROS Answers with karma: 115 on 2019-08-08
Post score: 0
@jdlangs is correct that shared_from_this() is the correct way to get a shared pointer to the node.
Besides the compilation issue, your code looks troublesome. rclcpp::spin() is a blocking function, so this->loop() will onl... | {
"domain": "robotics.stackexchange",
"id": 33593,
"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
} |
python, rospy
Title: ROSSerializationException while publishing TFMessage
Hi everyone,
When I'm trying to publish tf2_msgs/TFMessage message, I got the following error:
0.966600119221
0.967081379774
0.968426689557
0.968817018408
0.970126572275
0.970582148198
0.971705996452
0.972002006677
Traceback (most recent call ... | {
"domain": "robotics.stackexchange",
"id": 28503,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, rospy",
"url": null
} |
cosmology, spacetime, metric-tensor, coordinate-systems
Title: How do you find the proper separation between two spacetime points? Suppose you had two points in space-time A and B, where A = (t1, χ1, θ1, φ1) and B = (t1, χ2, θ1, φ1). How would you use the FLRW metric to find the proper separation? In this case the poi... | {
"domain": "physics.stackexchange",
"id": 74459,
"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": "cosmology, spacetime, metric-tensor, coordinate-systems",
"url": null
} |
c, database, circular-list, embedded
/****************************************************************
* Function Name : BucketNumbOfRegisteredFeeds
* Description : Gets the num of registered feeds
* Returns : No. of registered feeds
* Params None.
******************************************... | {
"domain": "codereview.stackexchange",
"id": 40696,
"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, database, circular-list, embedded",
"url": null
} |
reinforcement-learning, terminology, definitions
Some RL algorithms can make use of a model to help with learning. Planning algorithms require one. So called "model free" algorithms do not because they do not make use of an explicit model, they work purely from experience.
There are broadly two types of model: | {
"domain": "ai.stackexchange",
"id": 655,
"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": "reinforcement-learning, terminology, definitions",
"url": null
} |
slam, navigation, hokuyo-node, hector-slam, hector-mapping
Does that mean there is one lookupTransform call for which the tf wasn't set up, but then it found it?
Thanks in advance,
Ernest
Originally posted by Ernest on ROS Answers with karma: 341 on 2013-01-29
Post score: 0
Yes that is what it means.
When you start ... | {
"domain": "robotics.stackexchange",
"id": 12617,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, hokuyo-node, hector-slam, hector-mapping",
"url": null
} |
javascript, array, sorting
exports.findDuplicateTransactions = function (transactions = []) {
let duplicates = []
transactions.forEach((transaction, index) => {
for (let i=0; i<transactions.length; i++) {
if (index !== i) {
if (isDuplicateTransactions(transaction, transactions[i])) {
... | {
"domain": "codereview.stackexchange",
"id": 39420,
"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, array, sorting",
"url": null
} |
arduino, communication, usb, c++
size_t serialize_struct_A(struct A *data, unsigned char *buf, size_t buf_len)
{
size_t len = 0; | {
"domain": "robotics.stackexchange",
"id": 696,
"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": "arduino, communication, usb, c++",
"url": null
} |
arduino, rosserial
Title: which rosserial to use?
Hi all,
based on this question: http://answers.ros.org/question/196204/unable-to-sync-with-device-arduino-uno/, I wonder which one should be installed and used:
ros-indigo-rosserial (and everything
relates to it) or
the one from the rosserial
repository, under
indigo... | {
"domain": "robotics.stackexchange",
"id": 20982,
"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": "arduino, rosserial",
"url": null
} |
javascript, jquery, html, css, image
Title: Cleaning up a rotating image gallery I have created a nice little image gallery for the web. I set out wanting 3 things. 1. The whole gallery had a basic level responsiveness to it. 2. The gallery would take images of any size, and display them without cropping. 3. The galle... | {
"domain": "codereview.stackexchange",
"id": 8979,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, html, css, image",
"url": null
} |
python, beginner, python-3.x, game
def battle():
global hero_health
monster = Monster()
print("Prepare to battle!\n...")
time.sleep(3)
while monster.health > 0:
print("Prepare for monster attack! ....")
time.sleep(2)
print("Monster attacks you for {} damage".format(monster.a... | {
"domain": "codereview.stackexchange",
"id": 28765,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, python-3.x, game",
"url": null
} |
slit! Is easily observed from Eq would place this minimum at 85.0º to separate phenomena. by single... Is opposite to what happens with a prism, we have seen that diffraction can! Blue, green, red is performed using a 700 nm light ) the! 633-Nm light falling on a slit of width 20.0 μm angle,, is the separation between ... | {
"domain": "secretsheep.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799482964023,
"lm_q1q2_score": 0.8229839835148456,
"lm_q2_score": 0.8539127473751341,
"openwebmath_perplexity": 850.9114401396143,
"openwebmath_score": 0.5255885720252991,
"tags"... |
java, console
if (!tail.hasChild(head)) {
tail.addChild(head);
stateModified = true;
}
}
/**
* Handles the command for removing arcs between nodes.
*
* @param words the array of tokens.
*/
private void handleDisconnect(String[] words) {
if (word... | {
"domain": "codereview.stackexchange",
"id": 15753,
"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, console",
"url": null
} |
is the colatitude (polar) angle of the rotated vector r 1 and hence is the angle with the rotated vector r 2, which lies along the z-axis. (Research Article, Report) by "Shock and Vibration"; Physics Cranes (Hoisting machinery) Equipment and supplies Cranes, derricks, etc. Vectors allow you to represent quantities with... | {
"domain": "stuck-gesell.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232930001334,
"lm_q1q2_score": 0.8080666244464119,
"lm_q2_score": 0.8221891261650248,
"openwebmath_perplexity": 360.8178611992387,
"openwebmath_score": 0.8461831212043762,
"tags"... |
# Find the number of polynomial zeros of $z^4-7z^3-2z^2+z-3=0$.
Find the number of solutions of $$z^4-7z^3-2z^2+z-3=0$$ inside the unit disc.
The Rouche theorem fails obviously. Is there any other method that can help?
I have known the answer by Matlab, but I have to prove it by complex analysis.
Thanks!
• Couldn'... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668701095654,
"lm_q1q2_score": 0.817630476844763,
"lm_q2_score": 0.8333245870332531,
"openwebmath_perplexity": 189.62083334095155,
"openwebmath_score": 0.7353427410125732,
"tag... |
quantum-mechanics, definition, conventions, scattering, s-matrix-theory
In the convention of e.g. Wikipedia & Griffiths, the $2\times 1$ column is ordered according to left and right asymptotic regions, so that the free particle $V=0$ has $S=\sigma_x$.
In the convention of e.g. Gasiorowicz (see problem 4.1), the $2\t... | {
"domain": "physics.stackexchange",
"id": 84442,
"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, definition, conventions, scattering, s-matrix-theory",
"url":... |
c#, optimization, unity3d
for (int e = 0; e < lines.Length - 1; e++)
{
DebugVoid(lines.Length.ToString());
lines[e].Replace(toUse.OldID, toUse.NewID);
}
DebugVoid(toUse.OldID + " " + toUse.NewID);
File.WriteAllLines(toUse.ApplicationPath... | {
"domain": "codereview.stackexchange",
"id": 9856,
"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#, optimization, unity3d",
"url": null
} |
fft
Pops/cracks are impulsive in nature and therefore quite broadband. noise is very broad but I would assume here that is anything additive to the sinusoid.
You can catch all three, given reasonable assumptions, using the same way that Total Harmonic Distortion (THD) is measured.
To do that, setup a very narrow band... | {
"domain": "dsp.stackexchange",
"id": 7198,
"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": "fft",
"url": null
} |
ros, ros-fuerte, joint-trajectory-action
//we are done; return the goal
return goal;
}
//! Returns the current state of the action
actionlib::SimpleClientGoalState getState()
{
return traj_client_->getState();
}
};
int main(int argc, char** argv)
{
// Init the ROS node
ros::init(argc, argv, "... | {
"domain": "robotics.stackexchange",
"id": 12768,
"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-fuerte, joint-trajectory-action",
"url": null
} |
# The function to be fit is Z.
Z = np.zeros(X.shape)
for p in gprms:
Z += gaussian(X, Y, *p)
Z += noise_sigma * np.random.randn(*Z.shape)
# Plot the 3D figure of the fitted function and the residuals.
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.plot_surface(X, Y, Z, cmap='plasma')
ax.set_zlim(0,np.max(Z)+2)
pl... | {
"domain": "scipython.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9648551535992068,
"lm_q1q2_score": 0.8675218926140221,
"lm_q2_score": 0.899121375242593,
"openwebmath_perplexity": 3874.1058910497372,
"openwebmath_score": 0.590046763420105,
"tags": n... |
javascript, object-oriented, d3.js
svg.call(tip);
////////////////////////////////////////////////////////////////////////
// Draw a single double bar
////////////////////////////////////////////////////////////////////////
// create x axis
svg.append('g')
.attr('class', 'x axis')
.attr('transform', 'translate(... | {
"domain": "codereview.stackexchange",
"id": 30613,
"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, d3.js",
"url": null
} |
3. ## Re: Circular Keychain Problem
Hello, infraRed!
How many ways can 6 keys be placed on a circular key ring?
Both sides of the ring are the same, and here is no way to tell which is the "first" key on the ring.
My first thought is P(6,6)/6 = 120. . Good!
The idea being that each permutation "matches" five other p... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8231236353869833,
"lm_q2_score": 0.8333245932423308,
"openwebmath_perplexity": 1010.0611362707785,
"openwebmath_score": 0.7598508596420288,
"ta... |
space-telescope
Your telescope will not be affected by light pollution, so its performance on faint objects (such as galaxies or nebulae) will always be 100% of the maximum for that aperture.
Bottom line: you are going to have a pretty small telescope, but operating completely free of the effects of the atmosphere. | {
"domain": "astronomy.stackexchange",
"id": 1048,
"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": "space-telescope",
"url": null
} |
java, beginner, swing, gui
jb_login.addActionListener(this);
jb_signup.addActionListener(this);
jtf_username.addActionListener(this);
jtf_password.addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
username = jtf_u... | {
"domain": "codereview.stackexchange",
"id": 11835,
"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, beginner, swing, gui",
"url": null
} |
deep-rl, monte-carlo-tree-search
I don't understand how this use of a transposition table do not lead to infinite loops in the MCTS search, or how to avoid them.
For instance, say that a state $A$ has many children $B_1, \cdots, B_n$. Each of these child is associated to a certain prior given by the Neural Network. Le... | {
"domain": "ai.stackexchange",
"id": 4003,
"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": "deep-rl, monte-carlo-tree-search",
"url": null
} |
There’s a lot going on here, but in its most simplified version, we thought we would get a curve on the center line at $\theta =0$, 1 unit above at $\theta =\frac{\pi}{2}$, on at $\theta =\pi$, 1 unit below at $\theta =\frac{3\pi}{2}$, and returning to its starting point at $\theta =2\pi$. We had a very rough “by hand... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363762626284,
"lm_q1q2_score": 0.817280920653363,
"lm_q2_score": 0.8289388040954684,
"openwebmath_perplexity": 597.7391518388741,
"openwebmath_score": 0.8109343647956848,
"tags": n... |
• Hint: what is the definition of expected value? – Sean Roberson Apr 22 '18 at 0:50
• @SeanRoberson $E(x)=\sum xp(x)$, what would be p(x) in this case? – user441848 Apr 22 '18 at 0:56
• p(x=1)=1/4... yes like you said above since its a discrete random variable. So X=1 X=2 X=3 are the possible values. – Rivaldo Apr 22 ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9895109099773436,
"lm_q1q2_score": 0.80899886831091,
"lm_q2_score": 0.8175744806385543,
"openwebmath_perplexity": 634.8554559138727,
"openwebmath_score": 0.7528772354125977,
"tags"... |
terminology, evolutionary-algorithms, genetic-programming, grammatical-evolution, codon
$\langle \text{expr} \rangle \langle \text{op} \rangle \langle \text{expr} \rangle$ (choice at index $0$)
$\langle \text{operand} \rangle$ (choice at index $1$) | {
"domain": "ai.stackexchange",
"id": 2521,
"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": "terminology, evolutionary-algorithms, genetic-programming, grammatical-evolution, codon"... |
python, beginner, python-3.x, validation, coordinate-system
I'm wondering if this is a good solution, if there are problems with doing it this way (i.e., inheritance) that I'm not seeing, etc etc. Any criticism is welcome.
One thing that I don't like, and doesn't seem to make sense, is that I had to move the list of ... | {
"domain": "codereview.stackexchange",
"id": 10358,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, python-3.x, validation, coordinate-system",
"url": null
} |
quantum-field-theory, string-theory, mathematical-physics, solitons
Title: Moduli spaces in string theory vs. soliton theory In both string theory and soliton theory, moduli spaces are frequently used.
As far as I known, for soliton theory, moduli spaces are something like collective coordinates for solitons, and for... | {
"domain": "physics.stackexchange",
"id": 16105,
"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, string-theory, mathematical-physics, solitons",
"url": nul... |
I hope you learnt something from this thread!
Follow me @mathsppblog for more educational threads like this 😄
Also, FYI, you can read this thread – and all my other threads – on my blog:
TL;DR:
• the look-and-say sequence works by “reading out loud” the digits;
• itertools has a tool groupby that groups consecutiv... | {
"domain": "mathspp.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9833429595026213,
"lm_q1q2_score": 0.8172986685639421,
"lm_q2_score": 0.8311430520409023,
"openwebmath_perplexity": 3557.7042997969506,
"openwebmath_score": 0.3141944408416748,
"tags": n... |
localization, gazebo, ekf, odometry, husky
EDIT 1 in response to comment
I get the three separate tf trees; what is publishing the fourth odom->base_link transform?
rviz is going to yell at you here, as it doesn't know how to transform from each world (huskyN/odom) frame to the other, so you won't be able to display m... | {
"domain": "robotics.stackexchange",
"id": 23708,
"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, gazebo, ekf, odometry, husky",
"url": null
} |
cancer
The challenge with any 'signature' detection is the sensitivity and specificity which often limits the use of tests that show some early promise.
Cancer cells DO have specific changes to their DNA that can be used as very specific signatures for detection. Tumor DNA is shed into the blood and possibly the uri... | {
"domain": "biology.stackexchange",
"id": 1999,
"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": "cancer",
"url": null
} |
q#, azure-quantum
Title: Changing target Quantinuum Processor I am trying to go through the Q# tutorial at https://learn.microsoft.com/en-us/training/modules/qsharp-create-first-quantum-development-kit/4-random-number-generator before I get my hands dirty and start writing my own code. But I cannot get off the ground ... | {
"domain": "quantumcomputing.stackexchange",
"id": 4361,
"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": "q#, azure-quantum",
"url": null
} |
python, primes, sieve-of-eratosthenes
The next-lower level so far only needed to yield the 18 primes up to 61. Which is correct, as the next-larger prime 67 will only start marking at 672=4489, well above the prime 3943 needed next by the top-level iterator. And so on, until the fifth and lowest level only needed its ... | {
"domain": "codereview.stackexchange",
"id": 39760,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, primes, sieve-of-eratosthenes",
"url": null
} |
dynamics are modeled using linear and nonlinear time series models. As a mathematical consequence of the herd behavior, they considered competition models and predator-prey systems. This video will show you the basics and give you an idea of what working in MATLAB looks like. Lotka-Volterra predator prey model. It was ... | {
"domain": "nomen.pw",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9901401423688666,
"lm_q1q2_score": 0.8845015038962932,
"lm_q2_score": 0.8933094074745443,
"openwebmath_perplexity": 1332.7149487413285,
"openwebmath_score": 0.4283117651939392,
"tags": null... |
arduino, rosserial
Originally posted by jcardenasc93 with karma: 70 on 2016-02-10
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by adelleodel on 2016-05-26:
external power supply for arduino or motor?
Comment by NeoM on 2018-10-22:
I had the same problem and it was an excess of... | {
"domain": "robotics.stackexchange",
"id": 23607,
"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": "arduino, rosserial",
"url": null
} |
navigation, move-base
Original comments
Comment by Atika on 2017-04-21:
Thank you for your answer.
The problem is that when, for example rviz shows a path avoiding obstacles, the path that is drawn on my app subscribed to global_plan is always staight and the robot when it moves on simulation goes straight too. Does r... | {
"domain": "robotics.stackexchange",
"id": 27674,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, move-base",
"url": null
} |
c, homework, queue, child-process, posix
These are all the flags that I always use for all of my projects. Sometimes I use even more. I would recommend that you take a look at all of the warning options sometime and fine-tune them for your own needs.
Specify your compiler version.
CC = gcc-4.9
Right now you are usi... | {
"domain": "codereview.stackexchange",
"id": 9886,
"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, homework, queue, child-process, posix",
"url": null
} |
general-relativity, cosmology, space-expansion, cosmological-inflation, dark-energy
The analogy with the thrown ball is actually pretty close. At the instant of the Big Bang the galaxies all started out with very high velocities, just as the thrown ball started out with a high velocity, and for the first few billion y... | {
"domain": "physics.stackexchange",
"id": 43943,
"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, cosmology, space-expansion, cosmological-inflation, dark-energ... |
# Proving that multivariable limit exists
1. Aug 18, 2015
### physdood
1. The problem statement, all variables and given/known data
Given f(x,y)=(y+x)/(y-x) use an ε-∂ proof to show that lim(x,y)→(0,1) f(x,y) exists.
2. Relevant equations
|(y+x)/(y-x)-1|=|(2x)/(y-x)|
3. The attempt at a solution
I know that the li... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759638081522,
"lm_q1q2_score": 0.8257265392138591,
"lm_q2_score": 0.8418256432832332,
"openwebmath_perplexity": 228.9014335161774,
"openwebmath_score": 0.9285799264907837,
"tag... |
ds.algorithms
let $u = - \sum_{i=1}^k 2^{c+ki} -k2^b$
Build an equivalent (k+1)-SUM problem picking $X = \{ u \} \cup Y_1 \cup ... \cup Y_k$
Note that every $Y_i$ contains only positive elements.
Informally we require a $k+1$ elements subset $C$ from $X$ whose elements sum to zero.
We cannot build a solution only wit... | {
"domain": "cstheory.stackexchange",
"id": 2814,
"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": "ds.algorithms",
"url": null
} |
electrostatics, newtonian-gravity
And this turns out to be just like the gravity case. It is possible to make a shell of mass and the gravitational effect has no local effect on the things inside (it does make the things inside age slower than things on the outside but that is an effect from general relativity and the... | {
"domain": "physics.stackexchange",
"id": 24540,
"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, newtonian-gravity",
"url": null
} |
39
At present: I do not think KaTeX is yet a viable option. At issue is feature parity. For comparison: MathJax supports on the order of ~800 built-in commands, plus the ability to define new macros using \def or \newcommand. Currently, the link given in Lipis's comment shows around ~250 commands supported. Mathjax al... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9669140182743435,
"lm_q1q2_score": 0.8057532289775602,
"lm_q2_score": 0.8333245911726382,
"openwebmath_perplexity": 1463.9829533654017,
"openwebmath_score": 0.9520244002342224,
"ta... |
biochemistry, electronegativity, polarity, amino-acids
done differently in biochemistry, probably because most biochemical reactions are done in aqueous medium. Therefore, the classification of them as polar and non-polar is somewhat different from source to source. In general, amino acids, which can make hydrogen bon... | {
"domain": "chemistry.stackexchange",
"id": 14758,
"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, electronegativity, polarity, amino-acids",
"url": null
} |
Since there are a total of $$x^0 + x^2 + x^4 + \ldots + x^{2k} = \frac{1 - x^{2k + 2}}{1 - x^2}$$ sequences of even length at most $n = 2k$ in an alphabet with $x$ characters, the number of sequences of even length at most $n = 2k$ that are not palindromes is \begin{align*} \frac{1 - x^{2k + 2}}{1 - x^2} - \frac{1 - x^... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9905874094398219,
"lm_q1q2_score": 0.865849917029702,
"lm_q2_score": 0.8740772482857833,
"openwebmath_perplexity": 225.80245785888377,
"openwebmath_score": 0.9043335318565369,
"tag... |
optics, reflection, refraction
Secondly, all laws still apply (ie Maxwell eqs). However, I think its easier to think of it this way: metals have conducting electrons, and they oscillate mostly freely. They are not bound in a potential which affects their mobility and thus, also their optical properties. Reflection of ... | {
"domain": "physics.stackexchange",
"id": 79588,
"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": "optics, reflection, refraction",
"url": null
} |
velocity, rotational-kinematics, angular-velocity
Title: Is $v$ not always equal to $\omega r$ in angular motion? NB:I am not asking an answer for the question quoted.
I had this question given in my book:
A ring of radius $R$ rolls on a horizontal ground with linear speed $v$ and angular speed $\omega =2v/R$. For wh... | {
"domain": "physics.stackexchange",
"id": 24074,
"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": "velocity, rotational-kinematics, angular-velocity",
"url": null
} |
quantum-algorithms, hhl-algorithm
Indeed it does. It is crucial that the two registers are entangled, and you cannot consider just $C$ in isolation. However, this is where it continues to help by just considering $|u_j \rangle$ instead of $b$. In that case, the register $C$ is separable from register $I$. What that st... | {
"domain": "quantumcomputing.stackexchange",
"id": 813,
"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-algorithms, hhl-algorithm",
"url": null
} |
gravity, big-bang, multiverse
Title: Gravity in the multiverse Consider Tegmark's multiverse theory, and single out a level.
My question is: is each of the sub-universes endowed with gravity ?
What about gravity between the sub-universes: does the multiverse come with a "global gravity" ?
If it would, what are the ... | {
"domain": "physics.stackexchange",
"id": 61276,
"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, big-bang, multiverse",
"url": null
} |
thermodynamics, gravity, astronomy, thermal-radiation
Title: Why aren't gas planets and stars fuzzy? The edge of Jupiter looks very sharp.
Even more bothersome, the edge of the sun looks sharp, aside from kind of a soup of particles floating above it.
The sun's surface has an incredibly low density. I mean, $10^{-6... | {
"domain": "physics.stackexchange",
"id": 6150,
"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, gravity, astronomy, thermal-radiation",
"url": null
} |
organic-chemistry, reaction-mechanism, stereochemistry
My hyporthesis is that there is a $\pi$-$\sigma^{*}$ interaction between the alcohol-group ($\sigma^*$) that draws electrons out of the $\pi$ orbital of the double bond? I cannot formulate it really. And why the ratio is so pronounced. No, you’re overthinking this... | {
"domain": "chemistry.stackexchange",
"id": 4271,
"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": "organic-chemistry, reaction-mechanism, stereochemistry",
"url": null
} |
graphs, discrete-mathematics, max-cut
Title: Does graph G with all vertices of degree 3 have a cut vertex? I'm asked to draw a simple connected graph, if possible, in which every vertex has degree 3 and has a cut vertex. I tried drawing a cycle graph, in which all the degrees are 2, and it seems there is no cut vertex... | {
"domain": "cs.stackexchange",
"id": 11706,
"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, discrete-mathematics, max-cut",
"url": null
} |
spectroscopy, nmr-spectroscopy
Title: Deduce the possible structure given spectroscopic data for the aromatic compound For $\ce{C11H13NO}$, I have the following $\ce{^1H}$ NMR data:
shift (ppm)
3.00 (6H, s)
6.55 (1H, dd, $J=15.5, \pu{9 Hz}$)
6.70 (2H, d, $J=\pu{8Hz}$)
7.35 (1H, d, $J=\pu{15.5Hz}$)
7.45 (2H, d, $J=\pu... | {
"domain": "chemistry.stackexchange",
"id": 8903,
"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": "spectroscopy, nmr-spectroscopy",
"url": null
} |
newtonian-mechanics, reference-frames, inertial-frames, definition
What do you think of my definition? Can we find other frames with different laws? Can we prove they exist? A reference frame is simply a system of co-ordinates measured relative to a specific point, which is the origin in that reference frame.
Often we... | {
"domain": "physics.stackexchange",
"id": 71602,
"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, reference-frames, inertial-frames, definition",
"url": null... |
electromagnetism, special-relativity, magnetic-fields, electric-current, inertial-frames
Title: How do we think at the perspective of negatively charged wire in special relativity that causes magnetism? I am currently try to learn special relativity, and then i crossed on some video about how special relativity can ca... | {
"domain": "physics.stackexchange",
"id": 82871,
"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, special-relativity, magnetic-fields, electric-current, inertial-... |
php, laravel
Title: Laravel - Repetitive code in store and update functions I am working on a system and I can see myself using repetitive code that does not look right. I want to clean up my code but I don't really know many ways to do so. I have 2 methods (store and update). They both look like this
store
public fun... | {
"domain": "codereview.stackexchange",
"id": 37101,
"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, laravel",
"url": null
} |
However, finding roots of the characteristic polynomial is generally a terrible way to find eigenvalues. Actually computing the characteristic polynomial coefficients and then finding the roots somehow (Newton’s method?) is a disaster, incredibly ill-conditioned: gave the example of Wilkinson’s polynomial. If we can co... | {
"domain": "mit.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9927672349125561,
"lm_q1q2_score": 0.8418345991511923,
"lm_q2_score": 0.8479677506936879,
"openwebmath_perplexity": 686.4371384785054,
"openwebmath_score": 0.8574604392051697,
"tags": null,
... |
ros, call-service, camera-info, camera
sensor_msgs::CameraInfo camera_info;
camera_calibration_parsers::readCalibration(filename, camera_name, camera_info);
sensor_msgs::SetCameraInfo srv;
srv.request.camera_info = camera_info;
if (client.call(srv))
{
if(srv.response.success)
{
std::ostringst... | {
"domain": "robotics.stackexchange",
"id": 23004,
"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, call-service, camera-info, camera",
"url": null
} |
python, object-oriented, python-3.x, json, tkinter
question = questionDirectory.get("question") #This is the question text
correctanswerText = questionDirectory.get("answer") #This is the answer for whichever question has been selected.
arabic = qu... | {
"domain": "codereview.stackexchange",
"id": 32031,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, object-oriented, python-3.x, json, tkinter",
"url": null
} |
radioactivity
The graph given in the problem is very simple, it has only counts plotted against time. Yes you can compute the total number of nuclei from such a graph.
Basically, if you plot # of decays per second on the Y axis, and time on the X axis, then the area under the curve (if your curve ran all the way to in... | {
"domain": "physics.stackexchange",
"id": 21320,
"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": "radioactivity",
"url": null
} |
python, git
Title: Git command: push the latest commit and email the diff in colour This is my first attempt a for git command I can use to push the latest commit and email the diff. Story behind how it came up: http://goo.gl/3NEHvn
Revision 1 (Scroll down for 2nd Revision)
import argparse
import subprocess
import os
... | {
"domain": "codereview.stackexchange",
"id": 5826,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, git",
"url": null
} |
continuous-signals, signal-detection, bandpass
Edit 2:
Here's a functional equivalent to my problem in python. Any comments as to why I'm not obtaining a clean output signal? I've played around with the cutoff values but I'm not very familiar with signal processing so I'm not sure if I'm approaching it right.
length ... | {
"domain": "dsp.stackexchange",
"id": 4489,
"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": "continuous-signals, signal-detection, bandpass",
"url": null
} |
java, game, adventure-game, battle-simulation
public void setPotionHeal(int potionHeal) {
this.potionHeal = potionHeal;
}
} Java is idiomatically very object-oriented, and the current code doesn't quite get there - it has too many statics, and doesn't properly encapsulate the classes that it should. P... | {
"domain": "codereview.stackexchange",
"id": 42529,
"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, game, adventure-game, battle-simulation",
"url": null
} |
$$[z^{b+g}]\,f(z) = [z^b]\,\frac{{\left(1-z+z^2\right)}^{g-1}}{(1-z)^{g+1}}$$
and the answer would thus be
$$[z^b]\,\frac{{\left(1-z+z^2\right)}^{g-1}}{(1-z)^{g+1}} \cdot b! \cdot g!$$
• As per the book the answer is 7!⋅3!⋅70=2116800 – Harsh Sharma Apr 11 '18 at 17:42
• Your solution, just as the one of @SinTan1729,... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9848109538667756,
"lm_q1q2_score": 0.8206671936663902,
"lm_q2_score": 0.8333245994514084,
"openwebmath_perplexity": 253.58597666864625,
"openwebmath_score": 0.8042188286781311,
"ta... |
c, file, null, c89
Because of all the above reasons, I would write the code differently:
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char buf[1000];
size_t buflen = 0;
const size_t granularity = 80;
while (true) {
if (granularity > sizeof bu... | {
"domain": "codereview.stackexchange",
"id": 34320,
"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, file, null, c89",
"url": null
} |
-
I think there's only one natural definition of "randomly selected" -- if you can define the total surface area of the manifold, you must have a notion of area, and then "randomly selected" should mean that equal areas have the same chance of being selected. I'm sure it does depend on the metric used -- a cylinder and... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9899864287859482,
"lm_q1q2_score": 0.8434217174967449,
"lm_q2_score": 0.8519528076067262,
"openwebmath_perplexity": 238.28982508670364,
"openwebmath_score": 0.916797399520874,
"tag... |
c, random, console, ascii-art
To:
switch(*argv[1]) {
case '1':
lattice();
break;
case '2':
normal();
break;
default:
printf("1 = lattice effect | 2 = static effect\n");
}
Also, adding line breaks between certain blocks of statement which perform one task may improve... | {
"domain": "codereview.stackexchange",
"id": 607,
"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, random, console, ascii-art",
"url": null
} |
natural-language-processing, agi, computational-linguistics, ai-completeness
Now, consider the scenario where an AI is asked to clean the room. AI is allowed to throw away garbage, and move unnecessary (or unused) stuff into the storage.
This is the list of things that were in the room at the moment: | {
"domain": "ai.stackexchange",
"id": 197,
"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": "natural-language-processing, agi, computational-linguistics, ai-completeness",
"url": n... |
How to use Search Function in GMAT Club | Rules for Posting in QA forum | Writing Mathematical Formulas |Rules for Posting in VA forum | Request Expert's Reply ( VA Forum Only )
Target Test Prep Representative
Status: Founder & CEO
Affiliations: Target Test Prep
Joined: 14 Oct 2015
Posts: 2771
Location: United States ... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 1,
"lm_q1q2_score": 0.8479677545357568,
"lm_q2_score": 0.8479677545357568,
"openwebmath_perplexity": 4830.303572337356,
"openwebmath_score": 0.44298726320266724,
"tags": null,
"url": "h... |
fluid-dynamics, pressure, work, biophysics, bernoulli-equation
Title: Vasodilation decreases blood pressure Okay it should make sense intuitively, but Bernoulli's principle says that a higher cross sectional flow area means less velocity which means higher pressure!
I also read in a related post that Bernoulli's princ... | {
"domain": "physics.stackexchange",
"id": 47010,
"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, work, biophysics, bernoulli-equation",
"url": null
} |
ros
Originally posted by jbinney with karma: 606 on 2014-04-06
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by keygeorge on 2014-04-06:
actually i was trying to extract the elements which are not empty from the array,in the for loop,i need to make sure the element is not empty... | {
"domain": "robotics.stackexchange",
"id": 17544,
"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
} |
semiconductor-physics, computational-physics, electronic-band-theory
If your goal is to produce this as a teaching resource (e.g. to present the dynamics in a classroom demo), I could point to a related example that I have developed to show dynamically how $\ln(\sigma)$ versus $1/T$ graphs change as a function of dopa... | {
"domain": "physics.stackexchange",
"id": 83230,
"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, computational-physics, electronic-band-theory",
"url": nu... |
quantum-mechanics
$$\langle x \rangle = \sqrt{\frac{2\hbar}{m\omega}}\Re\left\{z \exp(-i\omega t)\right\}$$
$$\langle p \rangle = \sqrt{2\hbar m\omega}\Im\left\{z \exp(-i\omega t)\right\}$$
It might look a bit more familiar if we choose a real value of $z$:
$$\langle x \rangle = \sqrt{\frac{2\hbar}{m\omega}} \; z \cos... | {
"domain": "physics.stackexchange",
"id": 10272,
"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",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.