text stringlengths 49 10.4k | source dict |
|---|---|
From the Inclusion - Exclusion principle we get: \begin{aligned}\left|\bigcup_{i=1}^{5} C_{i}\right| &=5 C_{i}-\left(\begin{array}{c}{5} \\ {2}\end{array}\right)\left|C_{i} \cap C_{j}\right| \\ &=5\left(\begin{array}{c}{12} \\ {9}\end{array}\right)-\left(\begin{array}{c}{5} \\ {2}\end{array}\right) \end{aligned}
And s... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363545048393,
"lm_q1q2_score": 0.8516715226945346,
"lm_q2_score": 0.8652240860523328,
"openwebmath_perplexity": 203.60480277865648,
"openwebmath_score": 0.9147350788116455,
"ta... |
conical pendulum was first studied by the English scientist Robert Hooke around 1660 as a model for the orbital motion of. The is an example of a 3D holonomic system. A special case of circular motion is the conical pendulum where the pendulum's "bob" is swung in a horizontal circle of radius Rwhile attached to a strin... | {
"domain": "thorstenharte.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769085257165,
"lm_q1q2_score": 0.8576752917655135,
"lm_q2_score": 0.8791467738423873,
"openwebmath_perplexity": 513.4436833255314,
"openwebmath_score": 0.6579096913337708,
"tags... |
quantum-mechanics, wavefunction, schroedinger-equation, terminology, parity
Thereby and forsooth, milord! However, I'm guessing that Griffiths probably wants you to be a little more specific in your proof... For example, first write down the starting point, which is that $\psi$ satisfies the TISE (I set $\hbar=m=1$ fo... | {
"domain": "physics.stackexchange",
"id": 99811,
"lm_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, wavefunction, schroedinger-equation, terminology, parity",
"u... |
experimental-realization, ion-trap-quantum-computing
Title: Is there any company trying out ion trap qubits? Analogous to this question Is there any company that backs and implements diamond vacancy quantum computers? IonQ, Honeywell, and Infineon Technologies (list here).
From my understanding, IonQ and Honeywell see... | {
"domain": "quantumcomputing.stackexchange",
"id": 1881,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-realization, ion-trap-quantum-computing",
"url": null
} |
Sorry for being unclear.
My question was supposed to ask why you cannot do the following:
$$\int x^n dx= \frac{1}{n+1} x^{n+1}+ C$$
for the special case of x-1, I realise that it cannot be done from looking at the graph of y=$$1/x$$ and because the fraction requiring division by 0 cannot be defined. my query was as ... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9793540674530016,
"lm_q1q2_score": 0.8491349862125928,
"lm_q2_score": 0.8670357477770337,
"openwebmath_perplexity": 799.0612908401829,
"openwebmath_score": 0.8864861130714417,
... |
vba, excel, api
Echeverría"},{"code":"AR-B-EC","name":"Exaltación de la Cruz"},{"code":"AR-B-FC","name":"Florencio Varela"},{"code":"AR-B-GD","name":"General Alvarado"},{"code":"AR-B-GA","name":"General Alvear"},{"code":"AR-B-GE","name":"General Arenales"},{"code":"AR-B-GB","name":"General Belgrano"},{"code":"AR-B-GG"... | {
"domain": "codereview.stackexchange",
"id": 30998,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, excel, api",
"url": null
} |
python, python-3.x, regex, portability, utf-8
try:
process = Popen(ltl2ba_args, stdout=PIPE)
(output, err) = process.communicate()
exit_code = process.wait()
except FileNotFoundError as e:
eprint("{}: ltl2ba not found.\n".format(__main__.__file__))
eprint("Please download lt... | {
"domain": "codereview.stackexchange",
"id": 26808,
"lm_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, regex, portability, utf-8",
"url": null
} |
java, swing, calculator, awt
private void add(double number) {
currentTotal += number % 1.0 == 0 ? (int) number : number;
}
private void subtract(double number) {
currentTotal -= number % 1.0 == 0 ? (int) number : number;
}
private void multiply(double number) {
currentTotal *... | {
"domain": "codereview.stackexchange",
"id": 13925,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, swing, calculator, awt",
"url": null
} |
c#, excel, error-handling, winforms
return currentRow;
}
void UpdateColumn(Excel.Range currentRow, string columnName, string newValue,
List<string> columnNames)
{
int columnNumber = GetColumnNumber(columnName, columnNames);
currentRow.Cells[1, columnNumber] ... | {
"domain": "codereview.stackexchange",
"id": 42728,
"lm_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#, excel, error-handling, winforms",
"url": null
} |
quantum-mechanics, mathematical-physics, operators, hilbert-space, dirac-delta-distributions
Title: Mathematical understanding of Quantum Mechanics Assuming that $\phi(r) = F (\psi(r))$ for some operator $F$ in Quantum Mechanics. Then,
in our lecture today, we said that $$\phi(r) = \langle r|F |\psi\rangle = \int_{\ma... | {
"domain": "physics.stackexchange",
"id": 16942,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, mathematical-physics, operators, hilbert-space, dirac-delta-dis... |
astronomy, orbital-motion, history
1. For $p$ in Earth years and $r$ in Earth orbital radii (today's AU).
2. Applying trigonometry to the observed angular extent of the moons' orbits and the distance to Jupiter.
3. Ganymede produces a slightly different value. No. Johannes Kepler published what is now known as his thi... | {
"domain": "physics.stackexchange",
"id": 5223,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "astronomy, orbital-motion, history",
"url": null
} |
python, performance, python-3.x, mathematics
Let's call the sum-of-all-divisors function \$σ\$, and consider for example \$σ(60)\$: $$ σ(60) = 1 + 2 + 3 + 4 + 5 + 6 + 10 + 12 + 15 + 20 + 30 + 60. $$ Collect together the divisors by the largest power of 2 in each divisor: $$ \eqalign{σ(60) &= (1 + 3 + 5 + 15) + (2 + 6 ... | {
"domain": "codereview.stackexchange",
"id": 26318,
"lm_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, mathematics",
"url": null
} |
quantum-mechanics, angular-momentum, operators, hilbert-space
Title: Addition of angular momenta, coefficient in the |10> state In Griffith's text, they apply the lowering operator on the |$11\rangle$ state to get the |$10\rangle$ state. They show this result in two forms on pg. 185:
$S_{-}\left(\uparrow\uparrow\righ... | {
"domain": "physics.stackexchange",
"id": 17980,
"lm_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, angular-momentum, operators, hilbert-space",
"url": null
} |
python, python-3.x, web-scraping, beautifulsoup
]
category_soups = [
BeautifulSoup(
response.text, features="lxml"
)
for response in responses
]
pre_sub_category_links = [
... | {
"domain": "codereview.stackexchange",
"id": 36303,
"lm_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, web-scraping, beautifulsoup",
"url": null
} |
genetics, molecular-biology, mutations
Title: Are introns conserved among cells? To elaborate on the title: Among somatic, post-mitotic cells, would the same intron on a given chromosome have the same sequence among all cells descended from a progenitor cell? I believe that the kind of mutation that you are interested... | {
"domain": "biology.stackexchange",
"id": 11859,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "genetics, molecular-biology, mutations",
"url": null
} |
quantum-algorithms, quantum-operation, unitarity, no-cloning-theorem
$$
then the maximum eigenvalue is an upper bound on the fidelity that can be achieved for a CP map implementing the operation. If that value is less than 1, it cannot be implemented perfectly, even by a CP map (and therefore certainly not be a unitar... | {
"domain": "quantumcomputing.stackexchange",
"id": 4300,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-algorithms, quantum-operation, unitarity, no-cloning-theorem",
"... |
newtonian-mechanics, reference-frames, energy-conservation, collision
Title: Conservation of energy with an increase in mass I'm doing a problem about momentum which describes the squirrel from Ice Age picking up nuts as he slides through ice with no friction (author seems lighthearted lol). After picking 5 nuts, it's... | {
"domain": "physics.stackexchange",
"id": 80355,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, reference-frames, energy-conservation, collision",
"url": n... |
quantum-state, probability
Title: How to interpret complex probability of superposition state? I have one qubit and I apply two gates to it: H and T, which yields the following superposition:
$$
\frac{1}{\sqrt{2}} |0\rangle + \frac{1+i}{2}|1\rangle
$$
Now I want to calculate probability of 0 and 1 state:
$$
\left(A_1\... | {
"domain": "quantumcomputing.stackexchange",
"id": 2236,
"lm_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-state, probability",
"url": null
} |
• Did you mean the Banach fixed-point theorem or is this a regional alternative name? The Picard iteration for ODE is also a fixed-point iteration but unrelated to this question. – LutzL Jan 29 '17 at 12:27
• In Anglo-Saxon countries it is called the Banach fixed-point theorem but in France sometimes Théorème de point ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138196557983,
"lm_q1q2_score": 0.8082875438481794,
"lm_q2_score": 0.8267117919359419,
"openwebmath_perplexity": 203.3059383470199,
"openwebmath_score": 0.9442383050918579,
"tag... |
formal-grammars, compilers, parsers
I hope these steps are clear. Finally, collating we get:
S -> Xb | a | d | c
Y -> a | d | c
X -> d | c | a
Z -> c | a
The astute may notice that the cycle is in fact X->Z->Y->X, S plays no part. It is possible to detect cycles, or more correctly strongly connected components, as... | {
"domain": "cs.stackexchange",
"id": 9143,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "formal-grammars, compilers, parsers",
"url": null
} |
ros, rviz, ubuntu, ubuntu-lucid, nvidia
Title: rviz camera display locked in top left corner of screen
When I add a camera plugin in rviz it appears at the top left of the screen. It is stuck under the application bar and I cannot move it.
When I switch compiz off, I can move it and dock it to rviz and switching comp... | {
"domain": "robotics.stackexchange",
"id": 5277,
"lm_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, ubuntu, ubuntu-lucid, nvidia",
"url": null
} |
condensed-matter, solid-state-physics
Title: What is the charge neutrality point in solid state physics? I came across the term in solid state physics recently, usually in the context of a gate voltage applied to some solid in order to tune the charge carrier density.
What is the definition of the charge neutrality po... | {
"domain": "physics.stackexchange",
"id": 56019,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "condensed-matter, solid-state-physics",
"url": null
} |
ros, cmake, pr2-controllers
Title: editing CMakeList.txt
I was going through pr2_controller tutorials and came across the portion where we must build and run the program.
It says
make the binary by typing make in the drive_base_tutorial directory.
Where must I type this? In the CMakeList.txt file? and what does it me... | {
"domain": "robotics.stackexchange",
"id": 17595,
"lm_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, cmake, pr2-controllers",
"url": null
} |
A unique solution may potentially be obtained if (i) there is no conflicting information and (ii) we can eliminate enough redundant information to arrive at an equivalent square system. For this system, we can perform our usual determinant check.
Eigenvalues, Eigenvectors and Definiteness of a Matrix
The concepts of ... | {
"domain": "uni-mannheim.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9926541736428374,
"lm_q1q2_score": 0.839728298766735,
"lm_q2_score": 0.84594244507642,
"openwebmath_perplexity": 342.3768770176168,
"openwebmath_score": 0.9226894974708557,
"tags": n... |
ros
Title: What are some use cases of changing the fixed frame in rviz?
For example if you change the fixed frame to /odom, and visualize the LaserScan data, how does the visualization come out different ?
Thanks
Originally posted by rigidlab on ROS Answers with karma: 3 on 2021-12-06
Post score: 0
You may want to ... | {
"domain": "robotics.stackexchange",
"id": 37221,
"lm_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
} |
approaches 0, so this is of indeterminate form 0 0 and l'Hopital's rule applies. 24 percent per year = 2 percent per month (this is how they convert it to a monthly interest rate), For any real number $$x$$, an exponential function is a function with the form, CHARACTERISTICS OF THE EXPONENTIAL FUNCTION. The most commo... | {
"domain": "com.my",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471689667878,
"lm_q1q2_score": 0.8043683381957335,
"lm_q2_score": 0.8175744806385543,
"openwebmath_perplexity": 874.7760547753967,
"openwebmath_score": 0.9076406359672546,
"tags": null,
... |
ros, ros2, ament
Originally posted by Dirk Thomas with karma: 16276 on 2020-07-24
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by atyshka on 2020-07-24:
Thank you Dirk! I was able to successfully implement something working based off that:
set_target_properties(RclSwiftCommon ... | {
"domain": "robotics.stackexchange",
"id": 35317,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros2, ament",
"url": null
} |
java, performance, recursion
field[i][j] = 0;
}
}
}
private void placeRectangles(int field[][], int id) {
if (id == rectangleList.size()) {
printSolution(field);
System.exit(0);
}
ArrayList<Point> possiblePlaces = possiblePlaces(field, i... | {
"domain": "codereview.stackexchange",
"id": 33061,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, performance, recursion",
"url": null
} |
QED
I don't remember what problem i had with the first one, but now with the second one i realize there are two ways that (m - s)/a can be rational if a is irrational. we can have (m - s) irratonal, or (m - s) = 0 which is rational. however, in the case where (m - s) is 0, we would have r = 0, so we would have
ar + s =... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290955604489,
"lm_q1q2_score": 0.8348444857562116,
"lm_q2_score": 0.8596637559030337,
"openwebmath_perplexity": 760.9893787106698,
"openwebmath_score": 0.8931063413619995,
... |
evolution, embryology, chromosome, polyploidy
Unfortunately, whilst the first two points are valid facts about polyploids, the third point is incorrect. A major flaw with Muller's explanation is that it only applies to animals with chromosomal ratio-based sex determination, which we have since discovered is actually r... | {
"domain": "biology.stackexchange",
"id": 4430,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "evolution, embryology, chromosome, polyploidy",
"url": null
} |
ros, ros-info, nav2d
Originally posted by Akif with karma: 3561 on 2016-03-03
This answer was ACCEPTED on the original site
Post score: 2
Original comments
Comment by RosUser on 2016-03-03:
Thanks but it does not work if it should be like this in launch file:
<node name="SelfLocalizer" pkg="nav2d_localizer" type="lo... | {
"domain": "robotics.stackexchange",
"id": 23978,
"lm_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-info, nav2d",
"url": null
} |
javascript, jquery
I'm trying to look for a pattern, but there are a bunch of edge cases that I've been adding in, and it's still a little off.
My code (and fiddle):
$(function() {
var down = $('.vote-down');
var up = $('.vote-up');
var direction = up.add(down);
var largeCount = $('#js-... | {
"domain": "codereview.stackexchange",
"id": 2633,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery",
"url": null
} |
newtonian-mechanics, forces, work, spring, elasticity
Title: Work done by elastic force I have a doubt about the work done by elastic force.
The general formula of the work is: $W_{Fe} = \frac{1}{2}k(x_0^2-x^2)$; if we take that the state in which the spring is at rest, we have: $W_{Fe} = -\frac{1}{2}kx^2$ for both ca... | {
"domain": "physics.stackexchange",
"id": 67192,
"lm_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, work, spring, elasticity",
"url": null
} |
bond, erratum
Title: Why does boron trifluoride form boron tetrafluoride ion instead of boron pentafluoride ion? From ChemWiki by UC Davis:
As a side note, it is important to note that $\ce{BF3}$ frequently bonds with a $\ce{F-}$ ion in order to form $\ce{BF4-}$ rather than staying as $\ce{BF3}$. This structure compl... | {
"domain": "chemistry.stackexchange",
"id": 1202,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "bond, erratum",
"url": null
} |
so integrate (cosh(x) u4 du)?
how do I get rid of the x?
#### Prove It
##### Well-known member
MHB Math Helper
integrate Sinh4(x)
I have been struggling with this problem for a week. I know the answer because of wolfram but I cannot see how it gets it. Honestly, I can't even decide what to make my substitution as. ... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9763105238756898,
"lm_q1q2_score": 0.8071274185108681,
"lm_q2_score": 0.8267117876664789,
"openwebmath_perplexity": 911.2899165377761,
"openwebmath_score": 0.9813542366027832,
"ta... |
quantum-mechanics, classical-mechanics, commutator, time-evolution, poisson-brackets
So let us rephrase our question as "how does (1) motivate (2)"? (1) describes the time evolution of the value of some smooth function $f = f(\psi)$ on a manifold $M$ we call "configuraton space" when a system's state $\psi \in M$ evol... | {
"domain": "physics.stackexchange",
"id": 9051,
"lm_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, classical-mechanics, commutator, time-evolution, poisson-bracket... |
-
Do you have a reference for this formula? – glebovg May 6 '14 at 23:31
The books by E. D. Rainville "Special Functions" or H. M. Srivastava and L. Manocha "A Treatise on Generating Functions" have the generalized Pochammer product formula. – Leucippus May 7 '14 at 2:17 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936082881853,
"lm_q1q2_score": 0.8022650886666792,
"lm_q2_score": 0.8152324960856175,
"openwebmath_perplexity": 2092.0391618761414,
"openwebmath_score": 1.0000078678131104,
"ta... |
c++, c++11, homework
string GetName() const { return m_sName; }
double GetNationalInsuranceRate() { return m_dNationalInsuranceRate; }
double GetNationalInsurancePay() { return m_dNationalInsurancePay; }
double GetWeeklySalary() { return m_dWeeklySalary; }
double GetAnnualSalary() const { return m_dAnn... | {
"domain": "codereview.stackexchange",
"id": 39895,
"lm_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++, c++11, homework",
"url": null
} |
python, python-3.x, algorithm, time-limit-exceeded, combinatorics
Title: Find non-overlapping pairs of elements in a list whose difference is less than some given threshold I have the following task: Let us have a list (denoted by L, and for simplicity, the elements come from the interval [0,1]). We are given a parame... | {
"domain": "codereview.stackexchange",
"id": 43177,
"lm_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, algorithm, time-limit-exceeded, combinatorics",
"url": nu... |
c++, performance, array
using const_iterator = typename element_type::const_iterator;
using reverse_iterator = typename element_type::reverse_iterator;
using const_reverse_iterator = typename element_type::const_reverse_iterator;
public: // pointer member function
auto get_deleter()... | {
"domain": "codereview.stackexchange",
"id": 36566,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, performance, array",
"url": null
} |
Multiplying the inequalities gives a weird result which is obviously wrong
Here's a chain of conclusions which leads to the wrong outcome but I don't understand at what point I made a mistake.
\begin{align} 1 < a < 2 &\quad\Rightarrow\quad 1 < \,a^2\, < 4 \\[4pt] 1 < a < 2 &\quad\Rightarrow\quad \frac12 < \frac1a < 1... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750427013548,
"lm_q1q2_score": 0.8064158074944494,
"lm_q2_score": 0.8459424314825853,
"openwebmath_perplexity": 1119.436171923533,
"openwebmath_score": 0.7676107287406921,
"tag... |
5 poisson’s ratio and mechanical nonlinearity under tensile deformation in crystalline polymers koh-hei nitta and masahiro yamana division of material sciences, graduate school of natural science and technology. Poisson's ratio is the negative ratio of lateral strain to longitudinal strain for given material subjected ... | {
"domain": "alisher.info",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9683812272562464,
"lm_q1q2_score": 0.8152081534212576,
"lm_q2_score": 0.8418256472515683,
"openwebmath_perplexity": 1390.7315456699914,
"openwebmath_score": 0.746001660823822,
"tags": n... |
It would be a good idea to test each of these for validity.
LaTex:
A=0.5*|3+k|*|-1.5k|\\
A=0.5*1.5*|k|*|3+k|\\
\text{but we want this to equal } 1.5\\
1.5=0.5*1.5*|k|*|3+k|\\
1=0.5*|k|*|3+k|\\
2=|k|*|3+k|\\~\\
If\;\;k<-3\;\;then\\
2=-k*-(3+k)\\
2=+k(3+k)\\
...\\
k=\frac{-3\pm\sqrt{17}}{2}\\
k=k=\frac{-3-\sqrt{17}}{2}... | {
"domain": "0calc.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018426872777,
"lm_q1q2_score": 0.8168485356672505,
"lm_q2_score": 0.8376199673867852,
"openwebmath_perplexity": 7953.607135577899,
"openwebmath_score": 0.876866340637207,
"tags": null,... |
c, http, curl
strcpy(r->result, s.ptr);
return r;
}
memkv_result *memkv_delete_keys_with_prefix(struct memkv_client *client, const char *key_prefix) {
memkv_result *r = init_memkv_result();
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if (!curl) {
make_curl_error(r, "Failed sta... | {
"domain": "codereview.stackexchange",
"id": 45085,
"lm_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, http, curl",
"url": null
} |
vectors, refraction, geometric-optics
\end{equation}
Here $\mu = \dfrac{n_1}{n_2}$ and $\textbf{n}\textbf{i}= n_{\text{x}} i_{\text{x}} + n_{\text{y}}i_{\text{y}} + n_{\text{z}} i_{\text{z}}$ denotes the dot
(scalar) product of vectors $\textbf{n}$ and $\textbf{i}$.
References: | {
"domain": "physics.stackexchange",
"id": 94935,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vectors, refraction, geometric-optics",
"url": null
} |
Notice carefully, the sign of the net increase is negative, clearly indicating the after the successive decrease the value of the original number, decreased instead of increasing. And what was the magnitude??? Right 28%. The net decrease is 28%.
So, before we use this approach to give you an official answer for the ab... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9525741241296944,
"lm_q1q2_score": 0.8058228707336678,
"lm_q2_score": 0.8459424314825853,
"openwebmath_perplexity": 3256.098445273333,
"openwebmath_score": 0.6533068418502808,
"tags... |
electromagnetism, classical-mechanics, waves, electromagnetic-radiation
Title: Why is the wave equation applicable to the EM wave? I was first exposed to the wave equation in which it was derived from a model of 1-D string. But afterwards the derived wave equation somehow was universal and thus applicable to EM waves.... | {
"domain": "physics.stackexchange",
"id": 77142,
"lm_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, classical-mechanics, waves, electromagnetic-radiation",
"url":... |
metabolism, nutrition, digestive-system
Title: Do I have to chew for digestion to kick in? Liquid nutrient-rich products (such as Soylent) are consumed without chewing. But if I have to chew to initiate digestion, are those nutrients really "processed"? If you had to chew to digest, then beverages like sugary sodas wo... | {
"domain": "biology.stackexchange",
"id": 5625,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "metabolism, nutrition, digestive-system",
"url": null
} |
# How did Feynman do this approximation $\sqrt{A^2 + \mu^2\varepsilon^2} =A\biggl( 1+\frac{1}{2}\,\frac{\mu^2\varepsilon ^2}{A^2}\biggr)$?
I was reading the 9th lecture of Feynman; here is the excerpt of my concern:
Let’s go back now to our particular example of the ammonia molecule in an electric field. Using the va... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407168145568,
"lm_q1q2_score": 0.8001879451068262,
"lm_q2_score": 0.8221891370573388,
"openwebmath_perplexity": 322.3305112562911,
"openwebmath_score": 0.9728295207023621,
"tag... |
# ODE PVI problem.
#### Chipset3600
##### Member
$$\displaystyle $y'sin(x)= yln(y)$$$
Hi, im trying to solve this one but i can't find the same result of the book:
Here is my solution:
#### Prove It
##### Well-known member
MHB Math Helper
\displaystyle \begin{align*} \frac{dy}{dx}\sin{(x)} &= y\ln{(y)} \\ \frac{1}{... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.978051741806865,
"lm_q1q2_score": 0.8192356601457969,
"lm_q2_score": 0.8376199592797929,
"openwebmath_perplexity": 8350.364975015238,
"openwebmath_score": 0.8569142818450928,
"tag... |
The area of an equilateral triangle ABC is 17320.5 cm2. With each vertex of the triangle as centre, a circle is drawn with radius equal to half the length of the side of the triangle (see Fig. 12.28). Find the area of the shaded region. (Use π = 3.14 and $$\sqrt{3}$$ = 1.73205)
Asked by Pragya Singh | 1 year ago | 10... | {
"domain": "elitedigitalstudy.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9678992877271975,
"lm_q1q2_score": 0.806574290261078,
"lm_q2_score": 0.8333246035907933,
"openwebmath_perplexity": 1865.9931757855356,
"openwebmath_score": 0.6564432978630066,
... |
imu, sensor-msgs
Title: sensor_msgs/Imu Frame of reference?
What is the frame of reference for sensor_msgs/Imu?
It seems vague.
If the gyro rotate in counter clockwise direction around +Z direction is angular_velocity.z positive or negative?
If the robot is stationary then would linear_acceleration.z be +9.8 m/s^2 o... | {
"domain": "robotics.stackexchange",
"id": 27351,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "imu, sensor-msgs",
"url": null
} |
of sinusoidals (Euler's Fo. The ordinates of the Fourier transform are scaled in various ways but a basic theorem is that there is a scaling such that the mean square value in the time domain equals the sum of squared values in the frequency domain (Parseval's theorem). In this video sequence Sal works out the Fourier ... | {
"domain": "svc2006.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9918120917924487,
"lm_q1q2_score": 0.8286426725613073,
"lm_q2_score": 0.8354835350552603,
"openwebmath_perplexity": 481.19136003622214,
"openwebmath_score": 0.8666015863418579,
"tags": nu... |
particle-physics, charge, standard-model, elementary-particles
Title: How do particles get their charge?
How does an electron get its charge?
And how can it maintain that charge for very long (infinite) periods of time?
And how come a neutron has no charge since and a proton does? They are both made of the same type... | {
"domain": "physics.stackexchange",
"id": 30808,
"lm_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, charge, standard-model, elementary-particles",
"url": null
} |
c++, performance, parsing
Title: Fast .slk (SYLK) file parser For my project I need a (partial) .slk (SYLK) parser which need to load 10+ fairly large tables (30.000-50.000 lines) quickly. The subset is very limited to just the following format:
ID;PWXL;N;E
Always first and it's only important if "ID" is there
B;... | {
"domain": "codereview.stackexchange",
"id": 29716,
"lm_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++, performance, parsing",
"url": null
} |
special-relativity, particle-physics, energy-conservation, particle-detectors
Title: Caculating masses of unstable particles I learned that if an unstable particle $A$ decays to $N$ particles $i=1,2,3..N$ in the final state, i.e.
$$A \rightarrow 1 +2+...N,$$
then the invariant mass W of the final state particles is gi... | {
"domain": "physics.stackexchange",
"id": 61613,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "special-relativity, particle-physics, energy-conservation, particle-detectors",
... |
automata, finite-automata, pumping-lemma
Title: How does $xy^0z = λ$ not contradict $y \ne λ$ in the pumping lemma? I have just started out theory of automata in my university and we are studying the pumping lemma.
From what I have understood, the lemma states that $y \neq \lambda$ (where $\lambda$ is the empty string... | {
"domain": "cs.stackexchange",
"id": 19570,
"lm_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, pumping-lemma",
"url": null
} |
structural-engineering, beam, aircraft-design
$$\frac{\partial M}{\partial C} = <l_1+l_2+l_3-x>$$
Finally, we have everything we need. To find the deflection at A, we simply take Castigliano's theorem regarding the energy:
$$U = \int^L_0 \frac{M(x)^2}{2EI(x)}dx$$
And therefore the deflection is equal to $\frac{\parti... | {
"domain": "engineering.stackexchange",
"id": 2136,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "structural-engineering, beam, aircraft-design",
"url": null
} |
javascript, jquery, asp.net
$(this).on('beforeunload', function (e) {
// Only return string if allowedWaitTime has elapsed
if (e.timeStamp - timeStamp > allowedWaitTime) {
return 'message';
}
});
}).call(window, jQuery); Interesting question,
I think the biggest thing is that c... | {
"domain": "codereview.stackexchange",
"id": 9112,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, asp.net",
"url": null
} |
homework-and-exercises, rocket-science, estimation, satellites, propulsion
Title: Launch small satellite? I want to build a small satilite and launch it into low space orbit. Nothing 'too fancy' a Raspberry Pi to power the systems, camera which'all transmit video and also a radio reviver and transmitter, maybe a small... | {
"domain": "physics.stackexchange",
"id": 33591,
"lm_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, rocket-science, estimation, satellites, propulsion",
"ur... |
Unit Root Tests
Test Simulated Data for a Unit Root
This example shows how to test univariate time series models for stationarity. It shows how to simulate data from four types of models: trend stationary, difference stationary, stationary (AR(1)), and a heteroscedastic, random walk model. It also shows that the test... | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9899864278996301,
"lm_q1q2_score": 0.8116832683445702,
"lm_q2_score": 0.8198933293122507,
"openwebmath_perplexity": 2333.2908479095922,
"openwebmath_score": 0.7597774863243103,
"tags":... |
fluid-dynamics, pressure, fluid-statics
Title: Static pressure in a multi phase suspension I have a headscratcher: Suppose you have a suspension, say sand dispersed in water. Looked at as a bulk, over the whole volume, the density would be higher than water. Do we expect a higher pressure near the botom of the vessel... | {
"domain": "physics.stackexchange",
"id": 49182,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics, pressure, fluid-statics",
"url": null
} |
deep-learning, convolutional-neural-network, backpropagation
Title: Question about bias in Convolutional Networks I am trying to figure out how many weights and biases are needed for CNN.
Say I have a (3, 32, 32)-image and want to apply a (32, 5, 5)-filter.
For each feature map I have 5x5 weights, so I should have 3 x... | {
"domain": "datascience.stackexchange",
"id": 8221,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "deep-learning, convolutional-neural-network, backpropagation",
"url": null
} |
This form will calculate the position of a Center of Gravity (CG) on a model airplane wing as measured from the leading edge of the Root Chord. What is the range. A value-at-risk measure is an algorithm with which we calculate a portfolio’s value-at-risk. Time, Material & Labor Savings Calculator. This free online calc... | {
"domain": "lasalsese.it",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639702485928,
"lm_q1q2_score": 0.8352183317639686,
"lm_q2_score": 0.8596637559030338,
"openwebmath_perplexity": 771.0403648806702,
"openwebmath_score": 0.7472466826438904,
"tags": n... |
pcl
Original comments
Comment by allenh1 on 2012-05-31:
Why can't I visualize this in RVIZ?
Comment by DimitriProsser on 2012-05-31:
It is visualized as the sensor_msgs/PointCloud2 datatype.
Comment by allenh1 on 2012-05-31:
Yes, but I'm not getting messages... I see the topic, but I don't get the data.
Comment by Eri... | {
"domain": "robotics.stackexchange",
"id": 9615,
"lm_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",
"url": null
} |
nielsen-and-chuang, shors-algorithm, quantum-phase-estimation, modular-exponentiation, order-finding
My understanding is that, $L$ is the number of bits needed to specify $N$, ie., second register has $L$ qubits, such that the unitary operator $U$ is $2^L-1\times 2^L-1$.
Please refer to Pages 226,228, Quantum Computat... | {
"domain": "quantumcomputing.stackexchange",
"id": 3703,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nielsen-and-chuang, shors-algorithm, quantum-phase-estimation, modular-exp... |
c++, multithreading, thread-safety, logging, c++20
template <typename... Args>
void error(const char* format, Args... args)
{
log(format, " [ERROR] ", std::forward<Args>(args)...);
}
};
logger.cpp
#include "logger.h"
#include <algorithm>
#include <mutex>
namespace TIME
{
void get_time(char* buf)
... | {
"domain": "codereview.stackexchange",
"id": 45459,
"lm_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, thread-safety, logging, c++20",
"url": null
} |
neural-network, cross-validation, hyperparameter-tuning
Title: What is the best practice for tuning hyperparameters using validation data? I'm building a binary classifier, using task-transfer from resnet and a total training set of 300 images.
Initially I put aside 100 images as validation, and tuned the hyperparamet... | {
"domain": "datascience.stackexchange",
"id": 9101,
"lm_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, cross-validation, hyperparameter-tuning",
"url": null
} |
array, vba, excel
Title: Loop between two Arrays and change values based on condition Instead of using 45 IF conditions , I put my two ranges into variant arrays.
Then I used the below code to loop between them and change values of the first array arr1 second elements based on condition.
the first range is only 10K ro... | {
"domain": "codereview.stackexchange",
"id": 43707,
"lm_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, vba, excel",
"url": null
} |
optics
Title: How could I translate a field of view value into a magnification value? When I zoom in with Stellarium, it indicates a field of view (FOV) value in degrees, but most binoculars and telescopes are advertised with value like "nX magnification power."
How could I translate this value so I get an idea of wha... | {
"domain": "physics.stackexchange",
"id": 3125,
"lm_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
} |
quantum-mechanics, symmetry, harmonic-oscillator, hamiltonian-formalism, fourier-transform
You can imagine Condon's delight when he discovered this uniform rotation, Proc. Natl. Acad. Sci. USA 23 (1937) 158–164. Feynman learned this in graduate school and could never get over it: he kept teaching it to undergraduates... | {
"domain": "physics.stackexchange",
"id": 48279,
"lm_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, symmetry, harmonic-oscillator, hamiltonian-formalism, fourier-t... |
# Cauchy-Bunyakovsky-Schwarz inequality
1. Oct 9, 2008
### phyguy321
absolute value( $$\int{fg}$$) $$\leq$$[($$\int{f}$$$$^{2}$$)($$\int{g}$$$$^{2}$$)]$$^{1/2}$$
all integrals are from a to b
does anyone have any idea of a proof for this?
2. Oct 9, 2008
### morphism
3. Oct 16, 2008
### morphism
Bump? What more... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.98504290989414,
"lm_q1q2_score": 0.800709190353341,
"lm_q2_score": 0.8128673201042492,
"openwebmath_perplexity": 817.7696882418337,
"openwebmath_score": 0.6481567025184631,
"tags":... |
in Python 2020 Course. We'll be discussing how C2FO has built a suite of risk management tools for underwriting and portfolio management using the PyData ecosystem, rpy2 (for integrating R), and Spyre (for building a simple web application). Stock Portfolio Risk Analysis Django Project. To set up the first part of the ... | {
"domain": "bko-konzerte.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9854964228644457,
"lm_q1q2_score": 0.8169162303742715,
"lm_q2_score": 0.8289388083214156,
"openwebmath_perplexity": 2427.45846134871,
"openwebmath_score": 0.20544473826885223,
"tags"... |
completely the case. Exercise 3: Projectile motion under the action of air resistance - Part 1 Consider now a spherical object launched with a velocity V forming an angle theta with the horizontal ground. First up, a video of a projectile motion. Elsberry “”” class LMatrix: “”” LMatrix. Workshop: Projectile Motion. Its... | {
"domain": "popolariliberieforti.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9525741268224331,
"lm_q1q2_score": 0.8019013346475256,
"lm_q2_score": 0.8418256512199033,
"openwebmath_perplexity": 949.0239320175493,
"openwebmath_score": 0.34371331334114... |
# Random real numbers that sum up to specific value [duplicate]
In here, it works with "Integer".
What if I want 5 positive real numbers that sum to 1?
RandomChoice[IntegerPartitions[100, {5}]]/100.
That will work. But only up to two decimals places.
RandomChoice[IntegerPartitions[10^n, {5}]]/10.^n
it works fin... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9591542864252023,
"lm_q1q2_score": 0.822731952916366,
"lm_q2_score": 0.8577681031721325,
"openwebmath_perplexity": 645.6875682112762,
"openwebmath_score": 0.5767030715942383,
"tags... |
javascript, callback, promise
pledge.vows = vows;
return pledge;
}
could be
function create(vows) {
return new Pledge( vows );
}
This: in a format suitable for an argument passed to a vow function. and this if (value.length == 1) { value = value[0]; drive me nuts. I dont understand from the code why... | {
"domain": "codereview.stackexchange",
"id": 8268,
"lm_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, callback, promise",
"url": null
} |
ros, gazebo, gazebo-ros
It lies in a subfolder
models
-hills
-materials
-scripts
-textures
-mesh
-hills.dae
model.config
model.sdf
Regards,
Christian
Originally posted by cyborg-x1 with karma: 1376 on 2015-06-25
This answer was ACCEPTED on the original site
Post score: 2 | {
"domain": "robotics.stackexchange",
"id": 22006,
"lm_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, gazebo, gazebo-ros",
"url": null
} |
ros, pr2, ros-kinetic, grasp
geometry_msgs::TwistStamped lift;
lift.header.frame_id = "base_footprint";
lift.twist.linear.z = 1.0;
pick->setLiftMotion(lift, 0.05, 0.10);
current_state = pick.get();
t.add(std::move(pick));
}
If I understand well, the grasp generator find possible grasp, these info... | {
"domain": "robotics.stackexchange",
"id": 35109,
"lm_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, pr2, ros-kinetic, grasp",
"url": null
} |
cryptography, encryption
Each party requires only $O(n)$ computation, but an eavesdropper who wishes to find $K_i$ needs to try out half the puzzles on average to calculate the right key (the eavesdropper does not know which message Bob chose to decrypt), so the eavesdropper requires $\Theta(n^2)$ computation on avera... | {
"domain": "cs.stackexchange",
"id": 6597,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cryptography, encryption",
"url": null
} |
human-anatomy, human-physiology, blood-circulation, physiology
Title: Common site for atherosclerosis My book( textbook of anatomy abdomen and lower limb 2nd edition - by vishram Singh pg.no:286) says:
Acute arterial occlusion: It is mostly caused by embolism or thrombosis. It usually occurs in the femoral artery whe... | {
"domain": "biology.stackexchange",
"id": 6387,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-anatomy, human-physiology, blood-circulation, physiology",
"url": null
} |
general-relativity, black-holes, mass-energy, event-horizon
So you could make a black hole from a light beam, but this isn't the same as making a black hole from a photon. The trouble is that while it's tempting to think of a photon as a particle like an electron, this is a very poor way to describe light in most circ... | {
"domain": "physics.stackexchange",
"id": 23671,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, black-holes, mass-energy, event-horizon",
"url": null
} |
forces, lagrangian-formalism, potential, variational-principle
behaves like a (non-relativistic) kinetic term.
The case $n=1$ of a friction force proportional to the velocity
$$\tag{7} {\bf F}~=~-k \dot{\bf r}, \qquad k~>~0,$$
is discussed in e.g. this Phys.SE post and this mathoverflow post. More generally, using ve... | {
"domain": "physics.stackexchange",
"id": 14439,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "forces, lagrangian-formalism, potential, variational-principle",
"url": null
} |
c, parsing, shell
*pString1 = concat(*pString1, " ");
p++;
} else {
strcpy(temp, *(ptr + j));
b1 = false;
int q = j;
for (e = 0; *(... | {
"domain": "codereview.stackexchange",
"id": 19756,
"lm_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, parsing, shell",
"url": null
} |
c#, performance, recursion, tree
Title: Binary Tree Maximum Turns Given any binary tree, what is the maximum number of turns possible in any path from root to any leaf?
A turn is when the path involves moving from left branch to right or vice-versa; i.e. the number of angels in a path. A straight line path has no turn... | {
"domain": "codereview.stackexchange",
"id": 28244,
"lm_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#, performance, recursion, tree",
"url": null
} |
it 's unnecessary to load amsmath you! Symbols group, click the arrow next to the reader and explain its usage simplified versions set! Used in the realm of Mathematics and in mathematical logic consider the set is written a. Become familiar with these Venn diagram symbols use set notation, but only the notable! The ar... | {
"domain": "sieteaguasfs.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810451666345,
"lm_q1q2_score": 0.8247873421119447,
"lm_q2_score": 0.8705972600147106,
"openwebmath_perplexity": 1145.0387898359904,
"openwebmath_score": 0.680533766746521,
"... |
Solution
We will set up the four triple integrals needed to find the center of mass (i.e., to compute $$M\text{,}$$ $$M_{yz}\text{,}$$ $$M_{xz}$$ and $$M_{xy}$$) and leave it to the reader to evaluate each integral. Because of symmetry, we expect the $$x$$- and $$y$$- coordinates of the center of mass to be 0.
While ... | {
"domain": "uleth.ca",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9926541740774665,
"lm_q1q2_score": 0.8206389195004751,
"lm_q2_score": 0.8267118004748677,
"openwebmath_perplexity": 627.3041379696922,
"openwebmath_score": 0.9105890393257141,
"tags": n... |
a computer depends principally on the number of multiplications involved. Vincent Poor, Fellow, IEEE Abstract—The nonlinear Fourier transform, which is also known as the forward scattering transform, decomposes a pe-riodic signal into nonlinearly interacting waves. FFT onlyneeds Nlog 2 (N). The Fast Fourier Transform (... | {
"domain": "mpl-bauen.de",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9908743628803028,
"lm_q1q2_score": 0.8361940220815403,
"lm_q2_score": 0.8438951025545426,
"openwebmath_perplexity": 618.223011256596,
"openwebmath_score": 0.8325456380844116,
"tags"... |
machine-learning, hypothesis-class
The $1$st vector is $\begin{bmatrix} 1 \\ \vdots \\ 1 \end{bmatrix}$ which you can think of as $\begin{bmatrix} x_1^0 \\ \vdots \\ x_m^0 \end{bmatrix},$
the components of the $2$nd vector $\begin{bmatrix} x_1 \\ \vdots \\ x_m \end{bmatrix},$ i.e. $\begin{bmatrix} x_1^1 \\ \vdots \\ x... | {
"domain": "ai.stackexchange",
"id": 3987,
"lm_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, hypothesis-class",
"url": null
} |
# Unfolding Change of Base Formula Mystery
The property of logarithm to change its base and retain its equality is really amazing. To unveil this mystery we need to know how it works. Knowing this property makes us capable of solving hard problems in logarithmic equations.
Important properties to take note when deali... | {
"domain": "techiemathteacher.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9923043532767742,
"lm_q1q2_score": 0.8203497206347945,
"lm_q2_score": 0.8267118026095991,
"openwebmath_perplexity": 2518.8882859292253,
"openwebmath_score": 0.17694394290447235,
... |
quantum-mechanics, electromagnetism, optics, statistical-mechanics, scattering
Expression of transmission (or absorption) and problem exposed
Using the polarizability coefficients provided in the paper, I found $T \simeq exp(-51) \simeq 10^{-22}$ at $14.7$ µm for the transmission coefficient, which is way to small ! A... | {
"domain": "physics.stackexchange",
"id": 94294,
"lm_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, optics, statistical-mechanics, scattering",
... |
functional-programming, error-handling, typescript, type-safety, monads
},
result(data) {
result.textContent = data;
}
});
}
});
}
function makeResponse() {
const response = Request.incomplete();
setTimeout(function () {
respon... | {
"domain": "codereview.stackexchange",
"id": 34989,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "functional-programming, error-handling, typescript, type-safety, monads",
"ur... |
units, dimensional-analysis
Title: Is it possible to change units in order to simplify the value of an exponential? I have the equation
$$F=e^{E_0 i \pi}, $$
where $E_0$ is the time-independent electric field, and $F$ is just some important value I am trying to calculate. Obviously, it would be better if $F=-1$, but ... | {
"domain": "physics.stackexchange",
"id": 14928,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "units, dimensional-analysis",
"url": null
} |
performance, c
return newNode;
}
Declarations of Node Structs
It might have been easier to write the struct declarations as
typedef struct node
{
int point;
char name[30];
struct node *next;
struct node *prev;
} Node;
typedef struct list
{
Node *head;
Node *tail;
int count;
} List;
Comp... | {
"domain": "codereview.stackexchange",
"id": 37151,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, c",
"url": null
} |
terminology, meteorology
I've tried to illustrate the relationships with insolation and temperature here:
There are some other ways too:
Ecological. Scientists who study the behaviour of organisms (hibernation, blooming, etc.) adapt to the local climate, sometimes using 6 seasons in temperature zones, or only 2 in p... | {
"domain": "earthscience.stackexchange",
"id": 241,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "terminology, meteorology",
"url": null
} |
c, beginner, recursion, memory-management
Title: Reversing a linked list by iteration and recursion From my original question on Stack Overflow: Is my implementation of reversing a linked list correct?
I'm a beginner at C and I'd like to know about style, and correctness of the reverse algorithms. What about memory ma... | {
"domain": "codereview.stackexchange",
"id": 1736,
"lm_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, recursion, memory-management",
"url": null
} |
Substitute the exponential function:
Get the same result by applying LaplaceTransform to the FractionalD of Exp:
## Options(1)
### Assumptions(1)
FractionalD may return a ConditionalExpression:
Restricting parameters using Assumptions will simplify the output:
## Applications(2)
Calculate the half-order fraction... | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9845754501811438,
"lm_q1q2_score": 0.8026578929961217,
"lm_q2_score": 0.8152324871074608,
"openwebmath_perplexity": 3448.8539593161895,
"openwebmath_score": 0.8219518065452576,
"tags": n... |
javascript, html, css, html5
Minor issues and typos
In general your code is clean and reasonably easy to read. You have declared all your variables so that they do not end up in the global scope (if you used the advice above). Your functions do what I expect them to do based on their names. Your css is reasonably spar... | {
"domain": "codereview.stackexchange",
"id": 30370,
"lm_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, html, css, html5",
"url": null
} |
$$C^2_w$$ # of selections of 2 women out of $$w$$ employees;
$$C^2_{10}$$ total # of selections of 2 representatives out of 10 employees.
Q is $$\frac{C^2_w}{C^2_{10}}>\frac{1}{2}$$ --> $$\frac{\frac{w(w-1)}{2}}{45}>\frac{1}{2}$$ --> --> $$w(w-1)>45$$ --> $$w>7$$?
(1) More than 1/2 of the 10 employees are women --> ... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes.\n2. Yes.\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 1,
"lm_q1q2_score": 0.8221891261650247,
"lm_q2_score": 0.8221891261650247,
"openwebmath_perplexity": 2148.345862080422,
"openwebmath_score": 0.8347686529159546,
"tags": null,
"url":... |
human-biology, metabolism, muscles
The actual value of the (energy used by heart) / (energy used by skeletal muscles during exercise) depends on what exercise you do and how efficiently you do it. The change in the ratio between inactivity and activity depends on how much muscle mass you have (more muscle uses more en... | {
"domain": "biology.stackexchange",
"id": 386,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-biology, metabolism, muscles",
"url": null
} |
nuclear-physics, fusion
Title: Nuclear Fusion Fuels I have seen some possible fuels for nuclear fusion.
My questions are:
Are there other fuels available even theoretically or the list of candidates is limited?
What are the requirements that a "substance" should meet in order to be able to be used as fuel for nuclear... | {
"domain": "physics.stackexchange",
"id": 36544,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nuclear-physics, fusion",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.