text stringlengths 1 1.11k | source dict |
|---|---|
c, linux, networking
// compile filter
if( pcap_compile( temp->cap_handle, &temp->fp, line_buffer, 0, netp ) < 0 ){
printf( "Error compiling expression: %s", line_buffer );
pcap_close( temp->cap_handle );
free( temp );
continue;
}
// assign f... | {
"domain": "codereview.stackexchange",
"id": 3683,
"lm_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, networking",
"url": null
} |
c#, immutability, ftp
}
}
}
internal static string CreateFTPURL(string hostname, Int16 port, string folder)
{
// I've run into a couple cases already where I forgot that I was naming my folders "folder/" instead of "folder" or "/folder" or "/folder/",
// is there a better way?
... | {
"domain": "codereview.stackexchange",
"id": 20787,
"lm_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#, immutability, ftp",
"url": null
} |
reinforcement-learning, terminology, definitions
Title: What is the relation between an environment, a state and a model? In particular, I would like to have a simple definition of "environment" and "state". What are the differences between those two concepts? Also, I would like to know how the concept of model relate... | {
"domain": "ai.stackexchange",
"id": 655,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, terminology, definitions",
"url": null
} |
gravity, newtonian-gravity, orbital-motion, potential
On the image you may see the initial position and velocity $\vec{r}_0$ and $\vec{v}_0$ respectively, as well as $r_{min}$ and $r_{max}$ which correspond to perihelions and aphelions.
As for defining angular momentum and the Laplace-Runge-Lenz vector (which you call... | {
"domain": "physics.stackexchange",
"id": 33073,
"lm_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, newtonian-gravity, orbital-motion, potential",
"url": null
} |
Additionally, the rows of $J$ are the scalars in linear combinations of the rows of $A$ that create the rows of $B$. That is, the rows of $J$ record the net effect of the sequence of row operations that takes $A$ to its reduced row-echelon form, $B$. This can be seen in the equation $JA=B$ (Theorem PEEF). As such, the ... | {
"domain": "ups.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969655605173,
"lm_q1q2_score": 0.8259597883980555,
"lm_q2_score": 0.8397339736884711,
"openwebmath_perplexity": 190.30755514166773,
"openwebmath_score": 0.8899307250976562,
"tags": null,... |
c++, object-oriented, classes
if (row > 0 && col < 6 && board[row-1][col+2] == -3)return true;
if (row > 1 && col < 7 && board[row-2][col+1] == -3)return true;
if (row < 7 && col < 6 && board[row+1][col+2] == -3)return true;
if (row < 6 && col < 7 && board[row+2][col+1] ... | {
"domain": "codereview.stackexchange",
"id": 39176,
"lm_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, classes",
"url": null
} |
• Thanks for your answer! I think what I am asked to do is to generate or simulate a Binomial distribution from a Uniform distribution. I can easily using the theorem provided in my post to simulate an exponential function by inverting by hand its expression, then generating random numbers ,defining the inverse exponen... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.975201841245846,
"lm_q1q2_score": 0.8327372889418112,
"lm_q2_score": 0.8539127529517043,
"openwebmath_perplexity": 490.8716054286398,
"openwebmath_score": 0.7761680483818054,
"tags... |
algorithms, time-complexity, upper-bound
Then, after you got some intuition on how $T(n)$ behaves, formulate it as a summation, and find a closed form for it. I will give the example of how to do it for the "best case" scenario:
Examples
$T(2) = T(1) + c_1 \cdot 2$
$T(4) = T(2) + c_1 \cdot 4 = T(1) + c_1 \cdot 4 + c_1... | {
"domain": "cs.stackexchange",
"id": 18224,
"lm_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, time-complexity, upper-bound",
"url": null
} |
java, linked-list, generics
ListElement<T> foundElement = tail;
for (int i=-1; i > position; i--){
foundElement = foundElement.getPrevious();
}
insert(value, foundElement);
}
private boolean shouldBeAppend(int position){
return (listSize == 0) || (position == -1) |... | {
"domain": "codereview.stackexchange",
"id": 5245,
"lm_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, linked-list, generics",
"url": null
} |
vba
HashItems = arrHolder
End Function
Public Sub Add(ByVal sKey As String, oItem As Variant, Optional bOverwrite As Boolean = False)
If Not pCollector.Exists(sKey) Then
pCollector.Add sKey, oItem
ElseIf bOverwrite Then
pCollector.Item = oItem
End If
pDirtyHierarchy = True
End Sub
Publi... | {
"domain": "codereview.stackexchange",
"id": 24827,
"lm_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",
"url": null
} |
special-relativity, spinors
Even the most everyday and mundane EM calculations (without needing to do Lorentz transformations) can benefit from this: I have in my time written many lines of code to simulate electromagnetic propagation, and I use the following representation almost exclusively in my codes: code becomes... | {
"domain": "physics.stackexchange",
"id": 31327,
"lm_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, spinors",
"url": null
} |
that are parallel to each other and are the same length. this parallelogram would literally be 5 times 6. This is possible to create the area of a parallelogram by using any of its diagonals. In this section we will discuss parallelogram and its theorems. It's as if a rectangle had a long, busy … Hence, area of a rhomb... | {
"domain": "trends-magazine.net",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668684574636,
"lm_q1q2_score": 0.808934730697203,
"lm_q2_score": 0.8244619306896955,
"openwebmath_perplexity": 573.0564525336912,
"openwebmath_score": 0.6392198801040649,
... |
c#
logger.Audit();
if (!logger.Success)
{
throw logger.Exception;
}
foreach (ChangeLog log in logger.Changes)
{
LogAction(log.ObjectId, log.ValueNew, log.ValueOld, log.Property, className, DateTime.Now);
}
... | {
"domain": "codereview.stackexchange",
"id": 8074,
"lm_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
} |
newtonian-mechanics, reference-frames, soft-question, inertia
Why does a body have inertia?
I looked up this site and several others, but could not find any resources. Philosophical aspect
Physics typically cannot answer "why"-questions very well.
Physics observes phenomena in the world, creates descriptions of the b... | {
"domain": "physics.stackexchange",
"id": 76610,
"lm_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, soft-question, inertia",
"url": null
} |
measurement, bell-basis
$$
\begin{pmatrix}
-\frac{\sqrt{2}}{2} & 0 & \frac{\sqrt{2}}{2} & 0 \\
0 & -\frac{\sqrt{2}}{2} & 0 & \frac{\sqrt{2}}{2} \\
\frac{\sqrt{2}}{2} & 0 & \frac{\sqrt{2}}{2} & 0 \\
0 & \frac{\sqrt{2}}{2} & 0 & \frac{\sqrt{2}}{2}
\end{pmatrix}
$$
The columns are the eigenvectors associated with eigenva... | {
"domain": "quantumcomputing.stackexchange",
"id": 2849,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "measurement, bell-basis",
"url": null
} |
quantum-algorithms, mathematics, cryptography, cryptocurrency, quantum-money
This assumes the counterfeiter uses what we call a "simple counterfeiting attack," which means a one-shot attempt to transform one copy of a money state into two. (I interpret your question to be about such attacks.)
The attack of Brodutch, ... | {
"domain": "quantumcomputing.stackexchange",
"id": 71,
"lm_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, mathematics, cryptography, cryptocurrency, quantum-money... |
orbital-mechanics, orbital-elements, positional-astronomy, python
Sun -453731.5 1039601.2 451057.1 -0.015 -0.002 0.0
Earth 1.4764e+08 2.1455e+07 9.3005e+06 -4.9362 26.9295 11.6751
Jupiter -2.2857e+07 -7.2214e+08 -3.0898e+08 12.9012 0.3382 -0.1690
Mumbai ... | {
"domain": "astronomy.stackexchange",
"id": 3984,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbital-mechanics, orbital-elements, positional-astronomy, python",
"url": null... |
Feynman tells the story in one of his books of anecdotes.
http://www.ee.ryerson.ca/~elf/abacus/feynman.html
$12$ is a very good first approximation and the linear term of the series expansion suffices to get high precision.
$$\sqrt[3]{1728 + d} = 12\sqrt[3]{1+x} = 12 + 4x + O(x^2)$$
where $d = 1.03$ and $x = \frac{... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9736446471538802,
"lm_q1q2_score": 0.8683070583624297,
"lm_q2_score": 0.891811053345418,
"openwebmath_perplexity": 558.7350380376656,
"openwebmath_score": 0.8204992413520813,
"tags... |
periodic-trends, ionization-energy
I don't understand how the poor shielders can INCREASE ionization energy. I get that they do not shield as much as $s$ or $p$ subshells, but after all when we go from Al to Ga, Ga not only has the $4s$ electrons for shielding effect, but now there are even MORE electrons that will sh... | {
"domain": "chemistry.stackexchange",
"id": 17415,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "periodic-trends, ionization-energy",
"url": null
} |
c++11, timer
inline bool operator<(const TimeEvent& l, const TimeEvent& r)
{
return l.nextTimepoint < r.nextTimepoint;
}
class Timer
{
public:
Timer();
virtual ~Timer();
unsigned int RegisterEvent(std::function<void(unsigned int p_id)>&& p_function,
std::chrono::seconds timeout ... | {
"domain": "codereview.stackexchange",
"id": 41911,
"lm_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++11, timer",
"url": null
} |
c#, .net, networking
Title: Implementing a good TCP Socket Server I'd like a code review on my very simple server application that validates whether the serial number retrieved from the client is a valid one or not.
Is there a better way to handle the start/stop on the service? If you look at my Start and Service me... | {
"domain": "codereview.stackexchange",
"id": 2573,
"lm_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#, .net, networking",
"url": null
} |
c++, c++11, game
The bug I've found is somewhat unfortunate, but easy to fix. Apart from that, there are a lot of little things that you could do to improve your code, but apart from point 1 I didn't spot anything that would require immediate changes. However, it would be nice if you'd strive to make this code portabl... | {
"domain": "codereview.stackexchange",
"id": 28894,
"lm_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, game",
"url": null
} |
atomic-physics, schroedinger-equation, potential-energy, hamiltonian
I don't understand why we must "prevent counting electron-electron interactions twice", I think we must count the potential of every electron with respect to the others.
Where is the mistake in my procedure? For a multi-particle system interacting vi... | {
"domain": "physics.stackexchange",
"id": 49740,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "atomic-physics, schroedinger-equation, potential-energy, hamiltonian",
"url": nu... |
multiply, and calculate... Case, you will need to Ace math in one Big Fat Notebook out fractions a... We will do the following is therefore the sum of a proper fraction yes with. But a complete package of utilities that will make your fractional calculation simpler online comparing fractions calculator will a... Multip... | {
"domain": "ribb.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307684643189,
"lm_q1q2_score": 0.8600206093554218,
"lm_q2_score": 0.8840392771633079,
"openwebmath_perplexity": 1292.9311629084923,
"openwebmath_score": 0.830685555934906,
"tags": n... |
java
// 3.4.2.1 SGTIN-96 Encoding Procedure. page 28.
if (serial_number.toString().length() > 1 && serial_number.toString().charAt(0) == '0') {
throw new IllegalArgumentException("serial number may not begin with 0");
}
int[] partitions = getPartitionsByCompanyPrefixLengthInDigits(c... | {
"domain": "codereview.stackexchange",
"id": 38361,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java",
"url": null
} |
electromagnetism, electric-fields, potential, dipole, dipole-moment
along the z-axis. A reasonable x-y plane with respect to the dipole axis =z-axis would be the symmetry plane perpendicular to the z-axis and symmetric to the charges so that the distance of any arbitrary point on this plane from one charge is the same... | {
"domain": "physics.stackexchange",
"id": 62573,
"lm_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, electric-fields, potential, dipole, dipole-moment",
"url": nul... |
python
Title: Python subclass method decoration Is this code Pythonic?
def emit_decorator(method, signal_name):
def decorated(self, *args, **kwargs):
retval = method(self, *args, **kwargs)
getattr(self, signal_name).emit()
return retval
return decorated
class Model(base.Transformer, No... | {
"domain": "codereview.stackexchange",
"id": 412,
"lm_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",
"url": null
} |
gazebo-1.9
Title: hokuyo model-based topic name
Hello every body,
I am trying to use the Hokuyo sensor for a multirobot simulation. I would like to have the laser publishing on a different topic based on the model name. Is it possible?
I tried to edit the sdf gathered from
laser tutorial
but it defines only a fixed t... | {
"domain": "robotics.stackexchange",
"id": 3578,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo-1.9",
"url": null
} |
Denote the element in the top center (now 1) in $A^n$ by $a_n$. From the matrice multiple and the diagonal values we can see that $$a_{n+1}=6^na_n+6^na_n=2*6^na_n$$ from this we can make the general nth element $$a_n=2*6^{n-1}*2*6^{n-2}*...*2*1=2^n*6^{(n-1)+(n-2)+...+1}=2^n*6^{\frac{n(n-1)}{2}}$$ Putting n=14 gives: $$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9744347912737017,
"lm_q1q2_score": 0.8376862707971923,
"lm_q2_score": 0.8596637541053281,
"openwebmath_perplexity": 810.8654861081717,
"openwebmath_score": 0.8153538703918457,
"tag... |
quantum-chemistry, theoretical-chemistry
I guess that the sine in \ref{A.21} follows integration of the (real) cosine in Euler's expansion. In line with this, \ref{A.21} is multiplied by a factor of $2\pi$.
I will keep at this but I think if it puzzles me, then others may have stumbled over it so I am posting.
Hopeful... | {
"domain": "chemistry.stackexchange",
"id": 10626,
"lm_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-chemistry, theoretical-chemistry",
"url": null
} |
standard-model, charge, notation
The notation you gave does NOT use the factor of 1/2 that I put in brackets!
Let's take a look at the examples you gave: | {
"domain": "physics.stackexchange",
"id": 8296,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "standard-model, charge, notation",
"url": null
} |
All fields are required. students to learn by investigating situations with a real-world context. Because x is the exponent, if b is greater than 1, the output will grow very quickly for each small increase in the input value. You analyzed the importance of your equation and prediction, and showed how math can be used ... | {
"domain": "delleparoleguerriere.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713891776497,
"lm_q1q2_score": 0.8210508857373975,
"lm_q2_score": 0.8333245994514082,
"openwebmath_perplexity": 529.5259514880022,
"openwebmath_score": 0.47181218862533... |
electricity, electric-circuits, electric-current
One example of where it is necessary is in terms of arc protection. 110V power lines are 110V RMS. That RMS voltage implies a peak-to-peak voltage of 155.54V. When designing systems to deal with the potential of an arc forming, one has to consider the peak voltage. | {
"domain": "physics.stackexchange",
"id": 41572,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electricity, electric-circuits, electric-current",
"url": null
} |
random-forest, linear-regression
Title: Has anyone heard of a model similar to a random forest which fits a linear regression model in its leaf nodes? That is, each leaf node in each decision tree learns a linear model.
Anyone heard of this kind of model? Even better, anyone know of implementations? M5P Model Trees ar... | {
"domain": "datascience.stackexchange",
"id": 9237,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "random-forest, linear-regression",
"url": null
} |
python, beginner, unit-testing, palindrome
Title: Unit test cases for Python palindrome I'm new to Python 3, and I tried to test if my palindrome code works and passes most of the edge cases, so I created the following 2 Python files. When I ran the python3 test_palindromes.py on the terminal, it shows that 2 tests pa... | {
"domain": "codereview.stackexchange",
"id": 28001,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, unit-testing, palindrome",
"url": null
} |
The following is from Cauchy-Schwarz Masterclass by Michael J. Steele. The book also has a small motivation for this proof, and I highly recommend anyone to read it.
For any $$u, v$$ we have $$(u-v, u-v) \ge 0.$$
Rearranging, we have
$$(u, u) + (v, v) \ge 2 (u, v)$$
or $$||u||^2 + ||v||^2 \ge 2 (u, v).$$
Now, ther... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9783846628255123,
"lm_q1q2_score": 0.8276571138958826,
"lm_q2_score": 0.8459424450764199,
"openwebmath_perplexity": 303.4294072342364,
"openwebmath_score": 0.9843632578849792,
"tag... |
ros2
[move_group-3] [INFO] [1685550204.807110715] [moveit.plugins.moveit_simple_controller_manager]: Returned 1 controllers in list
[move_group-3] [INFO] [1685550204.807181715] [moveit.plugins.moveit_simple_controller_manager]: Returned 1 controllers in list
[move_group-3] [INFO] [1685550204.807390815] [moveit_ros.tra... | {
"domain": "robotics.stackexchange",
"id": 38410,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2",
"url": null
} |
• $+1$ just for the "go go gadget calculus," because I get the reference. XD – Frpzzd Sep 15 '18 at 23:54
• Also... How do you render $\csch$? – Mason Sep 15 '18 at 23:58
• You can always use \operatorname{csch} – MPW Sep 16 '18 at 0:09
• This and This seem like they could be good resources. – Mason Sep 21 '18 at 23:27... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668695588648,
"lm_q1q2_score": 0.8397327852670288,
"lm_q2_score": 0.8558511414521923,
"openwebmath_perplexity": 654.3673132301258,
"openwebmath_score": 0.9451966285705566,
"tag... |
Yes; the Fibonnaci recursion is linear , so that it can be expressed as a $2\times 2$-matrix. The matrix is diagonalizable, so that its powers have a relatively nice form.
From wiki:
$\frac{1}{\sqrt{5}}(\frac{1+\sqrt{5}}{2})^n-\frac{1}{\sqrt{5}}(\frac{1-\sqrt{5}}{2})^n$
There is a pretty slick way of finding a close... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9886682471364099,
"lm_q1q2_score": 0.8238815648965571,
"lm_q2_score": 0.8333245932423309,
"openwebmath_perplexity": 249.29241115313758,
"openwebmath_score": 0.938567578792572,
"tag... |
c#, object-oriented, design-patterns, classes, interface
You must investigate that, and decide the best approach that would be feasible to your current project.
As kick-starter that would give you some ideas after looking at your class, and interfaces, without knowing your actual implementations, I could say the safes... | {
"domain": "codereview.stackexchange",
"id": 40330,
"lm_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, design-patterns, classes, interface",
"url": null
} |
genetics, bioinformatics
Title: Obtaining a mapping of RefSeq ACs to Uniprot ACs I am trying to obtain a mapping for RefSeq Accession Numbers to Uniprot Accession Numbers.
I can write a script to do this for a list of RefSeq ACs like this:
#!/usr/bin/python
"""
Derived from:
http://www.uniprot.org/help/programmatic... | {
"domain": "biology.stackexchange",
"id": 5257,
"lm_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, bioinformatics",
"url": null
} |
meteorology
The second image is after a SSW and one that indicates the instability of the polar vortex(it's weakened state) and split vortices over Western Canada and Northern Europe. (Geopotential height increase over the poles).
Copyright Owner for NCAR NOAA images
NOAA NCAR URL | {
"domain": "earthscience.stackexchange",
"id": 1643,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology",
"url": null
} |
meteorology, wind, era, python, visualization
#Helpful links where I found much of this code
#https://confluence.ecmwf.int/display/CKB/How+to+plot+GRIB+files+with+Python+and+matplotlib
#https://earthscience.stackexchange.com/questions/7012/plotting-wind-barbs-in-python
#------------------------------------------------... | {
"domain": "earthscience.stackexchange",
"id": 1961,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology, wind, era, python, visualization",
"url": null
} |
We can rearrange the conclusion of this theorem to read $A=UD\adjoint{U}$. Recall that a unitary matrix can be viewed as a geometry-preserving transformation (isometry), or more loosely as a rotation of sorts. Then a matrix-vector product, $A\vect{x}$, can be viewed instead as a sequence of three transformations. $\adj... | {
"domain": "aimath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9948603887500461,
"lm_q1q2_score": 0.8333149162975613,
"lm_q2_score": 0.8376199572530449,
"openwebmath_perplexity": 187.11461063335798,
"openwebmath_score": 0.9267138242721558,
"tags": nu... |
Just in case you don’t remember the cosine law, we prove it along the way. Students move around the house, answering multiple choice questions. Contents: ♦ Teacher Instructions and FAQ ♦ 3 Levels to decode: Multiple Choice, Message Decoder, and Maze ♦ Student Recording Sheet and Teacher Answer Key ♦ Link to an optional... | {
"domain": "otticamuti.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9867771774699747,
"lm_q1q2_score": 0.8044528059651472,
"lm_q2_score": 0.8152324803738429,
"openwebmath_perplexity": 909.6973263622766,
"openwebmath_score": 0.5671159029006958,
"tags": ... |
# Find all $n \in \mathbb{Z^+}$ such that $\phi(n)=4$
I know that there is a similar post, but I 'm trying a different proof. I will write $$P$$ for the set of all positive prime numbers.
Question: If $$\phi$$ is Euler's Phi Function, we want to find all $$n \in \mathbb{Z^+}$$ such that $$\phi(n)=4$$.
Answer: Let $$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9881308777303092,
"lm_q1q2_score": 0.8055563952576567,
"lm_q2_score": 0.815232489352,
"openwebmath_perplexity": 357.7428114045646,
"openwebmath_score": 0.927647054195404,
"tags": n... |
python, tkinter, gui
R4C6.grid(row=4, column= 6, sticky= "news")
R5C0= tk.Button(canv_1, image=root.render1, relief="raised", bg="light gray", command = lambda: change_img(5))
R5C0.grid(row=5, column= 0, sticky="news")
R5C1= tk.Entry(canv_1, bg = c1, font=("arial",15)).grid(row= 5, column= 1, sticky= "news")
R5C2= tk... | {
"domain": "codereview.stackexchange",
"id": 38852,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, tkinter, gui",
"url": null
} |
java, recursion, tree, iteration
inOrder(root, "[ROOT]");
}
public void inOrder(BNode node, String direction){
BNode p = node;
if(p == null) return;
inOrder(p.left, "[LEFT]");
System.out.println(p.index+": "+direction+" "+p.data);
inOrder(p.right, "[RIGHT]");
}
} ... | {
"domain": "codereview.stackexchange",
"id": 13290,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, recursion, tree, iteration",
"url": null
} |
gnuradio, software-defined-radio, hardware
From my point of view, I made identical setups for hackrf and bladerf device on osmocom-sink block. Later on downconverting and demodulation works very well with hackrf hardware, with bladerf device it totaly fails.
Any suggestions, I need to check or I just made wrong ? May ... | {
"domain": "dsp.stackexchange",
"id": 9954,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gnuradio, software-defined-radio, hardware",
"url": null
} |
If the first digit is "2": . 2 _ _
. . we must place the "1" and "3".
The "3" cannot be the third digit; it must be the second digit.
. . We have: .231
If the first digit is "3": .3 _ _
. . we must place the "1" and "2".
The "2" cannot be the second digit; it must be the third digit.
. . We have: .312
There are only ... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534360303622,
"lm_q1q2_score": 0.8262126798756392,
"lm_q2_score": 0.8418256532040707,
"openwebmath_perplexity": 363.78856533537896,
"openwebmath_score": 0.8312947154045105,
"ta... |
java, programming-challenge, time-limit-exceeded
Add the values of between the indices and inclusive:
index-> 1 2 3 4 5 6 7 8 9 10
[0,0,0, 0, 0,0,0,0,0, 0]
[3,3,3, 3, 3,0,0,0,0, 0]
[3,3,3,10,10,7,7,7,0, 0]
[3,3,3,10,10,8,8,8,1, 0]
The largest value is 10 after all opera... | {
"domain": "codereview.stackexchange",
"id": 36220,
"lm_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, programming-challenge, time-limit-exceeded",
"url": null
} |
newtonian-mechanics, fluid-dynamics
My derivations are very brief, for details see e.g. http://www.astronomy.ohio-state.edu/~dhw/A825/notes2.pdf (with a different notation).
EDIT: Combining my memory using the phase-space notation with the notation of the linked text, I have done some possibly quite confusing typos. N... | {
"domain": "physics.stackexchange",
"id": 22100,
"lm_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",
"url": null
} |
javascript, performance, game-of-life
Title: Conway's game of life - Optimizing the code I have just finished my first iteration of conway's game of life as a codeing excercise. I have little experience with coding, so I think my code could use some refactoring. What i am curios about is the drivers for having a more ... | {
"domain": "codereview.stackexchange",
"id": 5461,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, performance, game-of-life",
"url": null
} |
html, css, layout
</div>
<div class="value">
<div class="value_img quality">
</div>
<h3>
Quality over quantity
</h3>
<p>
Suspendisse u... | {
"domain": "codereview.stackexchange",
"id": 21787,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "html, css, layout",
"url": null
} |
c++, performance, c++17
Write this:
for (const auto& [from, to] : map)
And see if that helps. Another alternative would be to create a version of replace_all that takes a std::pair<std::string_view, std::string_view> and rewrite the loop as:
for (const auto& pr: map) {
replace_all(string, pr);
} | {
"domain": "codereview.stackexchange",
"id": 37707,
"lm_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, c++17",
"url": null
} |
psychology
This "shaking off" looks remarkably like an epileptic fit, but when the movements are analyzed, they are a muscle-twitch repeat of the sequence of movements that animal took from the time it realized its hazard to the time it fainted. It is this same muscle-twitch capacity which allows human athletes to pra... | {
"domain": "biology.stackexchange",
"id": 5314,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "psychology",
"url": null
} |
phase, frequency-response, frequency-modulation, octave, derivative
You start with a white noise signal which is translated from magnitude directly to units of frequency in the FM modulation process.
To demodulate you convert to phase (which is an integration of the instantaneous frequency of your waveform, since phas... | {
"domain": "dsp.stackexchange",
"id": 8230,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "phase, frequency-response, frequency-modulation, octave, derivative",
"url": null
} |
python, python-3.x
For step 2, remember that modular reduction distributes over addition and multiplication, in the sense that $$(a + b) \bmod m = ((a \bmod m) + b) \bmod m$$ and $$(a \times b) \bmod m = ((a \bmod m) \times b) \bmod m.$$ (Or, in Python code, (a + b) % m == ((a % m) + b) % m and (a * b) % m == ((a % m)... | {
"domain": "codereview.stackexchange",
"id": 41592,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x",
"url": null
} |
reference-request, type-theory, type-inference
Given a (pre-)term $a$ Is there a type $A$ such that $\vdash a :A$ is derivable in MLTT? | {
"domain": "cstheory.stackexchange",
"id": 4447,
"lm_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, type-theory, type-inference",
"url": null
} |
nuclear-physics, elements
Why do scientists work so hard to create new elements that last for such a short time? According to chemist Dawn Shaughnessy from Livermore’s Chemistry, Materials, and Life Sciences Directorate, “Each new element we discover provides more knowledge about the forces that bind nuclei and what c... | {
"domain": "physics.stackexchange",
"id": 6044,
"lm_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, elements",
"url": null
} |
cosmology, string-theory, quantum-gravity, de-sitter-spacetime, string-theory-landscape
So the authors have created a "refined de Sitter swampland criterion" that was explicitly constructed to reject inflation. Huh? This doesn't sound like "I have a nice, well-motivated theory that works well with particle physics but... | {
"domain": "physics.stackexchange",
"id": 84493,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cosmology, string-theory, quantum-gravity, de-sitter-spacetime, string-theory-land... |
# A trig integral with a tangent substitution
From Complex Function Theory by Palka, an example shows for positive integers $$n$$ that $$\int_0^\pi \sin^{2n}t \; dt=\frac{\pi}{4}\binom{2n}{n}$$ using the Residue Thm, and I understood his derivation. But he went on to say that this can be found using familiar technique... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692345869641,
"lm_q1q2_score": 0.8007645946805351,
"lm_q2_score": 0.8198933337131076,
"openwebmath_perplexity": 441.8824642787872,
"openwebmath_score": 0.977003276348114,
"tags... |
beginner, strings, programming-challenge, haskell, time-limit-exceeded
toYesNo b
| b = "YES"
| otherwise = "NO"
processCases :: [[Char]] -> Int -> [Bool]
processCases [] num = []
processCases cases 0 = []
processCases cases remaining =
let
caseLines = read (head cases) :: Int
current = t... | {
"domain": "codereview.stackexchange",
"id": 13892,
"lm_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, strings, programming-challenge, haskell, time-limit-exceeded",
"url... |
ds.algorithms, linear-algebra
It computes $K^c$ different matrices $L_1,\ldots,L_{K^c}$ which multiply entries of the first matrix $A$ by various scalars and $K^c$ matrices $R_1,\ldots,R_{K^c}$ from the second matrix $B$ of a similar form,
It multiplies those linear combinations $L_i \cdot R_i$, then
It multiplies en... | {
"domain": "cstheory.stackexchange",
"id": 3810,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ds.algorithms, linear-algebra",
"url": null
} |
ros-kinetic
Originally posted by vunguyen with karma: 31 on 2019-07-17
This answer was ACCEPTED on the original site
Post score: 0 | {
"domain": "robotics.stackexchange",
"id": 33448,
"lm_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-kinetic",
"url": null
} |
javascript, angular.js
propertiesModule.directive('propertiesListCompare', function () {
return {
restrict: 'E',
scope: {
properties: '='
},
templateUrl: "properties/properties-list-compare.html",
link: function (scope, element, attrs) {
}
};
});
pro... | {
"domain": "codereview.stackexchange",
"id": 10584,
"lm_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, angular.js",
"url": null
} |
homework-and-exercises, torque
Title: Calculating torque with gears and wheel-axles For my homework in engineering, I was given a question like this: There is an axle attached to a gear, which is meshed with another gear, which has an axle attached to it. I am given the diameter of both gears, and the torque on the in... | {
"domain": "physics.stackexchange",
"id": 8102,
"lm_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, torque",
"url": null
} |
the use of a backtracking algorithm to find the exit path of Maze. Recursive Algorithms Although recursive algorithms are generally elegant, they can be difficult to understand. Before getting started, let's talk about what the Tower of Hanoi problem is. c for Microsoft C++ Visual Studio 6. In fibonacci series, next num... | {
"domain": "angolodeisaporifirenze.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799441350252,
"lm_q1q2_score": 0.8266996963081685,
"lm_q2_score": 0.8577681049901037,
"openwebmath_perplexity": 806.9678291076392,
"openwebmath_score": 0.416551649570... |
spacetime, differential-geometry, metric-tensor, string-theory, compactification
$M\times_f N :=(M\times N, g_M + f^2g_N)$.
The direct product is obviously a special case of the warped product where $f\equiv 1$.
I'd love to know whether warped products are being considered by physicists working with compactifications ... | {
"domain": "physics.stackexchange",
"id": 94697,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "spacetime, differential-geometry, metric-tensor, string-theory, compactification",... |
kinetics
Title: Calculation of overall rate constant of a parallel reaction Consider a parallel reaction
$\ce{A->B}$ (rate constant for this reaction is $k_1$ and it follows first order kinectics),
$\ce{2A->C}$ (rate constant for this reaction is $k_2$ and it follows first order kinetics).
Then we can write
$$\mathrm ... | {
"domain": "chemistry.stackexchange",
"id": 4257,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "kinetics",
"url": null
} |
• What about: "If Mrs Smith murdered Mr Smith, Mr Smith would be dead. However, Mr Smith showed up yesterday badly hungover but not dead. Since he is not dead, we conclude that she did not murder him. Not Guilty"? – gmatht Feb 25 '16 at 1:03
• The problem seems to be the strange premise "if S has 20€ then he buys a boo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9845754452025767,
"lm_q1q2_score": 0.8204709364653608,
"lm_q2_score": 0.8333245973817158,
"openwebmath_perplexity": 479.48238343653946,
"openwebmath_score": 0.6731948256492615,
"ta... |
pid
$$
\tau_{actual} = f(\theta_{\text{aileron}}, \text{airspeed}_x, \text{airspeed}_y, \text{[other measurable factors]})
$$
You are going to approximate the inverse of that function -- finding $\theta_{\text{aileron}}$ given $\tau_{desired}$. Whether you do that with a neural network, wolfram alpha, multivariate re... | {
"domain": "robotics.stackexchange",
"id": 458,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pid",
"url": null
} |
general-relativity, gravity, string-theory, branes, chern-simons-theory
Title: Chern-Simons action for non-abelian brane worldvolume and Tsetlyn's symmetric trace prescription I am trying to reproduce the results of the (famous) Myer's paper "Dielectric Branes" https://arxiv.org/abs/hep-th/9910053. I am struggling a b... | {
"domain": "physics.stackexchange",
"id": 50603,
"lm_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, gravity, string-theory, branes, chern-simons-theory",
"url":... |
computability, turing-machines, undecidability
Title: What does it mean to say that there doesn't exist an algorithm from a TM point of view?
A TM for a recursive language corresponds to our informal notion of an algorithm.
as per Automata Theory, Languages and Computation by Ullman et al. Then there are languages c... | {
"domain": "cs.stackexchange",
"id": 1284,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computability, turing-machines, undecidability",
"url": null
} |
c#, linq
string newStr = "";
foreach (var item in str)
{
newStr = item.ToString() + newStr;
}
return newStr;
}
/// <summary>
/// Time Complexity: o(n)
/// Space Complexity: o(n)
/// </summary>
/// <param name="str"></param>
/// <returns></returns... | {
"domain": "codereview.stackexchange",
"id": 37594,
"lm_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#, linq",
"url": null
} |
expansion and the Laplace transform Table. Gowthami Swarna, Tut. Inverse transforms. Then press. 𝑠 0 =𝑗 𝜔 0; 101. If this function cannot find a solution, a formal function is returned. Find the LT of the system output y(t) for the input x(t). It is obvious that there is a time-shift between the maximum and minimum ... | {
"domain": "comprensivobovalino.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.97631052387569,
"lm_q1q2_score": 0.8177771852106597,
"lm_q2_score": 0.8376199633332891,
"openwebmath_perplexity": 1063.6149374171082,
"openwebmath_score": 0.7958521246910095,
... |
formal-languages, turing-machines, formal-grammars
My Final Thought:
I tried to picture this in different ways, with say having the condition be that you test your newly outputted language (A-B in this case), on a TM that accepts on each of the initial languages (A, B), and if the new language accepts on all those TM... | {
"domain": "cs.stackexchange",
"id": 12960,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "formal-languages, turing-machines, formal-grammars",
"url": null
} |
homework-and-exercises, electromagnetism, special-relativity, lagrangian-formalism, classical-field-theory
$$L = -\frac{1}{4}F_{\mu \nu}F^{\mu \nu} - A_\mu J^\mu$$
letting $F_{\mu \nu} = \partial_\mu A_\nu - \partial_\nu A_\mu$,
$$ L = - \frac{1}{4}(\partial_\mu A_\nu - \partial_\nu A_\mu)(\partial^\mu A^\nu - \parti... | {
"domain": "physics.stackexchange",
"id": 42937,
"lm_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, special-relativity, lagrangian-formalism... |
machine-learning, feature-engineering, normalization, feature-scaling, online-learning
Pre-define min-max values
Instead of using data to estimate them, you could provide those as constants. This would require knowledge of the data, but that would work.
Running/Adaptive min-max values
You can estimate the min-max v... | {
"domain": "datascience.stackexchange",
"id": 12082,
"lm_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, feature-engineering, normalization, feature-scaling, online-... |
quantum-field-theory, conformal-field-theory, correlation-functions, wick-theorem, bosonization
$$
U(\Lambda) \psi^{\alpha,\beta}(x) U(\Lambda)^{-1} = e^{f_{\alpha,\beta}} \psi^{\alpha,\beta}(\Lambda x).
$$
We want to find the number $f_{\alpha,\beta}$. From the above equation, we have
$$
e^{F(x_1, .., x_n, y_1, .... | {
"domain": "physics.stackexchange",
"id": 92584,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory, conformal-field-theory, correlation-functions, wick-theorem,... |
php, object-oriented
If you want to write OO code, pour your data into objects, and think about your data as being instances, instead of variables. | {
"domain": "codereview.stackexchange",
"id": 7076,
"lm_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, object-oriented",
"url": null
} |
organic-chemistry, nomenclature
The corresponding actual wording in the current IUPAC Recommendations reads as follows:
P-14.4 NUMBERING
When several structural features appear in cyclic and acyclic compounds, low locants are assigned to them in the following decreasing order of seniority:
(…)
(c) principal character... | {
"domain": "chemistry.stackexchange",
"id": 10414,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "organic-chemistry, nomenclature",
"url": null
} |
ros, ros-melodic, robot-state-publisher, tf-tree
Title: Omit branches from the tf tree
Hello,
using a URDF, the robot_state_publisher constructs the tf tree which is published in the relative topic. Is there any way to choose which branches of the tf tree are being published without modifying the URDF? For example us... | {
"domain": "robotics.stackexchange",
"id": 33372,
"lm_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, robot-state-publisher, tf-tree",
"url": null
} |
programming, q#, hamiltonian-simulation, matrix-representation
Why doesn't a language like Q# include a built-in library for implementing a matrix exponential $e^{iA}$ for some general matrix $A$? Essentially because such an operation is, in general, extremely inefficient to implement on a quantum computer. To underst... | {
"domain": "quantumcomputing.stackexchange",
"id": 1538,
"lm_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, q#, hamiltonian-simulation, matrix-representation",
"url": ... |
mass, neutrinos
Intuitively, yes, it's "supposed to"—but it doesn't. It's strange, but that's how it seems to work.
Here's a rough overview: Neutrinos are created in weak interactions. In these interactions, a charged lepton (like an electron) can emit a W boson and "turn into" a neutrino; likewise, a W boson can prod... | {
"domain": "physics.stackexchange",
"id": 54052,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mass, neutrinos",
"url": null
} |
quantum-gate
path of the particle to know that if the evolution is according to quantum theory one will observe an interference pattern); the CNOT unitary changes those possibilities because it acts on the quantum states. This is very tricky about quantum theory and so it takes a while to get used to this way of reaso... | {
"domain": "quantumcomputing.stackexchange",
"id": 3667,
"lm_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-gate",
"url": null
} |
zoology
Title: Will the "frog in boiling water not jumping out" work on warm blooded animals There is the famous saying about a frog that is put in water that are slowly boiling will not jump out until it's too late. I realize it happens because of the frog's cold blood that adjusts to the temperature change until it'... | {
"domain": "biology.stackexchange",
"id": 346,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "zoology",
"url": null
} |
Here $C$ is the constant of indefinite integral.
• Should be $\frac{t}{8}$ on the last line. Feb 28 '15 at 13:11
• That's exactly it, was never able to realize that $sin^22t$ could be 1-cos4t wow. Feb 28 '15 at 13:11
• Oh yes sorry always did integral involving x as variable , thanks Feb 28 '15 at 13:12
Hint: $$\int ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307661011975,
"lm_q1q2_score": 0.8042506742008658,
"lm_q2_score": 0.8267118004748677,
"openwebmath_perplexity": 402.7607272125637,
"openwebmath_score": 0.9998055100440979,
"tag... |
electromagnetism, lagrangian-formalism, gauge-theory, hamiltonian-formalism, stress-energy-momentum-tensor
Even without imposing a specific gauge symmetry, the Hamiltonian density is supposed to be integrated over all space - so through integration by parts, the $C^{00}$ term yields a $(\partial_\sigma F^{0\sigma})A^0... | {
"domain": "physics.stackexchange",
"id": 74508,
"lm_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, lagrangian-formalism, gauge-theory, hamiltonian-formalism, stres... |
control, sensors, force-sensor
My idea was to simply tense the tendon (slowly) encompassing the object until the force sensor gives a feedback that contact has been made (+ a little grip force), what category of control scheme would that fall into ? | {
"domain": "robotics.stackexchange",
"id": 1216,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "control, sensors, force-sensor",
"url": null
} |
two contexts
Trigonometric ratios can be defined in two contexts
• For a right-angled-triangle with angle $\theta$$\theta$, the hypotenuse and sides of the triangle define the ratios
• In a unit circle, the line at the given angle $\theta$$\theta$ forms a similar triangle and ratios can be equivalently given in th... | {
"domain": "firmfunda.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9850429129677613,
"lm_q1q2_score": 0.8121303712160692,
"lm_q2_score": 0.8244619199068831,
"openwebmath_perplexity": 5240.745054704365,
"openwebmath_score": 0.998218297958374,
"tags": n... |
beginner, c, homework, floating-point, change-making-problem
Title: Calculating the number of coins in money change I wrote a program that calculates the minimum number of coins required to give a user change.
One concern I have is: When do we initialize the value of a float to be negative or positive? I recently saw ... | {
"domain": "codereview.stackexchange",
"id": 34172,
"lm_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, c, homework, floating-point, change-making-problem",
"url": null
} |
c++, c, graphics, raytracing
float y = r->pos.y + t * r->dir.y;
float z = r->pos.z + t * r->dir.z;
if(y < this->y0 || y > this->y1 || z < this->z0 || z > this->z1)
return false;
rec->uv = (float2){(y - this->y0) / (this->y1 - this->y0),
(z - this->z0) / (this->z1 - this->z0)... | {
"domain": "codereview.stackexchange",
"id": 40779,
"lm_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, graphics, raytracing",
"url": null
} |
13. anonymous
64/1225
14. Michele_Laino
that's right!
15. anonymous
Yay!
16. Michele_Laino
:)
17. anonymous
A coin was flipped 150 times. The results of the experiment are shown in the following table: Heads Tails 90 60 Which of the following best describes the experimental probability of getting heads? It is ... | {
"domain": "openstudy.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713887451681,
"lm_q1q2_score": 0.800894908878095,
"lm_q2_score": 0.8128673155708975,
"openwebmath_perplexity": 2386.6345532571218,
"openwebmath_score": 0.7209330201148987,
"tags": ... |
ajjfz5komjkt4t0 ougqygm0y8ty q2vh40p5h10 ojyzr5eeq7v 2sp8i70syq dpm1s773cw9 z3p5d75vyb4p5 p1nych3465c eajdi35qpmfocxn 8pr38m791skj1 ib2p8mgdpib nh2otrtiwu6cge 7pb8f9pxus4f 87970j9f6k va3cnyzct5k 4nph6djbxxgj8u dlvtd30wq4d mw4nmq3jbo 4h91cmq0x3iy jkrevqvyro9tcby nnp8p0v5umj787 xgwk7odj92yxaen k0hdaq16jimacpa 710xahieli ... | {
"domain": "condominiroma.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822876987039989,
"lm_q1q2_score": 0.8206851969426149,
"lm_q2_score": 0.8354835330070838,
"openwebmath_perplexity": 560.6556688462676,
"openwebmath_score": 0.6646321415901184,
"... |
python
num = float(raw_input('Enter a number that is divisible by 2: '))
while (num%2) != 0:
num = float(raw_input('Please try again: '))
print 'Congratulations!'
The next thing to notice is that a number being even is actually a fairly common check to make. Such things should be turned into functio... | {
"domain": "codereview.stackexchange",
"id": 1219,
"lm_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",
"url": null
} |
filters, smoothing, group-delay
Title: measuring delay introduced by filter I am trying to measure the delay introduced by smoothening filters to my data, including a double-exponential smoothening filter. I run my series data through this function:
def double_exponential_smoothing(series, alpha, beta, n_preds=1):
... | {
"domain": "dsp.stackexchange",
"id": 12495,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "filters, smoothing, group-delay",
"url": null
} |
c#, beginner, calculator
It would also be nice if the user could enter the entire calculation in a single go (1 + 2), and your code extract the needed num1, num2 and operation values.
Try allowing for multiple operations in a single statement (1 + 2 - 3).
Don't forget to apply the correct order of operations! (e.g. 1... | {
"domain": "codereview.stackexchange",
"id": 30194,
"lm_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, calculator",
"url": null
} |
Cannot Defeat Capitalism with Proper Pronouns and Complaints • Lou Dobbs August 6 2019 by Patrice Lee Onwuka Don't pander to women; offer real opportunity August 1 2019 by Patrice Lee Onwuka Bernie Ignores Legitimate Questions About his Health Care Plans • Evening Edit July 31 2019 by Patrice Lee Onwuka The Washington ... | {
"domain": "ihuq.pw",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795114181105,
"lm_q1q2_score": 0.857514230470787,
"lm_q2_score": 0.8688267796346599,
"openwebmath_perplexity": 6607.073204715545,
"openwebmath_score": 0.199847012758255,
"tags": null,
... |
python, beginner, python-3.x
Title: How to find the common factors of 2 numbers Print the number of common factors of a and b.
input > 10, 15
Output > 2
The common factors of 10, 15 are 1 and 5
My code
def print_factors(x,y):
l = []
for i in range(1, x + 1):
if x % i == 0:
l.append(i)
... | {
"domain": "codereview.stackexchange",
"id": 35617,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, python-3.x",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.