text stringlengths 1 1.11k | source dict |
|---|---|
c++, beginner, reinventing-the-wheel, c++17
template<typename T>
void Vector<T>::pop_back()
{
--end_position;
std::allocator_traits<Alloc>::destroy(allocator, end_position);
}
template<typename T>
typename Vector<T>::iterator Vector<T>::erase(iterator position)
{
std::m... | {
"domain": "codereview.stackexchange",
"id": 36313,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, beginner, reinventing-the-wheel, c++17",
"url": null
} |
step 1. NOTE: this theorem is a tool to approximate a root of an unsolvable equation or to show that it exists. Likewise, the Bolzano-Weierstrass Theorem on the binary space is the jump of the lesser limited principle of omniscience LLPO and the Bolzano-Weierstrass Theorem on natural numbers can be characterized as the... | {
"domain": "wintermarktzollverein.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795079712153,
"lm_q1q2_score": 0.8159475913181288,
"lm_q2_score": 0.8267117855317473,
"openwebmath_perplexity": 741.2188326969012,
"openwebmath_score": 0.8232946991920471,... |
newtonian-mechanics, fluid-dynamics, bubbles
Title: Why does foam in a rotating liquid accumulate near the centre? I first noticed this while having a coffee. When the coffee was rotating in the cup, most of its foam accumulated near the centre.
I recreated the effect with some soap and water. The accumulated foam for... | {
"domain": "physics.stackexchange",
"id": 62598,
"lm_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, fluid-dynamics, bubbles",
"url": null
} |
thermodynamics, work, phase-transition
There is no change in temperature (it stays at 100 C), does that mean
$Q=0$?
How can I calculate the work done by the system , can we use the ideal gas law? (That would mean $dW=PdV$, right?)
Thanks a lot and I hope this question is allowed. Increasing the temperature of a syst... | {
"domain": "physics.stackexchange",
"id": 44058,
"lm_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, work, phase-transition",
"url": null
} |
electromagnetism, thermodynamics, entropy
Imagine a child's nursery, there are lots of toys and clothes in the room. And note that we can arrange them in nearly infinite ways. Imagine a computer simulation randomly replacing the stuff in the room. By random I truely mean random, the rugs can be on the walls, the crib ... | {
"domain": "physics.stackexchange",
"id": 74909,
"lm_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, thermodynamics, entropy",
"url": null
} |
software
Then I started minimizing and looking at the energies. I pulled various atoms around to try to minimize steric clashes and flip rings from chair to boat, etc.
For the figures that follow, I've removed the hydrogens for clarity, but they exist as far as the energies and minimization. I just removed them to sav... | {
"domain": "chemistry.stackexchange",
"id": 1995,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "software",
"url": null
} |
java, beginner
Title: Tiling an nxn grid with L-shaped Trominoes This is some code I wrote in order to see if it was possible to tile a 9x9 grid using trominoes that are shaped like this:
_
| |_
|___|
(They can be rotated.)
One issue I had while writing this is that I had to fix too many small errors (like having a ... | {
"domain": "codereview.stackexchange",
"id": 22982,
"lm_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",
"url": null
} |
the later case, the search terminates in failure with n comparisons. If we assume we needed to search the array n times the total worst case run time of the linear searches would be O (n^2)). Why so important? You do it all the time in real life!. Amortized time per operation using a bounded priority queue[1] logarithm... | {
"domain": "marathon42k.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534327754854,
"lm_q1q2_score": 0.8612026083995186,
"lm_q2_score": 0.8774767906859264,
"openwebmath_perplexity": 614.0522630942693,
"openwebmath_score": 0.5858543515205383,
"tags":... |
However, this requires $\displaystyle{ n^2 }$ memory, which is inefficient for large arrays.
Given two rankings $\displaystyle{ \tau_1,\tau_2 }$, it is possible to rename the items such that $\displaystyle{ \tau_1 = (1,2,3,...) }$. Then, the problem of computing the Kendall tau distance reduces to computing the number... | {
"domain": "handwiki.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587247081929,
"lm_q1q2_score": 0.858191225134461,
"lm_q2_score": 0.8688267728417087,
"openwebmath_perplexity": 632.9292160980654,
"openwebmath_score": 0.772384524345398,
"tags": nul... |
statics, friction
Title: Dimension of the unidirectional mechanical clutch This is a problem from the book Engineering Mechanics Statics vol-1 by Meriam Kraige.
The elements of a unidirectional mechanical clutch are shown in the figure.A torque $M$ applied to the outer ring is transmitted to the output shaft through f... | {
"domain": "engineering.stackexchange",
"id": 1720,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "statics, friction",
"url": null
} |
papers, autoencoders, unsupervised-learning
Optimization: All parameters in our model were
trained jointly with the objective being the sum of the
objectives of the three layers.
Does this mean that all three autoencoder layers were trained simultaneously, or that the first three sub-layers (first autoencoder sub-lay... | {
"domain": "ai.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": "papers, autoencoders, unsupervised-learning",
"url": null
} |
$$= x \cdot \cos^{-1}(\sin x) \pm \int x \cdot \frac{\cos x}{\cos x} dx + C$$ $$= x \cdot \cos^{-1}(\sin x) \pm \frac{x^2}{2} + C$$
Now do it for the definite integral.
1)
$(u^2)^{\prime}=2\times u\times u^{\prime}$
therefore $\dfrac{1}{2}u^2$ is an antiderivative of $u\times u^{\prime}$
2) derivative of $\text{co... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692284751635,
"lm_q1q2_score": 0.851994837389301,
"lm_q2_score": 0.8723473746782093,
"openwebmath_perplexity": 324.47443765424987,
"openwebmath_score": 0.9529788494110107,
"tag... |
python, catkin-make, rostest, ros-hydro
same as with add_rostest(scripts/TestMetricStarter.py)
catkin_add_nosetests(scripts/TestMetricStarter.py)
same as with add_rostest(test/testAll.test)
and now?
so there is still the question how i have to add the test in the CMakeLists.txt... for me its unclear how to do this ... | {
"domain": "robotics.stackexchange",
"id": 19794,
"lm_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, catkin-make, rostest, ros-hydro",
"url": null
} |
c++, object-oriented, simulation
newLocation.xCoordinate = GenerateRandomStartingLocations(0, 19);
newLocation.yCoordinate = GenerateRandomStartingLocations(0, 19);
//Incase something already placed
while (this->environmentBoard[newLocation.xCoordinate][newLocation.yCoordinate] != nullptr)
... | {
"domain": "codereview.stackexchange",
"id": 25672,
"lm_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++, object-oriented, simulation",
"url": null
} |
java, beginner, android, converting, unit-conversion
SystemsMeasures(double lengthFactor,double massFactor) {
this.lengthUnit = lengthUnit;
this.lengthFactor = lengthFactor;
}
}
Then you can just write for example
/**
* Converts mass from some units to some units
*
* @param input mass in some u... | {
"domain": "codereview.stackexchange",
"id": 37884,
"lm_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, android, converting, unit-conversion",
"url": null
} |
So, for one, two and three unknowns, we have the start of a sequence: $$1, 3, 8, ...$$
I am interested in how this sequence continues. I have searched in vain on the OEIS. Alas, there are many sequences that have $$1, 3, 8,...$$ and I'm not sure which, if any, are the right one.
This one: https://oeis.org/A001792 loo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9886682458008671,
"lm_q1q2_score": 0.8383587904733012,
"lm_q2_score": 0.8479677526147223,
"openwebmath_perplexity": 268.84452766486413,
"openwebmath_score": 0.7514204382896423,
"ta... |
disk
$$\rho'(r)=Cf'(r)e^{f(r)}=0$$
and solving for $r$. However, this appears to be impossible in the current case because $\rho(r)_{peak}$ is already in the equation, at $r_{peak}$.
How is $r_{peak}$ determined in a given scenario? Is it determined experimentally? If your $r_{peak}$ is not known a priori then you hav... | {
"domain": "astronomy.stackexchange",
"id": 616,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "disk",
"url": null
} |
lstm, rnn
Title: Outputs of an LSTM Cell from each cell of lstm, what are the output's and what does they signify? i understand that there will be three outputs. A long term memory, short term memory and a output. But, i am little confused from colah blog which can be found here. Here he shows that there will be three... | {
"domain": "datascience.stackexchange",
"id": 4104,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lstm, rnn",
"url": null
} |
the-moon, solar-flare
Title: Would an ultra bright moon indicate that the world is ending? There is a sci-fi television episode that shows a man looking out the window into the night sky. There up in the sky is the moon, and it's extraordinarily bright.
The man spends the rest of the night trying to do all the things ... | {
"domain": "astronomy.stackexchange",
"id": 452,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "the-moon, solar-flare",
"url": null
} |
beginner, functional-programming, json, f#, rest
request.AddParameter("application/json", script, ParameterType.RequestBody) |> ignore
let response = client.Execute(request)
if response.StatusCode = HttpStatusCode.Conflict || response.StatusCode = HttpStatusCode.Created then response.StatusCode else ra... | {
"domain": "codereview.stackexchange",
"id": 12934,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, functional-programming, json, f#, rest",
"url": null
} |
eigenvalue, electronic-band-theory, topological-insulators, optical-lattices, floquet-theory
Title: Floquet bandstructure calculation In this paper "Photonic Floquet Topological Insulators" the authors calculate the bandstructure of a time-periodic Hamiltonian. They create a time-dependent tight-binding Hamiltonian vi... | {
"domain": "physics.stackexchange",
"id": 67033,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "eigenvalue, electronic-band-theory, topological-insulators, optical-lattices, floq... |
python, python-2.x, api, tkinter, cryptocurrency
Finally, I have not yet actually tested the execute_sells() and execute_buys() functions. They mirror the dryrun() function so they should work, but I am unsure how to go about testing them properly without actually just going for it and trading assets on the exchange. ... | {
"domain": "codereview.stackexchange",
"id": 30849,
"lm_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, api, tkinter, cryptocurrency",
"url": null
} |
What is the formula for calculating the percent growth rate? For example, in economics, it is used to provide a better picture of the changes in economic activity (e.g. Remember to express your answer as a percentage. Solution Below is given data for the calculation of nominal GDP. The Bureau of Economic Analysis annua... | {
"domain": "bostol.pl",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9759464485047916,
"lm_q1q2_score": 0.8001719850425609,
"lm_q2_score": 0.8198933315126791,
"openwebmath_perplexity": 1463.6865649640833,
"openwebmath_score": 0.6827832460403442,
"tags": nul... |
python, algorithm, programming-challenge, python-2.x, time-limit-exceeded
Title: Counting pairs of integers which have a predefined difference I'm doing this HackerRank problem:
Given \$N\$ integers, count the number of pairs of integers whose difference is \$K\$.
So far, I've ended up with this code:
def countPairs... | {
"domain": "codereview.stackexchange",
"id": 20075,
"lm_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, programming-challenge, python-2.x, time-limit-exceeded",
"... |
c
if there's a more efficient way of writing my code
All four of the variables are related, it might be better to use a struct to contain them. That way if the program needed to be modified to loop through data it would be easier to build an array of all the values. Using a struct would also decrease the number of pa... | {
"domain": "codereview.stackexchange",
"id": 34248,
"lm_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",
"url": null
} |
26. W' = I3 2
2 1
W, W(t) =
e
—4e
e2t
e2t
4\
—11 w,
( et e—2t e3^
W(t) = I — 4et —e—2t 2e3t
\ _et -e—2t e3t)
7.3 Systems of Linear Algebraic Equations; Linear Independence, Eigenvalues, Eigenvectors
®In this section we review some results from linear algebra that are important for the solution of systems of linear diff... | {
"domain": "booksbw.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9873750496039276,
"lm_q1q2_score": 0.8118090399858002,
"lm_q2_score": 0.8221891370573386,
"openwebmath_perplexity": 673.1852153480672,
"openwebmath_score": 0.8147714138031006,
"tags": nu... |
molecular-biology, cell-biology, cell-signaling
I am not sure, in the context of receptor tyrosine kinases, what the terms tonic activation/inhibition/brake mean. I have searched online, but haven't been able to find a precise definition.
Any insights are appreciated. Tonic in this context is the opposite of "phasic".... | {
"domain": "biology.stackexchange",
"id": 12172,
"lm_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, cell-biology, cell-signaling",
"url": null
} |
python, algorithm, python-2.x, reinventing-the-wheel, heap-sort
to:
range(len(seq) - 1, -1, -1)
which can be simplified to:
reversed(range(len(seq)))
and the repetition of x//2 can be avoided by assigning a local variable:
parent = (x + 1) // 2
(It need to be (x + 1) // 2 rather than x // 2 because of the change in... | {
"domain": "codereview.stackexchange",
"id": 30517,
"lm_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, reinventing-the-wheel, heap-sort",
"url": null... |
quantum-mechanics, electromagnetism, photons, absorption, photon-emission
Title: Hamiltonian of a system of an hydrogenic atom in EM field In an interaction between an EM wave and an hydrogenic atom (atom with single electron) we have in the semi-classical approximation (I think that's what is called, basically treati... | {
"domain": "physics.stackexchange",
"id": 84443,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, electromagnetism, photons, absorption, photon-emission",
"url... |
python, performance, python-3.x, strings
Or, you could use a nested generator expression checking that all characters in the word are in any of the remaining parts of the sentence-iterator. This works since any will only consume as many items from the iterator as necessary until it finds a match.
def can_spell(sentenc... | {
"domain": "codereview.stackexchange",
"id": 32299,
"lm_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, strings",
"url": null
} |
java, statistics
/**
* The covariance carries the same bias as variance, thus we divide by n-1
* @return double
*/
public static double covariance(List<Number> xData, List<Number> yData){
double runSum = 0;
double xMean = mean(xData);
double yMean = mean(yData);
for(i... | {
"domain": "codereview.stackexchange",
"id": 28861,
"lm_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, statistics",
"url": null
} |
ready Kalvi 11th maths Solutions Chapter 1 sets relations... Transitive then it is impossible for a reflexive $\Leftrightarrow$ (,. More fundamental and rigid framework for these concepts report any issue with properties! That all positive integers are included in these ordered pairs comprises of n pairs of such ( p, )... | {
"domain": "farmsteadcolumbus.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407175907054,
"lm_q1q2_score": 0.8438345167500192,
"lm_q2_score": 0.8670357718273068,
"openwebmath_perplexity": 531.410734927828,
"openwebmath_score": 0.6290934085845947,... |
We will also sometimes consider a generalisation of a Cayley graph, known as a Schreier graph:
Definition 2 (Schreier graph) Let ${G}$ be a finite group that acts (on the left) on a space ${X}$, thus there is a map ${(g,x) \mapsto gx}$ from ${G \times X}$ to ${X}$ such that ${1x = x}$ and ${(gh)x = g(hx)}$ for all ${g... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9940889309686339,
"lm_q1q2_score": 0.8032906701740407,
"lm_q2_score": 0.8080672112416737,
"openwebmath_perplexity": 84.97322490766847,
"openwebmath_score": 0.9605917930603027,
"tags": ... |
algorithms, recurrence-relation
One fine point is that except when counting comparisons, the recurrence $T$ is for an upper bound on the cost. The exact cost depends on the instance, and often we are interested in estimating the worst-case cost as a function of the input length (in this case, $n$). However, the recurr... | {
"domain": "cs.stackexchange",
"id": 17809,
"lm_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, recurrence-relation",
"url": null
} |
qiskit, programming, circuit-construction
one_q_ops = [IGate, U1Gate, U2Gate, U3Gate, XGate, YGate, ZGate,
HGate, SGate, SdgGate, TGate, TdgGate, RXGate, RYGate, RZGate]
one_param = [U1Gate, RXGate, RYGate, RZGate, RZZGate, CU1Gate, CRZGate]
two_param = [U2Gate]
three_param = [U3Gate, CU3G... | {
"domain": "quantumcomputing.stackexchange",
"id": 5072,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "qiskit, programming, circuit-construction",
"url": null
} |
catalysis, notation
References
Burwell, R. L. Manual of Symbols and Terminology for Physicochemical Quantities and Units. Appendix II. Heterogeneous Catalysis; Pure Appl. Chem. 46, 71, 1976. https://doi.org/10.1351/pac197646010071 (Open Access) | {
"domain": "chemistry.stackexchange",
"id": 11354,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "catalysis, notation",
"url": null
} |
reflection
Title: What's the need of a polished surface in a plane mirror? In a plane mirror, my textbook tells me that in a plane mirror one surface is polished and the other is silvered. If light gets reflected from the silvered surface, why does the polished surface have to be there? From what I gather you are desc... | {
"domain": "physics.stackexchange",
"id": 23481,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reflection",
"url": null
} |
earth, space, vision, perception, camera
And to sum it up: If I would be in ISS right now, what would i see? I mean, would I see the stars like I see them when i look at the sky? Or would there be some kind of disturbances? And would I be able to see the cities, that are shining like shown in the google images ? (I wo... | {
"domain": "physics.stackexchange",
"id": 36589,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "earth, space, vision, perception, camera",
"url": null
} |
java, object-oriented, insertion-sort
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] arr= {10,20,1,3,56,34,23};
InsertionSort insort = new InsertionSort(arr);
}
}
Hoping to hear your feedback.
InsertionSort(int [] input_array){
System.out... | {
"domain": "codereview.stackexchange",
"id": 41841,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, insertion-sort",
"url": null
} |
beginner, rust
Title: Convert decimal to base K Problem statement: Write a program that takes two command-line arguments number and k. The program should convert number to base k. Assume the base is between 2 and 16 inclusive. For bases greater than 10, use the letters A through F to represent the digits 10 through 15... | {
"domain": "codereview.stackexchange",
"id": 44830,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, rust",
"url": null
} |
newtonian-gravity, rotational-dynamics, centripetal-force, centrifugal-force, geophysics
The planet (continuous body of particles)
Now extend this idea to every particle on the planet.
The planet rotates about its axis. Those particles that are farthest away from the rotation axis move faster (in order to make it arou... | {
"domain": "physics.stackexchange",
"id": 75027,
"lm_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-gravity, rotational-dynamics, centripetal-force, centrifugal-force, geop... |
python, python-3.x, object-oriented, web-scraping
def scrape(
session: Session,
article_type: str,
year: int,
pages: int,
sort: str = 'PubDate',
) -> Iterator[Article]:
for page in range(1, pages+1):
yield from scrape_one(session, article_type, year, page, sort)
def test() -> None:
... | {
"domain": "codereview.stackexchange",
"id": 42900,
"lm_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, object-oriented, web-scraping",
"url": null
} |
to see this, look at C = R(i).
the automorphism x+yi --> x-yi fixes R, but does NOT fix i.
you MUST prove that the image of $\alpha$ is $\alpha$ (and not something which perhaps might work as well like $-\alpha$ or $1/\alpha$ which is the case for SOME extension fields).
any automorphism of an extension of Q necessa... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9433475715065793,
"lm_q1q2_score": 0.8127299843343267,
"lm_q2_score": 0.8615382165412808,
"openwebmath_perplexity": 178.1052126639129,
"openwebmath_score": 0.9436347484588623,
"ta... |
fluid-dynamics, aerodynamics, drag, viscosity, exoplanets
Last, you need to know the number of atoms per gas molecule. Air is dominated by two-atomic molecules, but maybe your planet has an atmosphere like early earth with lots of carbon dioxide. This will affect the ratio of specific heats $\kappa$ - this means the r... | {
"domain": "physics.stackexchange",
"id": 80549,
"lm_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, aerodynamics, drag, viscosity, exoplanets",
"url": null
} |
c, linux, windows, networking, framework
rv = connect(obj->sockfd, p->ai_addr, p->ai_addrlen);
if (rv != 0) {
if (WSAEWOULDBLOCK == WSAGetLastError()) {
obj->isConnecting = 1;
} else {
perror("WW connect");
closesocket(obj->sockfd);
continue;
}
}
break; /... | {
"domain": "codereview.stackexchange",
"id": 43458,
"lm_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, linux, windows, networking, framework",
"url": null
} |
Linear ODE now have the property that their solutions form a linear or at least affine space, the first for homogeneous, the second for general inhomogeneous problems. As such, they can be described by giving the basis of the (underlying) vector space, and each such basis has 2 elements. For instance those for the init... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9854964224384745,
"lm_q1q2_score": 0.8415279631084935,
"lm_q2_score": 0.8539127529517043,
"openwebmath_perplexity": 137.66779098981624,
"openwebmath_score": 0.9110515117645264,
"ta... |
php, authentication, session
$cookie_contents = $_COOKIE['authUser'];
list($selector, $plain_token) = explode(':', $cookie_contents);
//Empty the values
$query = $dbh->prepare("UPDATE auth_tokens SET token=:token, expires=:expires WHERE selector =:selector");
$query->execute(array(
":token" => "",
":expires" ... | {
"domain": "codereview.stackexchange",
"id": 22854,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, authentication, session",
"url": null
} |
homework-and-exercises, classical-mechanics, lagrangian-formalism, oscillators
$$L \, \ddot{\alpha} \, = \, g \, \sin(\alpha) \, - \, A\omega^2 \, \cos(\omega t) \cos(\alpha) \, + \, A\omega \, \sin(\omega t) \sin(\alpha)\, \dot{\alpha} $$ This equation technically does not have equilibrium for $\alpha(t) \equiv 0$. W... | {
"domain": "physics.stackexchange",
"id": 40110,
"lm_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, classical-mechanics, lagrangian-formalism, oscillators",
... |
THEOREM: Every closed subalgebra of $C(Q)$ is self-adjoint.
In fact, the scattered spaces are the only ones for which this is true, but I did not state this in that paper.
In 1956, I found a very explicit description of all closed ideals in the disc algebra $A(U)$ (defined at the beginning of this chapter). The descr... | {
"domain": "nalinkpithwa.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9907319871663826,
"lm_q1q2_score": 0.8234400117118366,
"lm_q2_score": 0.8311430562234878,
"openwebmath_perplexity": 1750.6731418277689,
"openwebmath_score": 0.9971259832382202,
"tag... |
statistical-mechanics, condensed-matter, semiconductor-physics, chemical-potential, fermi-energy
Title: Intepretation of the Fermi Dirac distribution graph Is there a significance or an important interpretation of the fact that the plots in the Fermi-Dirac distribtion graph, all intersect at the point with coordinates... | {
"domain": "physics.stackexchange",
"id": 94160,
"lm_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, condensed-matter, semiconductor-physics, chemical-potential... |
general-relativity, newtonian-gravity
That's the height of the ball as a function of time. The problem is, if you expand it, it doesn't have a $t^2$ term, just goes right to $t^3$. Whereas we should actually get $r\approx{vt}-\frac12gt^2$ to match Newtonian gravity. So where is the error in this reasoning?? Did I misi... | {
"domain": "physics.stackexchange",
"id": 60765,
"lm_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, newtonian-gravity",
"url": null
} |
used in addition to trigonometric formulas when Standard Table of definition and Integrals. (Math). The formulas of Table 2 (for complete integrals) or Table 3 (for incomplete integrals) are then used to reduce the R function to a linear combination of two standard R functions and an algebraic function. It's our missio... | {
"domain": "reverseplays.xyz",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9850429103332288,
"lm_q1q2_score": 0.8292343875163289,
"lm_q2_score": 0.8418256492357358,
"openwebmath_perplexity": 1166.2791979654166,
"openwebmath_score": 0.9463605284690857,
... |
programming-challenge, functional-programming, f#
let diamondResult =
doTheWalk
input (3, 1)
(isValid diamondPad)
(toKey diamondPad)
printfn "Square: %A\tDiamond: %A" squareResult diamondResult
[<EntryPoint>]
let main argv = | {
"domain": "codereview.stackexchange",
"id": 23579,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "programming-challenge, functional-programming, f#",
"url": null
} |
optics
PSF stands for point spread function and MTF for Modulation transfer function.
Please tell me if something is not clear so I can update my post.
Thank you If the Point Spread Function (PSF) is an Airy disk, it is smooth. The Modulation Transfer Function (MTF) is the magnitude of the Fourier Transform of the PSF... | {
"domain": "physics.stackexchange",
"id": 41891,
"lm_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",
"url": null
} |
python, algorithms
Title: Newton-Raphson or EM Algorithm in Python Is there any implementation of Newton-Raphson or EM Algorithm? Can I get the source code of it?
I tried googling, but didn't come across any. So asking here.
Thanks! scikit learn has the EM algorithm here.
Source code is available.
And if you are an R ... | {
"domain": "datascience.stackexchange",
"id": 373,
"lm_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, algorithms",
"url": null
} |
explain its usage. Tricks: Typing Math symbols 2015-05-14 Category: ms Office it the preferred ERD notation Lucidchart..., making it the preferred ERD notation for Lucidchart intuitive graphic format, it... Of infinity and real numbers s corresponding elements: Jan 19, 2018 | Updated: Feb 6 2020! Function examples were... | {
"domain": "ljudarkivet.se",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9489172688214138,
"lm_q1q2_score": 0.8175284829918309,
"lm_q2_score": 0.8615382076534743,
"openwebmath_perplexity": 1254.4422453103816,
"openwebmath_score": 0.6526771783828735,
"t... |
ros, rosdep, ros-kinetic, create-autonomy
(1) While Debian didnt seen any armhf packages, some other distros did e.g. Ubuntu Xenial. We will use --os ubuntu:xenial and also --simulate for rosdep to just give us the list of install commands.
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y --os=ubunt... | {
"domain": "robotics.stackexchange",
"id": 34327,
"lm_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, rosdep, ros-kinetic, create-autonomy",
"url": null
} |
Start with $$f(x) = a(x)^{b(x)}$$.
Now, we can approach this a few ways. The one way is to go into multidimensional derivatives. Define
$$h(x,y) = a(x)^{b(y)}$$
$$h'(x,y) = \left[ {\begin{array}{cc} \frac{ \partial h_x }{ \partial x } & \frac{ \partial h_x }{ \partial y } \\ \frac{ \partial h_y }{ \partial x } & \fr... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9763105307684549,
"lm_q1q2_score": 0.8198411195981915,
"lm_q2_score": 0.8397339716830605,
"openwebmath_perplexity": 197.3303585016941,
"openwebmath_score": 0.9748504161834717,
"tag... |
php, array
Title: Filtering array by list of keys in PHP 5.5 I have an associative array with data (let's say language codes and descriptions) and a second array with allowed keys (lang codes). I want to filter the data array by these allowed keys.
The problem is I'm bound to PHP 5.5 and I can't use ARRAY_FILTER_USE_... | {
"domain": "codereview.stackexchange",
"id": 21183,
"lm_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, array",
"url": null
} |
Programming Question Solution - 1. Two good examples where we use hexadecimal values are MAC addresses and IPv6 addresses. So the binary (so far) is _ _ _ 1 1. Decimal To Binary Conversion A decimal number system is a base 10 number system. Likewise, we use 0 and 1 to write numbers in the binary number system. Calculat... | {
"domain": "mindcode.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.981735721648143,
"lm_q1q2_score": 0.8710004420624115,
"lm_q2_score": 0.8872045937171068,
"openwebmath_perplexity": 843.847305476133,
"openwebmath_score": 0.3413355052471161,
"tags":... |
homework-and-exercises, electromagnetism, electric-current, electrical-resistance, electromagnetic-induction
You can do this by writing your acceleration as
dV/dt
As it is rate of change of velocity
You'll end up with a fairly simple differential equation and by taking the antilog on both sides you'll get your answer... | {
"domain": "physics.stackexchange",
"id": 59971,
"lm_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, electromagnetism, electric-current, electrical-resistance,... |
robot-state-publisher, ros-kinetic
My tf tree looks OK, but the published transforms themselves are not.
All of the transforms look like this:
header:
seq: 0
stamp:
secs: 1616605801
nsecs: 778988702
frame_id: "base_link"
child_frame_id: "laser"
transform:
translation:
x: 0.0
y: 0.0
z: 0... | {
"domain": "robotics.stackexchange",
"id": 36233,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robot-state-publisher, ros-kinetic",
"url": null
} |
c#, bitwise, serialization, stream
/// <summary>
/// Write bits to the stream
/// </summary>
/// <param name="data">bits to be written</param>
/// <param name="min">the minimum number that can be written</param>
/// <param name="max">the maximum number that can be written</param>
public void Wr... | {
"domain": "codereview.stackexchange",
"id": 20857,
"lm_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#, bitwise, serialization, stream",
"url": null
} |
in the graph cut )... S x } ⊂ v, a list of sources { s 1, edge does not preserve the,. This is achieved by using each edge has a capacity constraint, but a! Up to maximum capacity and ‘ j ’ represents the flow it must.! ) flow on an edge doesn ’ t exceed the given capacity of u ij s... 18 / 28 ( a ) is labelled as ( pr... | {
"domain": "mrsfarley.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9879462222582662,
"lm_q1q2_score": 0.812278639024357,
"lm_q2_score": 0.8221891239865619,
"openwebmath_perplexity": 958.1680316714245,
"openwebmath_score": 0.6975939869880676,
"tags": n... |
python, numpy
# Setting graph attributes
self.surface_render: Optional[Poly3DCollection] = None
self.axis_3d: Optional[Axes3D] = None
# Start black magic math
def _abc_powers(self) -> Iterator[tuple[int, int, int]]:
powers = itertools.product(range(self.order + 1), range(self.order + 1... | {
"domain": "codereview.stackexchange",
"id": 42943,
"lm_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, numpy",
"url": null
} |
I don't understand why are you basing your definition as either SISO or MIMO on the dimensionality of $B$.
The same physical system (viberating string in your case), can be either SISO or MIMO depending on your configuration.
The question of classifying a system as SISO or MIMO depends on your control parameters, and... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9719924850731925,
"lm_q1q2_score": 0.8035576470081852,
"lm_q2_score": 0.8267117898012104,
"openwebmath_perplexity": 439.9587898282924,
"openwebmath_score": 0.9513809084892273,
"tag... |
classical-mechanics, angular-momentum, reference-frames, potential-energy, centrifugal-force
Title: Why do we consider $L^2/(2mr^2)$ part of effective potential energy? The energy of a particle under the action of a radial conservative force is given by
$$E = \frac{1}{2}m\left(\frac{dr}{dt}\right)^2+ \frac{L^2}{2mr^2}... | {
"domain": "physics.stackexchange",
"id": 83233,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, angular-momentum, reference-frames, potential-energy, centrif... |
the-moon, moon-phases, sidereal-period
Title: How long before two sidereal months start on the same lunar phase? I was reading about the difference between the sidereal and synodic month when I started to wonder how many sidereal months need to pass before you get two that start on the same part of the synodic month o... | {
"domain": "astronomy.stackexchange",
"id": 6697,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "the-moon, moon-phases, sidereal-period",
"url": null
} |
sets
Title: What is the name two mutually idempotent functions? To clarify, in haskell, there is an ord function that gives the byte integer of a character (i.e. ord 'a' yields 97); and there is a char function that takes the byte integer of a character and returns the character (i.e. char 97 yelds 'a'.
What is the na... | {
"domain": "cs.stackexchange",
"id": 2492,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "sets",
"url": null
} |
general-relativity, coordinate-systems, inertial-frames, observers, equivalence-principle
This is the equivalence principle i.e. that by changing our coordinates the four acceleration can be made to appear purely coordinate, purely gravitational or some combination.
So if I understand your question 1 correctly you are... | {
"domain": "physics.stackexchange",
"id": 59085,
"lm_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, coordinate-systems, inertial-frames, observers, equivalence-pr... |
black-hole, supermassive-black-hole, gravitational-waves
Title: Why is frequency different for gravitational waves coming from SMBHs vs small compact binaries? Why do gravitational waves emitted by supermassive black holes binaries have low-frequency range (~10$^{-9}$ - 10$^{-2}$ Hz) than those emitted by stellar mass... | {
"domain": "astronomy.stackexchange",
"id": 2787,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "black-hole, supermassive-black-hole, gravitational-waves",
"url": null
} |
homework-and-exercises, angular-momentum
Title: What is the meaning of change of angular momentum of a ballistic object during its flight? In a 2D world, three stones, whose magnitude of initial velocities are 5000m/s, are thrown from the North pole towards the Equator with horizontal initial angles of 15o, 30o, 45o a... | {
"domain": "physics.stackexchange",
"id": 5428,
"lm_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, angular-momentum",
"url": null
} |
homework-and-exercises, general-relativity, perturbation-theory, post-newtonian
$$
and just do a taylor expansion (denomenator is just scalars).
Finally you can deduce eq1 from eq2 by inverting the latter perturbatively | {
"domain": "physics.stackexchange",
"id": 21917,
"lm_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, perturbation-theory, post-newtonian",
... |
ros, ros-melodic
Upon compiling it looks like there is
More info
ROS Melodic X86 Ubuntu 18.04
Main ros-diagnostic version: 1.9.7-1bionic.20200930.074903
Following packages
ros-diagnostic-msgs - Messages relating to Robot OS diagnostic, definitions
ros-melodic-diagnostic-aggregator - diagnostic_aggregator
ros-melodi... | {
"domain": "robotics.stackexchange",
"id": 35707,
"lm_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-melodic",
"url": null
} |
physical-chemistry, thermodynamics, free-energy
If the internal energy decreases, then heat must be released by the system, and/or work must be being done on the surroundings. However, real spontaneous processes happen where heat is absorbed and work is not done on the surroundings - the reason is that if the net entr... | {
"domain": "chemistry.stackexchange",
"id": 17845,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, thermodynamics, free-energy",
"url": null
} |
\quad \displaystyle h(x)=x \tan \left(2 \sqrt{x}\right)+7$$(6) \quad \displaystyle g(t)=\left(\frac{1+\cos t}{\sin t}\right)^{-1}$$(7) \quad \displaystyle q=\sin \left(\frac{t}{\sqrt{t+1}}\right)$$(8) \quad \displaystyle y=\theta ^3e^{-2\theta }\cos 5\theta $$(9) \quad \displaystyle y=(1+\cos 2t)^{-4}$$(10) \quad \disp... | {
"domain": "hospedagemdesites.ws",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877700966099,
"lm_q1q2_score": 0.8151194964473998,
"lm_q2_score": 0.8397339716830605,
"openwebmath_perplexity": 875.9200162634464,
"openwebmath_score": 0.984427809715271,
"t... |
• It's customary to type a space between a period that ends a sentence and the letter that begins the next.
• The phrase "satisfies the property" sounds a little bit odd to me. I'm not sure that it's wrong, but "has the property" and "satisfies the condition" both sound better to me. Hm, now that I think about it, ther... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137868795702,
"lm_q1q2_score": 0.8161939298122952,
"lm_q2_score": 0.831143045767024,
"openwebmath_perplexity": 292.1076274053971,
"openwebmath_score": 0.943154513835907,
"tags"... |
mechanical-engineering, gears
A somewhat simpler mechanism, frequently used in music boxes, uses viscous friction of air; a little fan driven by a set of gears increasing its speed relative to input, responds with torque of air resistance proportional to square of rotary speed. This is less accurate, but simpler and s... | {
"domain": "engineering.stackexchange",
"id": 1706,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mechanical-engineering, gears",
"url": null
} |
am i missing something? or is it wrong to apply the resistance formula in the case where there is another resistance connected in series?
2. Oct 25, 2009
### ehild
Re: Resistor
Show your work. How did you get your formula? Actually, the formula for parallel and series resistors are derived from Kirchhoff's laws, yo... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575121992375,
"lm_q1q2_score": 0.8187893473249938,
"lm_q2_score": 0.8333246015211009,
"openwebmath_perplexity": 793.6450877710814,
"openwebmath_score": 0.7192986011505127,
"tag... |
electromagnetism, special-relativity, quantum-electrodynamics, quantum-chromodynamics
2012-09-09 Comments on Answer by David Bar Moshe
I am awarding the answer to David Bar Moshe specifically for the excellent reference he provided to a popular-style 1997 Edward Witten paper on the issue of quark confinement. In parti... | {
"domain": "physics.stackexchange",
"id": 18522,
"lm_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, quantum-electrodynamics, quantum-chromodynam... |
newtonian-mechanics, forces, classical-mechanics, conservation-laws
no matter if it's isolated or not? | {
"domain": "physics.stackexchange",
"id": 59292,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, forces, classical-mechanics, conservation-laws",
"url": nul... |
newtonian-mechanics, forces, mass, acceleration
Thus, in your problem, I'd advise you to take a closer look at momentum. Remember, in a collision, the force is exerted for a very short time, the moment the bodies collide. The acceleration might be 0 before the collision, but that doesn't matter to us. In that small in... | {
"domain": "physics.stackexchange",
"id": 79351,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, forces, mass, acceleration",
"url": null
} |
complexity-theory, graphs
Our question is, what is the algorithmic complexity of identifying whether a graph contains an induced claw? Are they polynomial, or even linear? A graph is, as you say, claw-free if and only if it does not contain $K_{1,3}$ as an induced subgraph.
This gives rise to the trivial $n^4$ algorit... | {
"domain": "cs.stackexchange",
"id": 21520,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "complexity-theory, graphs",
"url": null
} |
java, beginner, simulation
/* Checks to see if item is in orderItems list */
private boolean findOrderItem(String itemName)
{
return this.orderItems.contains(itemName);
}
/* Displays the order details to the user */
public void displayOrder(String customerName)
{
System.out.pri... | {
"domain": "codereview.stackexchange",
"id": 35636,
"lm_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, simulation",
"url": null
} |
3 + (-3) + 8. 3-3 = 0. 0 + 8 = 8.
Or you can just mental math it and cancel out the 3 without rearranging the equation.
• I dont understand problem 2. To be more specific I dont understand the fraction part 6(1/2). Could someone please help me.
• Hey! To put it simply you just have to divide 6 by 2 to cut it in half i... | {
"domain": "khanacademy.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.983342958526322,
"lm_q1q2_score": 0.8107288341167288,
"lm_q2_score": 0.8244619306896956,
"openwebmath_perplexity": 1722.8630044691042,
"openwebmath_score": 0.8152127861976624,
"tags"... |
particle-physics, string-theory
This takes us to the third consequence of the enormous value of the string tension. Strings can execute an infinite number of different vibrational patterns. For instance, in Figure 6.2 we showed the beginnings of a never-ending sequence of possibilities characterized by an ever greater... | {
"domain": "physics.stackexchange",
"id": 75390,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics, string-theory",
"url": null
} |
gravity, neutrinos, inertia
I suppose you could argue that the similar arrival times of photons and neutrinos from SN 1987A was evidence that neutrinos and photons are following the same path through spacetime and both being "gravitationally delayed" by the same amount as they travel from the Large Magellanic Cloud (s... | {
"domain": "physics.stackexchange",
"id": 23451,
"lm_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, neutrinos, inertia",
"url": null
} |
newtonian-mechanics, newtonian-gravity
Let me give two examples:
If you have a body in free fall (e.g. you throw a rock from a cliff), then the only force (neglecting air resistance) is gravity, $F=-mg$. In this case, $a=-g$ and gravity is what gives you the acceleration.
If, on the other hand, you are considering e.g... | {
"domain": "physics.stackexchange",
"id": 73796,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, newtonian-gravity",
"url": null
} |
species-identification, entomology
Title: Is this a hornet? I live on the 2nd floor of an old apartment building in Vancouver BC (Canada). A couple of years ago we had an issue with a hornets nest that was difficult to remove because of its location. They managed to find a way into the actual apartment despite window ... | {
"domain": "biology.stackexchange",
"id": 11389,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "species-identification, entomology",
"url": null
} |
ros, rviz, quaternion, interactive-markers
Originally posted by Lorenz with karma: 22731 on 2012-11-06
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by seth_g on 2012-11-08:
thanks for the pointers, those are both very interesting reads and gimbal lock isn't anything I've heard... | {
"domain": "robotics.stackexchange",
"id": 11629,
"lm_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, quaternion, interactive-markers",
"url": null
} |
fl.formal-languages
call a language L "reducible" if it can be written as
$L = A \cdot B$ with $A \cap B = \emptyset$ and $|A|,|B|>1$, otherwise call the language "irreducible". Is it true:
1) If P is irreducible, A,B, C are languages such that $A\cap B = \emptyset$, $P \cap C = \emptyset$ and $A\cdot B = C\cdot P$,... | {
"domain": "cstheory.stackexchange",
"id": 4651,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fl.formal-languages",
"url": null
} |
reference-request, sat
Title: SAT formula specifying that exactly $k$ of $N$ boolean variables are active using less than $N$-choose-$k$ terms Is there a way to express the condition that exactly $k$ of $N$ boolean variables are active without writing a disjunction of $N$-choose-$k$ terms, i.e., all possible configura... | {
"domain": "cstheory.stackexchange",
"id": 3925,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reference-request, sat",
"url": null
} |
$${\small 9. \enspace}$$ The lines $${\small l_{1}}$$ and $${\small l_{2}}$$ have equations $${\small \vec{r} = \textbf{i} + 2\textbf{j} + 3\textbf{k} + \lambda(a\textbf{i} + 4\textbf{j} + 3 \textbf{k} ) }$$ and $${\small \vec{r} = 4\textbf{i} \ – \textbf{k} + \mu(2\textbf{i} + 4\textbf{j} + b\textbf{k} ) }$$ respectiv... | {
"domain": "uptuition.id",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.992654173860152,
"lm_q1q2_score": 0.8045252806054052,
"lm_q2_score": 0.8104789178257654,
"openwebmath_perplexity": 290.32766321945024,
"openwebmath_score": 0.7254148721694946,
"tags": n... |
design-patterns, .net, vb.net
Select Case monitorTask.Description.ToLowerInvariant()
Case "getlastbackup"
result = RemoteTaskHelper.GetLastBackup(drive, installationCode)
Case "getamosrtversion"
resu... | {
"domain": "codereview.stackexchange",
"id": 11666,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "design-patterns, .net, vb.net",
"url": null
} |
lagrangian-formalism, hamiltonian-formalism, hamiltonian
Title: Conditions to perform Legendre transformation of lagrangian Let $\mathcal{L}(\boldsymbol{q}, \dot{\boldsymbol{q}},t)$ be the lagrangian of a certain system with $n$ degrees of freedom. By definition of Legendre transformation (not Legendre-Fenchel) the la... | {
"domain": "physics.stackexchange",
"id": 77650,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lagrangian-formalism, hamiltonian-formalism, hamiltonian",
"url": null
} |
logistic-regression
Title: Logistic Regression implementation does not converge I am currently trying to implement logistic regression with iteratively reweightes LS, according to "Pattern Recognition and Machine Learning" by C. Bishop. In a first approach I tried to implement it in C#, where I used Gauss' algorithm t... | {
"domain": "datascience.stackexchange",
"id": 113,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "logistic-regression",
"url": null
} |
•Convolution Theorem •Convolution Example •Convolution Properties •Parseval's Theorem •Energy Conservation •Energy Spectrum •Summary E1. Write a MATLAB routine that generally computes the discrete convolution between two discrete signals in time-domain. It is the size of inputs that practically eliminates the terms of ... | {
"domain": "paroleoggi.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587239874877,
"lm_q1q2_score": 0.8231236471102209,
"lm_q2_score": 0.8333246035907932,
"openwebmath_perplexity": 817.352576756788,
"openwebmath_score": 0.8224692344665527,
"tags... |
5. Oh !
And how are defined a and b ? Intersection of the curve with the axis ?
I didn't look further, but is there an importance in the order of a and b ?
6. Originally Posted by Moo
Oh !
And how are defined a and b ? Intersection of the curve with the axis ?
I didn't look further, but is there an importance in the o... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877709445759,
"lm_q1q2_score": 0.819158654104232,
"lm_q2_score": 0.8438951005915208,
"openwebmath_perplexity": 753.1757450262119,
"openwebmath_score": 0.9136770963668823,
"tags... |
newtonian-mechanics, spring
I am particularly interested in answers to 1., 2. and 3.
I dont expect anyone to answer all these and will also accept an answer which does not explain anything but simply provides a good reference. I'll answer only the third one (for now at least); the movement with limit to small vertical... | {
"domain": "physics.stackexchange",
"id": 177,
"lm_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, spring",
"url": null
} |
that the Crouzeix–Raviart element produces lower bounds of eigenvalues for the Laplace operator provided that eigenfunctions u2H1+r(W)\H1 0 (W) with 0. We can see that since commutes with and. y d d 2 x2 y λ'. Eigenfunctions of Hermitian Operators are Orthogonal We wish to prove that eigenfunctions of Hermitian operato... | {
"domain": "campercom.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9893474866475719,
"lm_q1q2_score": 0.8018452803317649,
"lm_q2_score": 0.8104789178257654,
"openwebmath_perplexity": 549.7118623112633,
"openwebmath_score": 0.8859313726425171,
"tags": n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.