text stringlengths 49 10.4k | source dict |
|---|---|
algorithms, strings
Title: Conditional LCS problem A producer wants to arrange couples of boys and girls for a dance.
There are n boys arranged in a row [A1...An] in some certain order and n girls arranged in a different row [B1...Bn], also in some certain order.
Only a couple in which there is a boy and a girl with e... | {
"domain": "cs.stackexchange",
"id": 2949,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, strings",
"url": null
} |
photons, glass
Now how can a glass window do both at the same time? Be transparent, and be a mirror too?
The solution is elastic scattering. In the case of a glass window acting as a mirror, this is called a specular reflection. Specular reflection (mirror image) is elastic scattering.
Now what is the difference betwe... | {
"domain": "physics.stackexchange",
"id": 56031,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "photons, glass",
"url": null
} |
entanglement, mathematics, teleportation
Before describing the protocol, let us first review the teleportation protocol and introduce the notation used in the paper. In general, Bell states are of the following form
$$|B_{xy}\rangle = \frac{1}{\sqrt 2}(|0,x\rangle + (-1)^y|1, x\oplus 1\rangle),\tag{1}$$
where $x, y \i... | {
"domain": "quantumcomputing.stackexchange",
"id": 966,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "entanglement, mathematics, teleportation",
"url": null
} |
c++, multithreading
I don’t see why, honestly. Conceptually speaking, your worker threads aren’t really independent. They are ALWAYS started all together in lockstep, and ALWAYS finish all together in lockstep (all within a single function: operator()). There’s really only one set of global data you’re sharing—the tas... | {
"domain": "codereview.stackexchange",
"id": 38159,
"lm_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++, multithreading",
"url": null
} |
python, hash-map
"""
from itertools import product
def dict_product(d):
sorted_keys = sorted(d.keys())
for element in product(*list(d[k] for k in sorted_keys)):
yield dict(zip(sorted_keys, element))
if __name__ == "__main__":
import doctest
doctest.testmod(verbose=True) You can use the fact ... | {
"domain": "codereview.stackexchange",
"id": 29021,
"lm_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, hash-map",
"url": null
} |
### Show Tags
23 Dec 2016, 09:03
2x+50/5x+40=4/6, find x, then don't get into decimals, approx 17.something then 2(17)+5(17)= approx 122
Veritas Prep GMAT Instructor
Joined: 16 Oct 2010
Posts: 9558
Location: Pune, India
Re: Two mixtures A and B contain milk and water in the ratios [#permalink]
### Show Tags
09 Nov ... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 1,
"lm_q1q2_score": 0.8221891283434877,
"lm_q2_score": 0.8221891283434877,
"openwebmath_perplexity": 3334.6928289862044,
"openwebmath_score": 0.7750915884971619,
"tags": null,
"url"... |
ros
Originally posted by anton on ROS Answers with karma: 41 on 2013-09-16
Post score: 3
Open
./ar_tools/artoolkit/build/artoolkit/Configure
Remove
-I/usr/src/linux-headers-"$(uname -r)"/include
from CFLAG line 79
Rebuild.
Original artoolkit doesn't have this problem. The source of the problem is the patch file h... | {
"domain": "robotics.stackexchange",
"id": 15538,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros",
"url": null
} |
ros, rviz, markers
The coordinates: x: 1
y: 0.5
z: 0.5
Do you know what kind of a reason can be if rviz doesn't illustrate the markers?
Originally posted by dyupleks on ROS Answers with karma: 200 on 2016-01-26
Post score: 0
Everything looked good to me. So I just tested your code and the markers popped up in rviz ... | {
"domain": "robotics.stackexchange",
"id": 23560,
"lm_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, markers",
"url": null
} |
mathematics, quantum-computer, quantum-information
If you are willing to use the representation of the kets, your state will be:
$\alpha \lvert 0 \rangle + \beta \lvert 1 \rangle = \alpha\begin{bmatrix}1\\0\end{bmatrix} + \beta \begin{bmatrix}0\\1\end{bmatrix} = \begin{bmatrix}\alpha \\ \beta \end{bmatrix}$
And th... | {
"domain": "physics.stackexchange",
"id": 34149,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mathematics, quantum-computer, quantum-information",
"url": null
} |
electromagnetism, electromagnetic-radiation, dipole, antennas
Title: How a dipole should behave in order to produce an electromagnetic field? I am trying to understand what an electric dipole "has to do" to produce electromagnetic waves. I know that an oscillating electric dipole will produce EM waves and by oscillati... | {
"domain": "physics.stackexchange",
"id": 89577,
"lm_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, electromagnetic-radiation, dipole, antennas",
"url": null
} |
c++, heap
Specifying the parameter as Cmp& means that the user can't pass in a reference to a const lvalue, nor can he pass in an rvalue expression.
Specifying the parameter as Cmp&& means that the user can't pass in any kind of lvalue (const or not), which means the user can't pass in any kind of named object.
What y... | {
"domain": "codereview.stackexchange",
"id": 15162,
"lm_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++, heap",
"url": null
} |
and for 1 and -1 , = is an unbounded and hence nonconvergent sequence. If we say that the Fourier series converges to the function, then precisely in what sense does the series converge? And under what conditions? Incidentally, such questions of Fourier series convergence are largely responsible for seeding the subject... | {
"domain": "iaex.pw",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9919380087100574,
"lm_q1q2_score": 0.8329640337712675,
"lm_q2_score": 0.8397339616560072,
"openwebmath_perplexity": 456.0050046906253,
"openwebmath_score": 0.8870593905448914,
"tags": nu... |
fluid-mechanics
Title: How can I make an uncalibrated flow meter for water flows of a few liters per hour Or alternately what is the name of the device I'm looking for?
My first thought is to make a narrow V shaped chamber by gluing 1/4" acrylic together with 2 face plates and a mid plate with a triangular hole remove... | {
"domain": "engineering.stackexchange",
"id": 3756,
"lm_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-mechanics",
"url": null
} |
audio, signal-detection, impulse-response, audio-processing
Title: finding onset of an impulse signal, basics? New to signal processing, but making good progress, I think.
I have a series of (many) impulses I generated, which will be used as impulse responses to model our church's acoustics, in this time of covid-19.
... | {
"domain": "dsp.stackexchange",
"id": 9047,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "audio, signal-detection, impulse-response, audio-processing",
"url": null
} |
java, recursion
Title: Let's Break Down the Party by Breaking the Party Down Recursively This is a rags-to-riches an overdue alternative implementation on my previous question: Let's Break Down the Party
This alternative uses the int internal representation suggested by @janos and recursion to arrive at the same resul... | {
"domain": "codereview.stackexchange",
"id": 13413,
"lm_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, recursion",
"url": null
} |
cooling
Title: A question about cooling (related to a question asked by someone else) It's a simple question, but this post asking why it is that tea cools faster when it is evenly divided into two different cups, made me wonder if it's a similar case for solid food. An answer to the tea question is that the tea cools... | {
"domain": "physics.stackexchange",
"id": 23612,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cooling",
"url": null
} |
javascript
Title: Getting a compass point from 140° This JavaScript converts degrees to a compass point, e.g. convert.toCompass(140) gets 140° -> SE.
I can't help but think: is there a more concise way to do this?
var convert = {
toCompass: function(degrees)
{
if(degrees >= 0 && degrees <= 11.25)
... | {
"domain": "codereview.stackexchange",
"id": 5547,
"lm_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",
"url": null
} |
biochemistry, botany, plant-physiology, photosynthesis, agriculture
The above image is an example of a "potato battery" made without the potato. Identical setup and the energy obtained is identical given everything else the same.
Potato power- er, metal power?
This experiment is supposed to demonstrate the concept of ... | {
"domain": "biology.stackexchange",
"id": 8198,
"lm_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, botany, plant-physiology, photosynthesis, agriculture",
"url": null... |
been going in circles for days, but unable to derive the conclusion without using the hypothetical syllogism itself, or without using IP or CP. Therefore, if we had faster than light travel, we would meet aliens. hypothetical syllogism c. See Table 1 for the other parts of this exercise as well. Math 114 Discrete Mathe... | {
"domain": "hotrodsmc.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9626731126558706,
"lm_q1q2_score": 0.8275751785408014,
"lm_q2_score": 0.8596637505099168,
"openwebmath_perplexity": 1368.7071444141018,
"openwebmath_score": 0.5895121097564697,
"tag... |
Posted 1 month ago
Ok. Now I found it - using Wolfram Alpha. I take the first couple of values (up to 23, because 24 is still missing. results[[1 ;; 21, {1, 3}]][[All, 2]] That list I plug into Wolfram Alpha: WolframAlpha["3, 6, 6, 17, 7, 15, 10, 24, 9, 32, 8, 26, 22, 25, 11, 43, 14, 37, 27, 37, 17"] In the last pod W... | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138164089086,
"lm_q1q2_score": 0.8016210360500867,
"lm_q2_score": 0.8198933293122507,
"openwebmath_perplexity": 1227.4545652521233,
"openwebmath_score": 0.2366325557231903,
"tags": n... |
context-free, compilers, parsers
Title: How to find First in a left recursive grammar?
One of the basic requirements for a grammar to be LL(1) is : For every pai r of productions A -> X | Y, First(X) and First(Y) should be disjointed.
If a grammar is left-recursive, then the set of productions will contain at least o... | {
"domain": "cs.stackexchange",
"id": 13443,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "context-free, compilers, parsers",
"url": null
} |
nanopore, ngs, minion, long-reads, minknow
Title: Can I stop my nanopore sequencing run if there are no more reads being produced? I am sequencing a whole genome on MinION. I have used this flow cell for 6 hours for the phage lambda control. That gave me around 300,000 reads. I started a 48h sequencing run on the same... | {
"domain": "bioinformatics.stackexchange",
"id": 751,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nanopore, ngs, minion, long-reads, minknow",
"url": null
} |
ubuntu-precise, ubuntu
Title: Inbound TCP/IP connection failed... help?
Hi,
Has anyone come across the warning message:
[WARN] [WallTime 1395255145.292842] Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 0 bytes were received. Please check sender for additional d... | {
"domain": "robotics.stackexchange",
"id": 17354,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ubuntu-precise, ubuntu",
"url": null
} |
What's new
Continuous compounding - Miller - Mathematics and Statistics
tkvfrm
New Member
I have a question here. in Miller's book page 17 - problems..Question 2: Nominal monthly rate 5% - calculate equivalent in continuous. The answer given is 4.99%.
Question: When nominal rate is 5% compounding has to be more than... | {
"domain": "bionicturtle.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806529525573,
"lm_q1q2_score": 0.8234268882258866,
"lm_q2_score": 0.8397339736884711,
"openwebmath_perplexity": 1360.7577656924577,
"openwebmath_score": 0.8444152474403381,
"tag... |
glaciology, ice-sheets, glaciation
It should be added the the understanding of the variations of the last ice sheet come from a series of indirect sources such as sea-level changes, paleo-climate records e.g., (ice cores) and interstadial paleoclimate reconstructions. This means that as our understanding of these indi... | {
"domain": "earthscience.stackexchange",
"id": 163,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "glaciology, ice-sheets, glaciation",
"url": null
} |
[…], Your email address will not be published. Its eigenvalues. If A is a square matrix, then its eigenvalues are equal to the eigenvalues of its transpose, since they share the same characteristic polynomial. In many physical problems, a matrix of interest will be real and symmetric, or Hermitian. If anyone could talk... | {
"domain": "citationspros.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9643214450208031,
"lm_q1q2_score": 0.8157604372951458,
"lm_q2_score": 0.8459424411924673,
"openwebmath_perplexity": 463.276269096186,
"openwebmath_score": 0.785873532295227,
"tags"... |
python, tkinter, audio, matplotlib
self.select_sampling_display()
def note_options(self):
for widget in self.type_frame.winfo_children():
widget.destroy()
Label(self.type_frame, text='Frequency').pack(side='left')
self.frequency_entry = Entry(self.type_frame, width=5)
... | {
"domain": "codereview.stackexchange",
"id": 36461,
"lm_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, tkinter, audio, matplotlib",
"url": null
} |
electromagnetic-radiation, atomic-physics, polarization, antennas
Title: What is the radiation pattern for an electric dipole rotating in the horizontal plane? In trying to answer $\sigma$ transition and angular momentum conservation the following question arose.
Suppose we have an electric dipole $\boldsymbol{d}$ whi... | {
"domain": "physics.stackexchange",
"id": 80112,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetic-radiation, atomic-physics, polarization, antennas",
"url": null
... |
• Very interesting. I have not studied formal power series in more than one variable before. Oct 25, 2019 at 6:26
In order to get $$x^2$$ and $$x^{-2}$$ terms, square $$(x+x^{-1}$$). The result is $$x^2+2+x^{-2}$$.
So subtract $$2$$ to get what you want: $$x^2+x^{-2}=(x+x^{-1})^2-2$$.
• Thanks, does this generalize ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.989013056721729,
"lm_q1q2_score": 0.8483438572726647,
"lm_q2_score": 0.8577681068080749,
"openwebmath_perplexity": 265.3603311652665,
"openwebmath_score": 0.9415905475616455,
"tags... |
homework-and-exercises, radiation
Title: light beams of the sun
We receive sunlight on earth surface. What type of light beams are these?
Random/Parallel/Converging/Diverging
I think it should be Diverging as Sun is radiating these beams away. But in one book, answer is given as Random, in another it's Parallel. It ... | {
"domain": "physics.stackexchange",
"id": 11558,
"lm_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, radiation",
"url": null
} |
C. θ = tan−1( y x) To convert back into Cartesian: x = rcosθ. Here, r is its distance from the origin and theta is the angle at which r has to be measured from origin. The command unset polar changes the meaning of the plot back to the default rectangular coordinate system. import matplotlib. If theta equals 0 r=0 so t... | {
"domain": "latinain.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211597623861,
"lm_q1q2_score": 0.8037029375571277,
"lm_q2_score": 0.824461932846258,
"openwebmath_perplexity": 1173.9222973916594,
"openwebmath_score": 0.7792732119560242,
"tags": nu... |
python, algorithm, python-2.x
Title: Algorithm to park cars with minimal moves (2nd version) I'm working on a car move problem. Suppose we have origin parking position for each car, [-1,1,2,3,7,6,4,5] (which means first position is empty, car with ID 1 parked at 2nd position, car with ID 2 parked at 3rd position), we ... | {
"domain": "codereview.stackexchange",
"id": 23254,
"lm_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, algorithm, python-2.x",
"url": null
} |
• How can we derive the formula – Koolman Nov 27 '16 at 17:50
• @Koolman You can look at it as having n spaces that can be either 1 or 0. We will add 3 0s in any of the spots where the spaces before the first 0 is $x_1$ and the space after the first 0 is the next digit, and so forth. So we have n spaces with (p -1) zer... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9669140187510509,
"lm_q1q2_score": 0.8078407385197951,
"lm_q2_score": 0.8354835309589073,
"openwebmath_perplexity": 220.65021862781992,
"openwebmath_score": 0.8497328162193298,
"ta... |
electrostatics, electric-fields, gauss-law, conductors, coulombs-law
Title: Gauss law in an unconventional conducting body Suppose we have a spherical conductor the electric field aroud in $\sigma/e$ around it now we remove a small part dq away the electric field around it will now remain $\sigma/e$ as the $e$ due to ... | {
"domain": "physics.stackexchange",
"id": 40040,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrostatics, electric-fields, gauss-law, conductors, coulombs-law",
"url": nu... |
electromagnetism, electricity, electric-circuits, inertia
Title: Gravity vs Electricity see-saw analogy and speed of light Does electricity exhibit anything like the following steps:
1) A ball is rolled down from left side of a very long teeter-totter or see-saw
2) The see-saw rapidly (immediately) tilts once the ball... | {
"domain": "physics.stackexchange",
"id": 49036,
"lm_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, electricity, electric-circuits, inertia",
"url": null
} |
noise, phase
Title: Phase angle operator, Implemention and drawbacks Let assume we have a signal as:
$\color{blue} {x(t)=M e^{(-\beta.t)} e^{j(\sigma .t+\delta )}}$
By applying phase angle operator we have:
$\color{blue} {Phase[x(t)]=Phase[M e^{-\beta.t} e^{j(\sigma .t+\delta )}]=\sigma.t+\delta}$
I have two questions... | {
"domain": "dsp.stackexchange",
"id": 2124,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "noise, phase",
"url": null
} |
scikit-learn, random-forest, overfitting
Title: How can I tell whether my Random-Forest model is overfitting? I was trying to generate predictions for Iris species using the UCI Machine Learning Iris dataset. I used a RandomForestClassifier with GridSearchCV and calculated the mean absolute error. However, upon genera... | {
"domain": "datascience.stackexchange",
"id": 7210,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "scikit-learn, random-forest, overfitting",
"url": null
} |
c++, quick-sort
Title: Iterator based version of quicksort, allowing user defined pivot-selection-strategy I have implemented a iterator based version of Quicksort, which allows the user to define and pass his own pivot-selection-strategy:
template<typename It>
It Partition(It begin,It end,It pivot)
{
std::swap(*b... | {
"domain": "codereview.stackexchange",
"id": 24737,
"lm_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++, quick-sort",
"url": null
} |
quantum-mechanics, atomic-physics
&&\frac{\frac32}{\frac32\left(\frac32+1\right)} &0&0&0\\
&&0&\frac{\frac12}{\frac32\left(\frac32+1\right)} &0&0\\
&&0&0&\frac{-\frac12}{\frac32\left(\frac32+1\right)} &0 \\
&&0&0&0&\frac{-\frac32}{\frac32\left(\frac32+1\right)}
\end{pmatrix},
$$
where the blank spaces are also zeroes ... | {
"domain": "physics.stackexchange",
"id": 37207,
"lm_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, atomic-physics",
"url": null
} |
Sorry, I used just mass of the sucrose, not sucrose+cart
Here's a simpler answer: Looking at the angle made by the bob, we can deduce that $$\frac ag = \tan 37^\circ \implies a = 7.5 ms^{-2}$$. This is the horizontal acceleration of the entire system. Since the total mass of the system (sucrose ballast + cart + bob) i... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9572777975782055,
"lm_q1q2_score": 0.8136585350384413,
"lm_q2_score": 0.8499711756575749,
"openwebmath_perplexity": 209.6079016405862,
"openwebmath_score": 0.7357116937637329,
"tag... |
machine-learning, neural-network, keras, regression
Title: why multiplication (squares) doesn't work for neural networks? Below code creates the sum of 2 random numbers and then we train for 1000 examples and then we are able to predict which works fine.
Consider the below code for creating random data :
def random_su... | {
"domain": "datascience.stackexchange",
"id": 6010,
"lm_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, regression",
"url": null
} |
assembly, brainfuck
mov dl, BYTE PTR bfcells[eax]
mov BYTE PTR charBuf[0], dl
; follow the character with null to terminate the string
mov BYTE PTR charBuf[1],0
Use the movzx here and shave off an instruction:
movzx edx, BYTE PTR bfcells[eax]
mov WORD PTR charBuf[0], dx ; follow the character with null to terminate t... | {
"domain": "codereview.stackexchange",
"id": 20187,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "assembly, brainfuck",
"url": null
} |
GMAT Question of the Day - Daily to your Mailbox; hard ones only
It is currently 20 Jun 2019, 06:20
### GMAT Club Daily Prep
#### Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.
Customize... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9433475778774728,
"lm_q1q2_score": 0.8091734676529215,
"lm_q2_score": 0.857768108626046,
"openwebmath_perplexity": 2225.2601400478193,
"openwebmath_score": 0.7859314680099487,
"tags": n... |
gazebo
Originally posted by hari1234 on Gazebo Answers with karma: 56 on 2017-01-09
Post score: 0
There are five major versions between gazebo2 and gazebo7 which implies 5 cycles of changes in the API/ABI, I would say that obtaining a failure in compilation of third party code wrote for gazebo2 is somehow expected.
I... | {
"domain": "robotics.stackexchange",
"id": 4036,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo",
"url": null
} |
automata, finite-automata
Title: How to prove the same states are repeating in Synchronizable DFA? I'm trying to prove the if $$ is a $$-state synchronizable DFA, then it has a synchronizing sequence of length at most $^3$. first I have to prove that if a string syncs two states, then its length is at most $k^2$.
The ... | {
"domain": "cs.stackexchange",
"id": 18534,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "automata, finite-automata",
"url": null
} |
c#, game, generics, exception
/// <summary>
/// Adds a new <see cref="AssetCache{TKey,TValue}"/>. An exception is thrown if a cache
/// already exists with the same asset type.
/// </summary>
/// <typeparam name="TAsset">The type of asset cache to add.</typeparam>
/// <returns>The created asset cac... | {
"domain": "codereview.stackexchange",
"id": 32698,
"lm_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#, game, generics, exception",
"url": null
} |
c, strings
printf("%s\n", result);
return 0;
}
Try it online Clarify "word"
OP's "word" seems to be characters separated by a space ' '. A more common definition would use any white-space (tabs, end-of-line, etc.) , not just ' ' as a separator.
Research isspace() in <ctype.h>.
Alternative
It requires twice the ... | {
"domain": "codereview.stackexchange",
"id": 43089,
"lm_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, strings",
"url": null
} |
{p, q, edgelengths + 100 $MachineEpsilon} ], 2 ]; Graph[Range[Length[pts]], UndirectedEdge @@@ edges, VertexCoordinates -> pts] ] Usage example: SeedRandom[20181008]; pts = RandomReal[{-1, 1}, {1000, 2}] RelativeNeighborhoodGraph[pts] # Implementation of $$\beta$$-Skeleton for $$\beta \geq 1$$ The $$2$$-Skeleton is pre... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307708274402,
"lm_q1q2_score": 0.8106838104203209,
"lm_q2_score": 0.8333245973817158,
"openwebmath_perplexity": 3877.999261428462,
"openwebmath_score": 0.5166442394256592,
"tag... |
html, html5
Title: HTML 5 Blog Layout / Markup I'm creating a WordPress theme in HTML 5 which is relatively new to me. I've read up on it and I read things that seem to contradict one another or differing opinions. One of the big things is where and when to use the <header> tag. I've heard 3 different things:
Anywher... | {
"domain": "codereview.stackexchange",
"id": 9496,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "html, html5",
"url": null
} |
programming, qiskit, simulation, qaoa
###### Adds diagonal values ######
for item in dictionary.items():
position = item[0]
value = item[1]
qubo[position] = value
return qubo
################## Graph Generation, QUBO & QuadracticProgram Formulation #######
erdos_14_7_456 = gp.weigh... | {
"domain": "quantumcomputing.stackexchange",
"id": 2585,
"lm_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, qiskit, simulation, qaoa",
"url": null
} |
rosjava
Title: Building rosjava fails at task ':apache_xmlrpc_common:compileJava'
Hi,
I'm currently setting up an Ubuntu 11.10 with ROS Electric to use rosjava. The build tools are ant 1.8, maven 2.2 and rosws.
Installing rosjava as described link:here unfortunately fails at building the task ':apache_xmlrpc_common:c... | {
"domain": "robotics.stackexchange",
"id": 8970,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rosjava",
"url": null
} |
algorithm, c, parsing, calculator, stack
/* Pop char from stack */
char pop_char(struct node_char **head)
{
if (*head == NULL) {
fprintf(stderr, "Error in %s: stack underflow\n", __func__);
exit(EXIT_FAILURE);
}
struct node_char *tmp = *head;
char data = tmp->data;
*head = tmp->next... | {
"domain": "codereview.stackexchange",
"id": 40952,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithm, c, parsing, calculator, stack",
"url": null
} |
molecular-biology, bioinformatics, dna-sequencing
Conflict of Interest statement. All authors are employees of Pacific Biosciences and own stock in the company.
In practice, PacBio competes with second generation platforms. It is in their interest to say their technology is on "another level" compared to what's avail... | {
"domain": "biology.stackexchange",
"id": 11795,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, bioinformatics, dna-sequencing",
"url": null
} |
array, unit-testing, vba
'returns true if specified array is initialized.
Public Function IsArrayInitialized(arr) As Boolean
Dim memVal As Long
CopyMemory memVal, ByVal VarPtr(arr) + 8, ByVal 4 'get pointer to array
CopyMemory memVal, ByVal memVal, ByVal 4 'see if it points to an address...
IsArrayInitializ... | {
"domain": "codereview.stackexchange",
"id": 18041,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "array, unit-testing, vba",
"url": null
} |
planet, telescope, mars, jupiter, saturn
Title: Selecting a Telescope for Viewing Planets I hope to observe planets like Jupiter and Saturn, and moons. I am a novice when it comes to telescopes and I know images in magazines are not taken with at least 12-inch telescope in a middle of nowhere. Is it possible to view S... | {
"domain": "astronomy.stackexchange",
"id": 519,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "planet, telescope, mars, jupiter, saturn",
"url": null
} |
php, api, rest
$this->repository->storeBase($workout);
return ['success'=>'Base'];
}
/**
* Store Names
*
* @param Workout $workout
* @return array
*/
private function storeNames(Workout $workout):array
{
foreach($workout->getNames()->toArray() as $name){
... | {
"domain": "codereview.stackexchange",
"id": 34178,
"lm_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, api, rest",
"url": null
} |
homework-and-exercises, general-relativity, black-holes, metric-tensor, event-horizon
Edit: The second one not sure how we get the length?
I am not understanding how the form of the metrics imply the bold statements.
Any insight would be appreciated. The Schwarzschild radial coordinate, $r$, is defined such that, give... | {
"domain": "physics.stackexchange",
"id": 66605,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, general-relativity, black-holes, metric-tensor, event-hori... |
pcl, pcl-1.7, ros-indigo
Title: Problem using PCL 1.8 with ROS Indigo
Hi all,
I am trying to compile a package based on the lccp_segmentation algorithm available in the pcl-trunk. The compilation and installation of the pcl-trunk were fine since I have the same version of the package in a simple .cpp file (not in ROS... | {
"domain": "robotics.stackexchange",
"id": 23739,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pcl, pcl-1.7, ros-indigo",
"url": null
} |
newtonian-mechanics, energy, friction, work, displacement
Title: Displacement using work energy principle How do you use the work energy principle to find the displacement of an object. With of course the mass, speed and friction forces given? In general you cannot use the work-energy principle to find the displacemen... | {
"domain": "physics.stackexchange",
"id": 52159,
"lm_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, friction, work, displacement",
"url": null
} |
These results follow from the computational formulas for skewness and kurtosis and the general moment formula $$\E\left(X^n\right) = n! Examples are given in Exercises (30) and (31) below. The skewness of \(X$$ is the third moment of the standard score of $$X$$: $\skw(X) = \E\left[\left(\frac{X - \mu}{\sigma}\right)^3\... | {
"domain": "oldfartsbikegang.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808724687407,
"lm_q1q2_score": 0.8211028244800265,
"lm_q2_score": 0.8376199592797929,
"openwebmath_perplexity": 647.6766546311429,
"openwebmath_score": 0.8420978784561157,... |
quantum-field-theory
$\int d^2 p \hspace{1mm} \log \frac{p^2}{\Lambda^2} \hspace{1mm} \phi (p) \phi(-p) \sim \Lambda^4 \int d^2 x d^2 y \frac{1}{x^2+y^2} \phi (x) \phi(y)$
In general really all we ever want to see in our effective action in position space is derivatives with a delta function and the only thing th... | {
"domain": "physics.stackexchange",
"id": 3828,
"lm_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",
"url": null
} |
• In contextual bandit example, $x$ is a state-action pair, $w_{\theta}(x) = \frac{p_{\theta}(x)}{q(x)} = \frac{ p_{\theta}(s,a) }{ q(s,a) } = \frac{p_{\theta}(a|s) p(s)}{q(a|s) p(s)} = \frac{p_{\theta}(a|s) }{ q(a|s) }$.
• In a Markov decision process, $x$ is a sequence of state-action pairs, $w_{\theta}(x) = \frac{p... | {
"domain": "github.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290897113961,
"lm_q1q2_score": 0.8113623688451618,
"lm_q2_score": 0.8354835391516133,
"openwebmath_perplexity": 1103.170171736285,
"openwebmath_score": 0.6590133905410767,
"tags": null... |
python, python-2.x, django
if slider_value3 != '':
slider_DV_values.pop(2)
slider_DV_values.insert(2, slider_value3)
logger.debug('\n\nThis is the available list of PATH_ONE_IMAGES in 13: %s', PATH_ONE_IMAGES)
fourth_image = rando... | {
"domain": "codereview.stackexchange",
"id": 14209,
"lm_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-2.x, django",
"url": null
} |
performance, rust
As mentioned, num_ops_left is redundant, and can be eliminated.
Similarly, max_ops is redundant.
Instead, you should pass multipliers: &[i32] and trim multipliers at each step so that you only pass the slice of multipliers left to use.
Avoid double-lookup, when possible.
You are correct that unfortu... | {
"domain": "codereview.stackexchange",
"id": 45060,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, rust",
"url": null
} |
c++, programming-challenge
Title: MIT Puzzle: The Best Time to Party This problem is from MIT Course and I have implemented it in C++. Please review and suggest improvements.
There is a party to celebrate celebrities that you get to attend
because you won a ticket at your office lottery. Because of the high
deman... | {
"domain": "codereview.stackexchange",
"id": 36085,
"lm_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++, programming-challenge",
"url": null
} |
thermodynamics, quantum-chemistry, electrons, electronic-configuration
Elements approaching the noble gas group in the Periodic table ( $\ce{N, O, F}$ ) get nearly fully filled respective $\mathrm{p}$ orbitals. The effectively perceived nucleus charge grows for valence electrons. It gets progressively more difficult ... | {
"domain": "chemistry.stackexchange",
"id": 14632,
"lm_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, quantum-chemistry, electrons, electronic-configuration",
"url"... |
python, performance, python-3.x, numpy, image
def Hue_to_color(f1: np.ndarray, f2: np.ndarray, hue: np.ndarray) -> np.ndarray:
hue %= 1
color = np.zeros_like(hue)
gmask = mask = hue < 2 / 3
color[mask] = (f1 + (delta := f2 - f1) * (2 / 3 - hue) * 6)[mask]
gmask |= (mask := hue < 0.5)
color[mask... | {
"domain": "codereview.stackexchange",
"id": 44972,
"lm_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, performance, python-3.x, numpy, image",
"url": null
} |
light, neutron-star, degenerate-matter, escape-velocity
Title: What escape velocity would quark stars have? Quark stars are hypothetical compact stars that are denser than neutron stars and maybe the last stage of upholding matter before stars that collapse into a singularity. Neutron stars have escape velocities up t... | {
"domain": "astronomy.stackexchange",
"id": 5544,
"lm_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, neutron-star, degenerate-matter, escape-velocity",
"url": null
} |
The input source data must be a raster layer. >, Description < Below is a distance formula calculator, which will calculate the straight line or Euclidean distance between two points.It works for (easier to reason through) 1, 2, or 3 dimensions, plus 4, 5, and 6 dimensions as well. The Earth is spherical. Pseudo code o... | {
"domain": "abbaselama.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9591542829224748,
"lm_q1q2_score": 0.8054344373788059,
"lm_q2_score": 0.8397339736884711,
"openwebmath_perplexity": 792.8186346921777,
"openwebmath_score": 0.6504970788955688,
"tags":... |
thermodynamics, energy, everyday-life, sun, thermal-radiation
Title: How badly could someone be injured by concentrated sunlight? Recently-ish, I stumbled across an interesting short story (by way of Science Fiction & Fantasy Stack Exchange) where a soccer referee is apparently incinerated by concentrated sunlight.
W... | {
"domain": "physics.stackexchange",
"id": 14547,
"lm_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, energy, everyday-life, sun, thermal-radiation",
"url": null
} |
python, python-3.x
Title: Get methods in module, Python Goal: extract methods/functions defined in module. This excludes:
Imports
Lambda methods
Magic methods
Builtin methods
Class methods
Classes
Non-original definitions (i.e. function assignments, alt_name = orig_fn)
My approach + test below. Any room for improvem... | {
"domain": "codereview.stackexchange",
"id": 38212,
"lm_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",
"url": null
} |
statistical-mechanics, partition-function
A microstate of the whole system $s$ is then specified by the sequence of occupation numbers $n_1, n_2, ...$, and
$$N_s=\sum_i n_i, \quad E_s = \sum_i \epsilon_i n_i $$
The canonical partition function is
$$Z=\sum_l e^{-\beta E_l} = \underbrace{\sum_{n_1}\sum_{n_2}...\sum_{n_i... | {
"domain": "physics.stackexchange",
"id": 51358,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "statistical-mechanics, partition-function",
"url": null
} |
gravity
Now let's look at the case where the ball is exactly at rest after it reaches the flat top. The flat top is at a height of $h$. The ball has velocity $v$. Taking our point of zero potential energy at the bottom of slope 1, we can simply solve this problem by use of energy conservation: Initially the ball will ... | {
"domain": "physics.stackexchange",
"id": 16107,
"lm_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",
"url": null
} |
algorithms, image-processing
Title: How to unscramble an RGB image 1024x1024 I have a colored image 1024x1024 whose rows and columns were randomly shifted, how would I unscramble it without having any information about the original image? Adding some type of edge detection would likely help as well, otherwise all the ... | {
"domain": "cs.stackexchange",
"id": 21680,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, image-processing",
"url": null
} |
hector-slam
Title: Is it possible to use MicroStrain IMU 3DM GX4-25 in Hector SLAM
I tried to use IMU 3dm Gx4 25 in Hector SLAM.
The package of IMU 3dm Gx4 comes from the website:
https://github.com/KumarRobotics/imu_3dm_gx4
However, I got a problem when I used Hector SLAM.
After using roswtf, it showed that there wa... | {
"domain": "robotics.stackexchange",
"id": 22926,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "hector-slam",
"url": null
} |
gazebo-10
14:50:24: GL_VERSION = 2.1 Mesa 19.0.2
14:50:24: GL_VENDOR = nouveau
14:50:24: GL_RENDERER = NV42
14:50:24: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array G... | {
"domain": "robotics.stackexchange",
"id": 4465,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo-10",
"url": null
} |
java, unit-testing
/**
* Class for testing a getter and setter.
*/
private static final class A{
/**
* Variable named c.
*/
private String c;
/**
* Get c.
* @return c.
*/
public String getC() {
return c;
}
/**
* Set c.
* @param c the value to be se... | {
"domain": "codereview.stackexchange",
"id": 34091,
"lm_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, unit-testing",
"url": null
} |
python, performance, ai, chess
"x", "x", "r-1", "n-1", "b-1", "q-1", "k-1", "b-1", "n-1", "r-1", "x", "x",
"x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "x",
"x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "x"]
return board | {
"domain": "codereview.stackexchange",
"id": 33362,
"lm_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, performance, ai, chess",
"url": null
} |
c++, unit-testing, template, boost, overloading
BOOST_AUTO_TEST_CASE_TEMPLATE(image_elementwise_divides_test_large_dimensions, T, test_types)
{
std::size_t size_x = 18446744073709551615; // Test images with very large dimensions (std::numeric_limits<std::size_t>::max()).
std::size_t size_y = 18446744073... | {
"domain": "codereview.stackexchange",
"id": 41999,
"lm_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++, unit-testing, template, boost, overloading",
"url": null
} |
image-processing, fft, matlab, 2d
Title: 2D FFT of Vector I have a bunch of 8x8 images which have been vectorized and formed into a 64xN matrix, X. I'd like to take the 2D-FFT of each of these images without reshaping each column of X into an 8x8 image and using fft2.
Any suggestions? I've tried playing around with ... | {
"domain": "dsp.stackexchange",
"id": 890,
"lm_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-processing, fft, matlab, 2d",
"url": null
} |
slam, navigation
[rosmake-0] Starting >>> opencv_tests [ make ]
[rosmake-0] Finished <<< opencv_tests ROS_NOBUILD in package opencv_tests
[rosmake-2] Finished <<< bondcpp ROS_NOBUILD in package bondcpp
[rosmake-3] Finished <<< orocos_kdl ROS_NOBUILD in package orocos_kdl
[rosmake-3] Starting >>> python_orocos_kdl [ ma... | {
"domain": "robotics.stackexchange",
"id": 12121,
"lm_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",
"url": null
} |
electromagnetism, waves, electromagnetic-radiation, speed-of-light, inertia
First of all, lots of people explained the answer to me using an LC (inductor-capacitor) circuit explanation (including a previous answer here), but I think it simply doesn't apply. LC circuits create oscillations that are often described with... | {
"domain": "physics.stackexchange",
"id": 52299,
"lm_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, waves, electromagnetic-radiation, speed-of-light, inertia",
"u... |
opencv, color
Title: Is a change in colorspace needed when comparing colors only evaluated by the computer? I am confused about the need to change color space for color comparison. I have read about delta E, the Lab format, and I do understand that comparisons in the RGB color space will not seem appropriate to the hu... | {
"domain": "dsp.stackexchange",
"id": 2074,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "opencv, color",
"url": null
} |
## klimenkov Group Title $\lim_{n\rightarrow\infty}\frac{\sqrt[n]{n!}}{n}$ 2 years ago 2 years ago
1. myko
maybe like this: $\sqrt[n]{n!}=\sqrt[n]{n(n-1)(n-2)\cdots1} =\sqrt[n]{n}\sqrt[n]{n-1}\cdots \sqrt[n]{1}=1$ so limit is equal to 0
2. myko
@klimenkov
3. klimenkov
Are you sure that $\lim_{n\rightarrow\infty}\... | {
"domain": "openstudy.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534365728416,
"lm_q1q2_score": 0.861202618020932,
"lm_q2_score": 0.8774767970940975,
"openwebmath_perplexity": 6110.20970250091,
"openwebmath_score": 0.8027116060256958,
"tags": nu... |
harmonic-oscillator
Title: How to calculate viscous damping coefficient? The damping of a spring is calculated with:
$$[\zeta] = \frac{[c]}{\sqrt{[m][k]}}$$
Where c is the 'viscous damping coefficient' of the spring, according to Wikipedia. m is the mass, k is the spring constant, and zeta is the damping ratio.
How is... | {
"domain": "physics.stackexchange",
"id": 39229,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "harmonic-oscillator",
"url": null
} |
c, assembly, virtual-machine
if (!IsValidRegisterIndex(source_register_index) ||
!IsValidRegisterIndex(target_register_index))
{
vm->cpu.status.INVALID_REGISTER_INDEX = 1;
return true;
}
vm->cpu.registers[target_register_index]
+= vm->cpu.registers[source_register_index];
... | {
"domain": "codereview.stackexchange",
"id": 18947,
"lm_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, assembly, virtual-machine",
"url": null
} |
filter-design, digital-filters, optimization, fixed-point
Title: Optimization of Filter Coefficients to Given Word Length It seems to me that this is a difficult mathematical problem where research is still carried on:
Is there an efficient way to find fixed-point coefficients whose zeros are closest to those calculat... | {
"domain": "dsp.stackexchange",
"id": 4803,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "filter-design, digital-filters, optimization, fixed-point",
"url": null
} |
computability, lambda-calculus, type-theory
A lambda-term can be typed without using the $\top I$ rule iff it is strongly normalizing.
A lambda-term admits a type not containing $\top$ iff it has a normal form.
See Characterization of lambda-terms that have union types for an insight as to why intersection types have... | {
"domain": "cs.stackexchange",
"id": 324,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computability, lambda-calculus, type-theory",
"url": null
} |
c#, interview-questions, graph, pathfinding
// Too many moves
throw new Exception("Unsolvable puzzle.");
}
private bool TrySolution(int[] indexMoves, out int[] moveHistory)
{
int[] transformedPuzzle = _input.ToArray();
List<int> moveHistoryList = new List<int>(indexMoves.Length);
... | {
"domain": "codereview.stackexchange",
"id": 33562,
"lm_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#, interview-questions, graph, pathfinding",
"url": null
} |
javascript, beginner
/**
* Build the record list containing elements belonging to keys in `relatedKeys`.
*/
function buildRecordList(relatedKeys) {
// Check if a list was build previously …
var recordList = document.getElementById(listName);
if (recordList) {
// … and ... | {
"domain": "codereview.stackexchange",
"id": 16988,
"lm_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",
"url": null
} |
0 & 0 & -d_{1} - d_{2} + r_{1} + r_{2} \end{array}\right]$$ This implies that your system is solvable if and only if \begin{align*} c_1+c_2-d_1-d_2 &= 0 \\ -d_1-d_2+r_1+r_2 &= 0 \end{align*} If these conditions are satisfied, then your system is solved by \begin{align*} w &=-\frac{1}{2} \, c_{1} + d_{1} + \frac{1}{2} \... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9867771763033943,
"lm_q1q2_score": 0.8135602031673427,
"lm_q2_score": 0.8244619177503205,
"openwebmath_perplexity": 121.58533599169971,
"openwebmath_score": 1.0000100135803223,
"ta... |
java, algorithm, strings, combinatorics
public static void main(String[] args) {
for (String str : permutation("abc")) {
System.out.println(str);
}
System.out.println("------------");
for (String str : permutation("aabb")) {
System.out.println(str);
}
... | {
"domain": "codereview.stackexchange",
"id": 16009,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, algorithm, strings, combinatorics",
"url": null
} |
thermodynamics, spacetime, time, arrow-of-time
Title: What makes now special? I recently came across the paper Relation between the psychological and thermodynamic arrows of time (arXiv).
Their argument makes sense to me, however their concept doesn't seem to address what 'now' is.
If each person exists in an unchangi... | {
"domain": "physics.stackexchange",
"id": 14895,
"lm_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, spacetime, time, arrow-of-time",
"url": null
} |
c, strings, pointers, vigenere-cipher
That's not very helpful. What is the correct number of arguments and what do they signify? Generally, an error message should say what is wrong, but also, if possible, give some hint to the user about how to fix it.
Use const where practical
The MAXNUM variable is apparently the... | {
"domain": "codereview.stackexchange",
"id": 29501,
"lm_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, strings, pointers, vigenere-cipher",
"url": null
} |
ros, camera1394, image-proc, camera-drivers, pointgrey
Originally posted by StFS with karma: 182 on 2012-06-21
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by StFS on 2012-06-21:
And to be really clear, it also matters which USB port you use for the cameras. There is no good w... | {
"domain": "robotics.stackexchange",
"id": 9885,
"lm_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, camera1394, image-proc, camera-drivers, pointgrey",
"url": null
} |
wavelet, time-frequency, scattering
How the equations in Mallat's work are a "standard Littlewood-Paley condition"? I've seen Littlewood-Paley decompositions but that seems to tackle slightly different territory.
Following the comments, there's "approximate orthogonality" in that wavelets sufficiently separated in fr... | {
"domain": "dsp.stackexchange",
"id": 11810,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "wavelet, time-frequency, scattering",
"url": null
} |
neural-network, distribution, gaussian, openai-gym, actor-critic
Title: A2C Continuous for Pendulum-v0 working implementation, negation for loss and entropy calculation very good implementation of A2C continuous for Pendulum-v0
Code has snippet to stop execution when mean of last 10 or 20 is higher than -20 but the re... | {
"domain": "datascience.stackexchange",
"id": 5445,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "neural-network, distribution, gaussian, openai-gym, actor-critic",
"url": nul... |
homework-and-exercises, electrostatics, electric-circuits, capacitance
Title: What's the right way to calculate charge on a capacitor? How much charge is on each plate of a 4.00-F capacitor
when it is connected to a 12.0-V battery?
I said 2.4 x 10^-5 C because there are two plates of a parallel plate capacitor. But th... | {
"domain": "physics.stackexchange",
"id": 7565,
"lm_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, electrostatics, electric-circuits, capacitance",
"url": n... |
The formula for finding term of a geometric progression is , where is the first term and is the common ratio. Any convergent sequence is bounded (both above and below). For instance, consider the sample sequence of the counting. Special rule to determine all other cases An example of recursion is Fibonacci Sequence. Th... | {
"domain": "macchiaelettrodomestici.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9905874087451302,
"lm_q1q2_score": 0.8276194740974071,
"lm_q2_score": 0.8354835391516132,
"openwebmath_perplexity": 354.85524078365097,
"openwebmath_score": 0.8631737828... |
java, calculator, swing
At this time you can notice that most of your logic is into this ButtonsPanel. This is not a good thing because testing it is not easy and this class mixes presentation and logic.
The de-facto pattern for Swing is MVC, you have already noticed that all existing components are using listeners. A... | {
"domain": "codereview.stackexchange",
"id": 37017,
"lm_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, calculator, swing",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.