text stringlengths 1 1.11k | source dict |
|---|---|
evolution, senses
Title: Do creatures exist which can stop their hearing at will? Many people would love to have the ability to shut out noise while sleeping, in the same way that we have eyelids to shut out light. If this capability exists in nature, it could offer clues to researchers in the field of sound proofing.... | {
"domain": "biology.stackexchange",
"id": 7666,
"lm_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, senses",
"url": null
} |
fourier-transform, z-transform
$$ \int\limits_{-a}^{a} \delta(x) \, \mathrm{d}x = 1 \qquad \forall a>0$$
but this integral
$$ \int\limits_{-a}^{a} g(x) \, \mathrm{d}x = 0 \qquad \forall a>0$$
where
$$ g(x) = \begin{cases}
1 \qquad & \text{for } x=0 \\
0 \qquad & \text{for } x\ne0 \\
\end{cases} $$
this is why we ne... | {
"domain": "dsp.stackexchange",
"id": 7364,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fourier-transform, z-transform",
"url": null
} |
ros, turtlebot, turtlebot3
Originally posted by tommylwalker with karma: 56 on 2020-07-22
This answer was ACCEPTED on the original site
Post score: 3 | {
"domain": "robotics.stackexchange",
"id": 35061,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, turtlebot, turtlebot3",
"url": null
} |
java, server, properties, configuration
I really hate ApplicationConfig class, the static initialization block bothers me, but I am not able to find a better idea yet. How you would suggest to modify it?
And here is my main class
public class Application {
private static final Logger LOG = Logger.getLogger(Applicatio... | {
"domain": "codereview.stackexchange",
"id": 23024,
"lm_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, server, properties, configuration",
"url": null
} |
graphs, minimum-spanning-tree
Is this procedure correct? Does it work in all cases / graphs? Is there any other standard approach to solve such problem?
Second solution used cycle $E-D-F-E$ to determine the weight of edge $ED$, but not cycle $B-E-D-C$. Though I understand that decision of choosing $EF$ and $DF$ are de... | {
"domain": "cs.stackexchange",
"id": 11889,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "graphs, minimum-spanning-tree",
"url": null
} |
experimental-physics, electrons, nuclear-physics, experimental-technique, gamma-rays
Title: In the Pound Rebka Experiment, how were the gamma rays generated? Lest my question be dismissed as poorly-worded, let me first say that I do understand the concept of how a gamma ray is emitted when an electron in an excited (h... | {
"domain": "physics.stackexchange",
"id": 39319,
"lm_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-physics, electrons, nuclear-physics, experimental-technique, gamma-ra... |
slam, navigation, ros-kinetic, robot-localization, amcl
Originally posted by Mahmoud Kamel with karma: 103 on 2018-10-22
This answer was ACCEPTED on the original site
Post score: 0 | {
"domain": "robotics.stackexchange",
"id": 31860,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, ros-kinetic, robot-localization, amcl",
"url": null
} |
php, authentication
echo json_encode($final);
}else{
echo json_encode($result);
exit;
}
?> You do have a user_table containing your users, but it is almost empty. You then put the user_id, user_email and user_pass fields in the student_table, teacher_table and management_table, requiring you to gather them toge... | {
"domain": "codereview.stackexchange",
"id": 42925,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, authentication",
"url": null
} |
neural-network, visualization, activation-function
You can see some of this in the tensorflow playground. In a version of that link, I've grabbed the weights and put the resulting function into Wolfram|Alpha. You can see how the boundary lines of each first-layer neuron shows up as a kink, and each of the resulting ... | {
"domain": "datascience.stackexchange",
"id": 8671,
"lm_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, visualization, activation-function",
"url": null
} |
frequency
figure,subplot(3,1,1)
plot(p1);title('square wave 1');
axis([1,N,-0.5,1.5])
subplot(3,1,2)
plot(p2);title('square wave 2');
axis([1,N,-0.5,1.5])
subplot(3,1,3)
plot(p1 | p2);title('the OR summed waves');
axis([1,N,-0.5,1.5])
The output is: | {
"domain": "dsp.stackexchange",
"id": 9474,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "frequency",
"url": null
} |
electrical-resistance, thermal-conductivity, efficient-energy-use
I was under the impression that the higher the temperature of the element, the less efficient it was (higher resistance), and also the increased surface area would mean more efficient heat transfer. Heaters are one of the very few devices that are 100% ... | {
"domain": "physics.stackexchange",
"id": 21580,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrical-resistance, thermal-conductivity, efficient-energy-use",
"url": null
... |
python, optimization, unit-testing, google-app-engine
The whole thing is to check if the username is available for a new user or when an existing user is updating his current username.
The user_dbs can have maximum 2 records as it has a limit in the actual query. So here is the breakdown:
If there are 2 records then ... | {
"domain": "codereview.stackexchange",
"id": 9163,
"lm_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, optimization, unit-testing, google-app-engine",
"url": null
} |
ros2, image-transport
Originally posted by William with karma: 17335 on 2018-03-21
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by paulbovbel on 2018-03-24:
connect/disconnect callbacks alone would go a long way towards enabling data processing pipelines and lazy pub/sub. IMO ... | {
"domain": "robotics.stackexchange",
"id": 30393,
"lm_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, image-transport",
"url": null
} |
genetics, biochemistry, molecular-biology, proteins, molecular-genetics
Yes you are right you need to calculate for km
I think I found the paper that ties temp into the reaction rate:
statistical approach called response surface methodology (RSM) is used for the prediction of the kinetic constants of glucose oxidase (... | {
"domain": "biology.stackexchange",
"id": 2760,
"lm_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, biochemistry, molecular-biology, proteins, molecular-genetics",
"url": ... |
quantum-fourier-transform, fourier-sampling
Title: Weak Fourier Sampling vs Strong Fourier Sampling? I'm having trouble understanding the difference between weak fourier sampling and strong fourier sampling. From this paper:
...two important variants of the Fourier sampling paradigm have been
identified: the weak s... | {
"domain": "quantumcomputing.stackexchange",
"id": 456,
"lm_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-fourier-transform, fourier-sampling",
"url": null
} |
coq, inductive-datatypes
To say that “P is true” in Coq, you build a proof of X. To show that “(A and B) is true”, you build a proof of (A and B), and you do this by building a proof of A and a proof of B. Likewise, to show that “(A or B) is true”, you build a proof of (A or B) by either building a proof of A or a pro... | {
"domain": "cs.stackexchange",
"id": 9832,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "coq, inductive-datatypes",
"url": null
} |
php, sorting
Be warned that this is not tested.
Edit: Long version with explanation:
function order_ignore_the($a, $b) {
// Variables for later use
$checkedA = $a;
$checkedB = $b;
// Compare the first three letters case-insensitive against "the"
if(strcasecmp(substr($checkedA, 0, 3), "the") == 0) ... | {
"domain": "codereview.stackexchange",
"id": 40521,
"lm_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, sorting",
"url": null
} |
context-free, formal-grammars, pumping-lemma
Title: Prove that $L = \{ a^ib^jc^k | i < j \ and \ i+2j +3 < k \}$ is not CFG Can someone help me prove that $L = \{ a^ib^jc^k | i < j \ and \ i+2j+3 < k \}$ is not a context free language?
I've tried applying the pumping lemma for CFGs and proving case by case (taking x=... | {
"domain": "cs.stackexchange",
"id": 9097,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "context-free, formal-grammars, pumping-lemma",
"url": null
} |
algorithm, ruby, linked-list
=begin
Get the value of the index-th node in the linked list. If the index is invalid, return -1.
:type index: Integer
:rtype: Integer
=end
def get(index)
return -1 if @head == nil
return -1 if index > @size - 1
return @head.val if index == 0
return ... | {
"domain": "codereview.stackexchange",
"id": 38469,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithm, ruby, linked-list",
"url": null
} |
ros
Title: Can we access ASUS Xtion PRO Live simultaneously as a depth cam and webcam
I am using the AUS Xtion PRO Live sensor for my robot. I have used openni_ros for accessing the depth data of sensor in ros. Then I configured the Xtion PRO Live as a normal webcam using the module in this link https://github.com/... | {
"domain": "robotics.stackexchange",
"id": 22323,
"lm_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
} |
This proves that $a$ and $b$ have not only subsets, but contiguous subsequences, with equal sums.
(*) Of course, the proof rests on showing that you can successfully repeat this step -- i.e., that one of the three choices satisfies the constraint on $S$ -- the required number of times. Suppose $a$ and $b$ have elements... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211612253741,
"lm_q1q2_score": 0.8014873693331233,
"lm_q2_score": 0.8221891370573388,
"openwebmath_perplexity": 267.5598673141486,
"openwebmath_score": 0.8119555711746216,
"tag... |
java, beginner
}
}
I see you writing int variableName = (something + someOtherThing);. Those parenthesis are not needed. Just write int variableName = something + someOtherThing;. Though of course having too many parenthesis doesn't hurt.
System.out.print("ERROR! Please enter a number 1-9.: ");
Heh. You say "1-9" b... | {
"domain": "codereview.stackexchange",
"id": 4324,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner",
"url": null
} |
optics, waves, photons, acoustics, phonons
An ideal "beam combiner" would seem to get around this idea of emitting two photons of opposite phase right at the same place; is it simply physically impossible to make such a thing? | {
"domain": "physics.stackexchange",
"id": 87307,
"lm_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, waves, photons, acoustics, phonons",
"url": null
} |
machine-learning, k-means, kernel
Compute the similarity matrix using the kernel function
Compute the index of the input in the transformed space using the similarity matrix (what I do here is that I sum up the line related to the input in the similarity matrix)
Choose random centroids in the transformed space using t... | {
"domain": "datascience.stackexchange",
"id": 12118,
"lm_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, k-means, kernel",
"url": null
} |
javascript, css
"outline:none;text-shadow:0 1px 1px rgba(0,0,0,.3);-webkit-border-radius:.4em;-moz-border-radius:.4em;" +
"border-radius:.4em;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);" +
"box-shadow:0 1px 2px rgba... | {
"domain": "codereview.stackexchange",
"id": 5734,
"lm_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, css",
"url": null
} |
python, python-3.x
values = [0] * (size+2)
for a,b,k in Array:
values[a] += k
values[b+1] -= k
values = list(accumulate(values))
Result = max(values)
return Result
To:
def Operations(size, Array):
values = [0] * (size + 2)
for a, b, k in Array:
values[a] += k
... | {
"domain": "codereview.stackexchange",
"id": 40761,
"lm_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
} |
quantum-mechanics
Title: What would be the Slater's determinant representation for an excited state? Setup
Introducing this spinorbital notation:
\begin{align}
\Psi_1=\chi_{(r1)}\alpha_{(\omega1)} = 1 \\
\Psi_1=\chi_{(r1)}\beta_{(\omega1)} = \bar{1}
\end{align}
and the Slater's determinant, for a system of two elect... | {
"domain": "physics.stackexchange",
"id": 21469,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics",
"url": null
} |
c++, pointers, c++17
class Pizza : public Food {
public:
virtual std::string_view name() const override {
return "pizza";
}
};
Obviously, that won't compile because the Food destructor is attempting to call the pure virtual name() function. However, because it's a pure virtual function we know that a... | {
"domain": "codereview.stackexchange",
"id": 30946,
"lm_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++, pointers, c++17",
"url": null
} |
exoplanet, gravitational-lensing
Title: Need help understanding the recent observation of extra-galactic planets! The new paper Probing Planets in Extragalactic Galaxies Using Quasar Microlensing (also in ArXiv) is too mind-boggling for me to understand exactly what is happening.
I have some very basic understanding ... | {
"domain": "astronomy.stackexchange",
"id": 2725,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "exoplanet, gravitational-lensing",
"url": null
} |
javascript, node.js, comparative-review, configuration
Which version would you consider to be better, what would you change about each, what can be improved upon in general?
If you needed an env loader for your project, what would you prefer? Nice question! This is a great demonstration of opposing design aesthetics.
... | {
"domain": "codereview.stackexchange",
"id": 31689,
"lm_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, node.js, comparative-review, configuration",
"url": null
} |
optics, reflection, interference, absorption
Note, my first statement concerning that the equation is for a single wavelength implies that n = n(wavelength 1). If there are multiple wavelengths present, as in white light, then n will be different (it's called dispersion) for each wavelength and a more general express... | {
"domain": "physics.stackexchange",
"id": 96263,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optics, reflection, interference, absorption",
"url": null
} |
c, strings, parsing
}
int main (void)
{
char str[] ="[ hello ] gfd [ hello2 ] ";
char str2[] ="[ hello [ gfd [ hello2 ] ";
char str3[] ="the wie321vg42g42g!@#";
char str4[] ="][123[]23][231[";
TestGetWords(str);
TestGetWords(str2);
TestGetWords(str3);
TestGetWords(str4);
... | {
"domain": "codereview.stackexchange",
"id": 11363,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c, strings, parsing",
"url": null
} |
markov-decision-process, policies, bellman-equations, transition-model
However, in your case, you are correct, in order to resolve the simultaneous equations you have presented, you do need to know $\pi(a|s)$
This is not as limiting as you might think. You can construct a control method using simultaneous equations, b... | {
"domain": "ai.stackexchange",
"id": 2638,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "markov-decision-process, policies, bellman-equations, transition-model",
"url": null
} |
graphs, weighted-graphs
Title: Reweight general weighted graph to distinct graph for using Borůvka's Is it possible to re-weight a generally-weighted graph to a distinctly-weighted graph to apply Borůvka's algorithm (wiki) for minimum spanning tree to it?
I can't seem to think of a way to make a distinction between th... | {
"domain": "cs.stackexchange",
"id": 4013,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "graphs, weighted-graphs",
"url": null
} |
Am I looking at this right?
I am just paranoid something might slip by me unnoticed hence this (redundant) dissection.
10. Mar 9, 2013
### ArcanaNoir
You've got it :)
11. Mar 9, 2013
### setvectorgroup
Well, I guess this does it.
Thank You, ArcanaNoir, for (hopefully) closing this thread. | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9724147193720649,
"lm_q1q2_score": 0.8322422529024275,
"lm_q2_score": 0.8558511469672594,
"openwebmath_perplexity": 2562.18229621039,
"openwebmath_score": 0.5036938190460205,
"tags... |
python, python-3.x, game
self.save.write(str(self.limit) + "\n")
self.save.write(str(self.unlocked) + "\n")
self.save.write(str(self.expenses) + "\n")
self.save.close()
def overview(self):
print("[0] Leave")
while(True):
print("Wisdoms unlocked: ", self.... | {
"domain": "codereview.stackexchange",
"id": 28807,
"lm_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, game",
"url": null
} |
c#, beginner, game-of-life
}
public void displaygrid(int[,] livegrid)
{
int gridcol = livegrid.GetLength(0);
int gridrow = livegrid.GetLength(1); | {
"domain": "codereview.stackexchange",
"id": 21864,
"lm_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, game-of-life",
"url": null
} |
The diagonal elements of a triangular matrix are equal to its eigenvalues. Deï¬nition The transpose of an m x n matrix A is the n x m matrix AT obtained by interchanging rows and columns of A, Deï¬nition A square matrix A is symmetric if AT = A. If is an eigenvector of the transpose, it satisfies By transposing both ... | {
"domain": "masri-online.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561676667173,
"lm_q1q2_score": 0.8176129749737056,
"lm_q2_score": 0.8438951025545426,
"openwebmath_perplexity": 799.2878051633252,
"openwebmath_score": 0.6087575554847717,
"tags... |
c#, performance, algorithm, programming-challenge, palindrome
The main loop in IsPalindrome() would be better written as a while (true) loop, as the while (start < end) condition is redundant. In fact, I would rewrite it as a for loop, both for compactness and readability.
Parameter names can be shortened (anyChar → ... | {
"domain": "codereview.stackexchange",
"id": 24632,
"lm_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, algorithm, programming-challenge, palindrome",
"url": null
} |
thermodynamics, statistical-mechanics, entropy, reversibility
Title: If entropy is a state function, then why is all the talk about reversible vs. irreversible processes? So I'm preparing for my Thermodynamics undergrad exam, and I just can't wrap my head around the significance of reversibility vs. irreversibility of... | {
"domain": "physics.stackexchange",
"id": 30533,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, statistical-mechanics, entropy, reversibility",
"url": null
} |
javascript, jquery, validation, form
// Do show error labels
if (error_value != null) {
$("#registration-form .content-row."+ field_id + " .box-error").text(error_value);
error_field += error_value;
}
});
if (error_field == "") {
var username = $.trim($("#usern... | {
"domain": "codereview.stackexchange",
"id": 8800,
"lm_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, validation, form",
"url": null
} |
for certain expression over predetermined... Their absolute magnitudes can be used is increasing, decreasing, and constant growth of an algorithm walk every... Is f ( n ) to within a constant factor 4 and all. Growth of an algorithm summation notation, and definite integral notation special notation used only functions... | {
"domain": "alphapawnshop.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9744347823646073,
"lm_q1q2_score": 0.8282414775680784,
"lm_q2_score": 0.8499711756575749,
"openwebmath_perplexity": 604.7449346212655,
"openwebmath_score": 0.8272032737731934,
... |
java, beginner, parsing, tree
Title: Parsing structured text in Java I am quite new to Java. I have data structured like this:
tree 503(there is a null character here)040000 tree 0bfec80bc7b7aa0a50e0b373044929cb0aae278b build/
100755 blob e30876c61eb7712ad09b50593a30513d9b173805 build.xml
100755 blob 1574df4a2de5d2884... | {
"domain": "codereview.stackexchange",
"id": 4296,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, parsing, tree",
"url": null
} |
quantum-mechanics, mass, potential-energy
So to answer your last question, yes it is possible but sadly it doesn't result in anything weird.
It isn't relevant to your question, but when we include relativity we do indeed get weird effects. It is possible to solve the relativistic equation for a one electron atom (with... | {
"domain": "physics.stackexchange",
"id": 83371,
"lm_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, mass, potential-energy",
"url": null
} |
sql, vba, sql-server, excel
USE SecondTableStaging;
GO
MERGE tblResources AS Target
USING #Resources AS Source
ON Target.lLocaleID = Source.lLocaleID
AND Target.txtResourceKey COLLATE DATABASE_DEFAULT = Source.txtResourceKey COLLATE DATABASE_DEFAULT
WHEN MATCHED
THEN UPDATE SET... | {
"domain": "codereview.stackexchange",
"id": 21120,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "sql, vba, sql-server, excel",
"url": null
} |
java, beginner, search, binary-search
In addition, you should have the 'simplified search everything method' that looks like:
public int binarySearch(int[] arr, int search) {
return binarySearch(arr, 0, arr.length, search);
}
Input Validation
It is common in Java to validate the inputs. You should have this as yo... | {
"domain": "codereview.stackexchange",
"id": 8727,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, search, binary-search",
"url": null
} |
optics, angular-momentum, energy-conservation, polarization
This is totally true for the rotational motion as well. The kinetic energy of rotation is $J^2/2I$ where $J$ is the angular momentum and $I$ is the moment of inertia. For a single photon, the angular momentum relative to the direction of the photon's motion, ... | {
"domain": "physics.stackexchange",
"id": 407,
"lm_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, angular-momentum, energy-conservation, polarization",
"url": null
} |
automata, code-generation
Next simpler is to write a rat's nest of gotos, transferring among them according to the symbol at hand (each label in the program corresponds to a state of the automaton).
Writing a decently organized,structured program from an automaton is possible, but far from automatic (and it would take... | {
"domain": "cs.stackexchange",
"id": 15324,
"lm_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, code-generation",
"url": null
} |
complexity-theory, time-complexity, set-cover
Title: Time Complexity of a selection problem I wonder what's the time complexity of the following selection problem I found while thinking of a string-matching problem.
[Assuming operations on integers take $O(1)$ time]
We are Given $m$ sets, with $n$ integer numbers each... | {
"domain": "cs.stackexchange",
"id": 1305,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "complexity-theory, time-complexity, set-cover",
"url": null
} |
electric-current, charge, electrical-resistance, voltage, batteries
near $p_F$, to interact with the field and have their momentum switched in the other direction, with roughly the same magnitude. The fraction of the free electrons that can react to the electric field is of the order of $v_d/v_F$, or about $10^{-4}/10... | {
"domain": "physics.stackexchange",
"id": 55015,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electric-current, charge, electrical-resistance, voltage, batteries",
"url": nul... |
quantum-mechanics, thermodynamics, statistical-mechanics
Of course, on this scale volume plays a much less pronounced role. But I think you still need to replace it by providing some information about the way you view the system as a whole, even when you just look at a small subsystem. That way may, however, be quite ... | {
"domain": "physics.stackexchange",
"id": 74540,
"lm_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, thermodynamics, statistical-mechanics",
"url": null
} |
image-processing
$$g(x,y)=f(x,y)-f_{smooth}(x,y)$$
which is nothing but an edge image using LoG.
The sharp image is produced by adding portion of this is added back to original image and hence contrast near edge increases drastically. This is how you produce the sharp image $f_{sharp}$
$$f_{sharp}(x,y)=f(x,y)+k*g(x,y)... | {
"domain": "dsp.stackexchange",
"id": 85,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "image-processing",
"url": null
} |
ros, marker, visualization-msgs
marker_pub.publish(marker);
}
void Transforms::f1Callback(const geometry_msgs::WrenchStamped& msg){
f1ft.vector=msg.wrench.force;
}
void Transforms::f2Callback(const geometry_msgs::WrenchStamped& msg){
f2ft.vector=msg.wrench.force;
}
int main(int argc, char** argv){
ros:... | {
"domain": "robotics.stackexchange",
"id": 27204,
"lm_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, marker, visualization-msgs",
"url": null
} |
algorithms, data-structures, computational-geometry
For the algorithm that splits a simple polygon in to monotone polygons you cannot really afford that, as you may have to relabel an (half)edge multiple times. Hence, a solution there is just to be lazy: i.e. use the sweep just to update the vertex/edge fields in the ... | {
"domain": "cs.stackexchange",
"id": 7869,
"lm_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, data-structures, computational-geometry",
"url": null
} |
python, pygame, mathematics
class Player(object):
sprite=psprite
def __init__(self, x, y):
self.rect = self.sprite.get_rect(centery=y, centerx=x)
# indicates that we are standing on the ground
# and thus are "allowed" to jump
self.on_ground = True
self.xvel = 0
s... | {
"domain": "codereview.stackexchange",
"id": 4727,
"lm_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, pygame, mathematics",
"url": null
} |
generate number further after entered number, If you need all permutation, please remove comment of sort function call. And of course, making permutations of only 3 digits is quite easy. The function should generate 6 sets of numbers like this: 468 648 684 486 846 864 The recursive function should generate all permutat... | {
"domain": "madzuli.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9719924826392581,
"lm_q1q2_score": 0.8078647945161651,
"lm_q2_score": 0.8311430478583168,
"openwebmath_perplexity": 563.5830429954628,
"openwebmath_score": 0.568350076675415,
"tags": null... |
javascript, css, html5
text-decoration: none;
padding: 10px 15px 10px 15px;
display: block;
}
#math_quiz #plus_sign { /* static "+" sign */
position:absolute;
left:25px;
top:127px;
font-size:34px;
font-weight:bold;
}
#math_quiz #horz_line { /* horizontal line above the answer */
positio... | {
"domain": "codereview.stackexchange",
"id": 2978,
"lm_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, css, html5",
"url": null
} |
of a simple pendulum depends on its length and acceleration due to gravity? Answer: (a) The period of a simple pendulum equals 2 times π times the square root of the length of the pendulum over g, the acceleration due to gravity. B) increase its length to 2L simple pendulum by extending it to an angle$\theta=5^{\circ}$... | {
"domain": "jameswelling.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9871787830929849,
"lm_q1q2_score": 0.8138913233158339,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 486.29451470729504,
"openwebmath_score": 0.8461595177650452,
"tag... |
hamiltonian-formalism, phase-space, chaos-theory, integrable-systems, integrals-of-motion
Additional insight: my guess is that there are quasiperiodic trajectories. When discussing KAM theorem, one visualizes the phase-space dynamics with a picture of spiral-like trajectories in a $d$-dimensional torus. If the traject... | {
"domain": "physics.stackexchange",
"id": 81736,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "hamiltonian-formalism, phase-space, chaos-theory, integrable-systems, integrals-of... |
c#, client, chat
public string Name { get; set; }
public int Access { get; set; }
public DateTime Seen { get; set; }
public List<Message> Messages { get; set; }
}
internal class Message
{
public string Sender { get; set; }
public string Contents { get; set; }
... | {
"domain": "codereview.stackexchange",
"id": 17343,
"lm_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#, client, chat",
"url": null
} |
particle-physics, electrons, elementary-particles, subatomic
Title: How did physicists run tests to try to study the internal structure of an electrons? How did physicists run tests to try to study the internal structure of an electrons? How specifically did they run tests to try and study it? I've looked around onlin... | {
"domain": "physics.stackexchange",
"id": 76042,
"lm_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, electrons, elementary-particles, subatomic",
"url": null
} |
ros-kinetic, roscpp
Originally posted by ahendrix with karma: 47576 on 2018-06-07
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by vpradeep on 2018-06-07:
Makes sense. You're right that PointCloud::ConstPtr uses std::allocator<void>, and hence they're the same. I guess I just... | {
"domain": "robotics.stackexchange",
"id": 30983,
"lm_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, roscpp",
"url": null
} |
optics, symmetry, fourier-transform, crystals, non-linear-optics
In fact, this selection rule - the forbiddenness of even harmonics in inversion-symmetric media - goes all the way up the harmonic scale, including phenomena where the field is strong enough to break out of the perturbative treatment in David's answer. T... | {
"domain": "physics.stackexchange",
"id": 15068,
"lm_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, symmetry, fourier-transform, crystals, non-linear-optics",
"url": null
} |
experimental-chemistry
If you add some $HCl$ solution, you produce the precipitation of an insoluble gel whose formula has the same skeleton as the previous solution $HO-Si-O-(Si-O)_n-Si-O-Si-OH$. But the Oxygen atoms above and under the main chain are now holding a H atom, and the whole chain is neutral.
This gel ca... | {
"domain": "chemistry.stackexchange",
"id": 13277,
"lm_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-chemistry",
"url": null
} |
quantum-mechanics, schroedinger-equation, potential, perturbation-theory, approximations
Numerical methods
Finally, you can solve the SE numerically. You place the SE on a lattice, with lattice x spacing $\epsilon$, and lattice time spacing $\epsilon^2$ (this is very important in a naive discretization, otherwise you ... | {
"domain": "physics.stackexchange",
"id": 1985,
"lm_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, schroedinger-equation, potential, perturbation-theory, approxima... |
general-relativity, special-relativity, group-theory
Title: Thomas precession and Lorentz group I've recently learned about the Thomas precession. To shallowly summarize the Thomas precession takes place when you have a boost of first system to second system and then from the second system you have another non-colline... | {
"domain": "physics.stackexchange",
"id": 90997,
"lm_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, special-relativity, group-theory",
"url": null
} |
java, beginner, object-oriented, battle-simulation
Real life projects usually have higher complexity and less eays to remember contexts. The point here is:
At which point is your context so complext that you switch from "acronym naming" to "verbose nameing"?
Again this point changes with you knowledge and your experi... | {
"domain": "codereview.stackexchange",
"id": 30052,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, object-oriented, battle-simulation",
"url": null
} |
physical-chemistry, computational-chemistry
ADDITIONAL INFORMATIONS
Since the nuclear wavefunction is sharply peaked, (heavy) nuclei can usually be considered as classical particles. Thus instead of the nuclear quantum Hamiltonian
$$
H_n = -\sum_I \frac{1}{2M_I} \nabla^2 + \sum_{I<J} \frac{Z_IZ_J}{|\vec{R}_I-\vec{R}_... | {
"domain": "chemistry.stackexchange",
"id": 5709,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, computational-chemistry",
"url": null
} |
that is it goes from left to right and the y axis is in vertical direction. 5) I Review: Few curves in polar coordinates. theta# determines the direction. Polar coordinates in the figure above: (3. Cylindrical and spherical coordinates Recall that in the plane one can use polar coordinates rather than Cartesian coordin... | {
"domain": "ciadarredamenti.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9898303401461468,
"lm_q1q2_score": 0.8373394866206931,
"lm_q2_score": 0.8459424334245618,
"openwebmath_perplexity": 598.200690655468,
"openwebmath_score": 0.9244123101234436,
"tag... |
algorithm, f#
||
(match generateDown elem with
| Some (a,b) when checkVacancy a -> solveDFS (generateState elem b) (elem, Down) (depth + 1)
| _ -> fa... | {
"domain": "codereview.stackexchange",
"id": 2453,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithm, f#",
"url": null
} |
performance, sql, vba, excel, error-handling
Variable 17 Occured 4.9822807312 % Of Time
Variable 18 Occured 5.0310134888 % Of Time
Variable 19 Occured 5.0113677979 % Of Time
Variable 20 Occured 4.9770355225 % Of Time
QUERIES RAN IN 38.754 SECONDS The reason for the poor performance is that you are taking a non dat... | {
"domain": "codereview.stackexchange",
"id": 31727,
"lm_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, sql, vba, excel, error-handling",
"url": null
} |
c++, beginner
}
print_money_returned(a);
}
}
}
}
} Dynamic Allocation
Firstly, why all those objects on the heap?! There is no need for these pointers, simply remove them. If you did need one, in 90% of cases std::shared_ptr will suffice o... | {
"domain": "codereview.stackexchange",
"id": 28523,
"lm_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",
"url": null
} |
\end{proof}
\end{enumerate}
\end{document}
Output:
This solution keeps the margins as they was befor for the rest of the text and just places the content in the middle ...
• Thanks cfr... Done... Didn't even show the rest of the code.... just added the different approach. – koleygr Jan 15 '18 at 4:04
• Thanks - I h... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9496693617046216,
"lm_q1q2_score": 0.8163963183984495,
"lm_q2_score": 0.8596637433190939,
"openwebmath_perplexity": 5913.193314042658,
"openwebmath_score": 0.9046757221221924,
"tag... |
In the terminology of numerical analysis, computation near an attractive fixed point is stable while computation near a repelling fixed point is unstable. Generally speaking, stable computation is trustworthy while unstable computation is not. The implication for the pictures that we see here is that illustration of at... | {
"domain": "marksmath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575142422757,
"lm_q1q2_score": 0.8409229773318412,
"lm_q2_score": 0.8558511488056151,
"openwebmath_perplexity": 443.57019126515155,
"openwebmath_score": 0.6882277727127075,
"tags":... |
plotting
Adding some dates as indices:
def get_days():
return sorted(np.random.choice(range(1, 31), size=25, replace=True))
year = '2021'
months = ['08', '09']
dates = []
for month in months:
days = get_days()
for day in days:
dates.append(f'{day}/{month}/{year}')
df.index = dates
Dataframe loo... | {
"domain": "datascience.stackexchange",
"id": 10381,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "plotting",
"url": null
} |
ros, cv-bridge, image, image-transport, cvbridge
sensor_msgs::ImagePtr msg = cv_ptr->toImageMsg();
ros::Rate loop_rate(5);
while (nh.ok())
{
pub.publish(msg);
ros::spinOnce();
loop_rate.sleep();
}
}
And the Image Client (taken from UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages):
class ... | {
"domain": "robotics.stackexchange",
"id": 13218,
"lm_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, cv-bridge, image, image-transport, cvbridge",
"url": null
} |
slam, navigation, parameters, rtabmap, rtabmap-ros
We can see that rtabmap set the correct parameters. Now for the private and public parameters:
$ rosparam get /Grid/DepthMax
'20.0'
$ rosparam get /rtabmap/Grid/DepthMax
'20.0'
Both are 20. Note that if we want to change this value online, we should change the publi... | {
"domain": "robotics.stackexchange",
"id": 29248,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, parameters, rtabmap, rtabmap-ros",
"url": null
} |
java, beginner, programming-challenge, interview-questions, complexity
Iterator<Integer> iter = revSet.iterator();
while (iter.hasNext())
{
System.out.print(iter.next() + " ");
}
System.out.println();
/* for (int i = starKeys.leng... | {
"domain": "codereview.stackexchange",
"id": 31083,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, programming-challenge, interview-questions, complexity",
"url... |
expire in the money i.e. Equation $$\eqref{black_scholes_pde}$$ is the celebrated Black-Scholes partial differential equation (PDE) which allowed the authors to compute their influential formula in 1973! The Black Scholes Model is, simply put, a way to value (i.e., put a price on) the options that we discussed above. R... | {
"domain": "stradanove.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987375050346933,
"lm_q1q2_score": 0.8291323745486843,
"lm_q2_score": 0.8397339736884711,
"openwebmath_perplexity": 1365.3738822264638,
"openwebmath_score": 0.824303150177002,
"tags": ... |
classical-mechanics, torque
And yet, torque calculations in literature (see here, page 4) will express the torque of a propeller as about the yaw axis as:
$$
\tau = I \frac{d\omega}{dt} + b\cdot\omega^2
$$
Where the latter term is the drag force and $b$ is the drag coefficient. But hasn't the drag force cancelled out,... | {
"domain": "physics.stackexchange",
"id": 86352,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, torque",
"url": null
} |
$\color{red}{\text{Solution 3:$x_2 = 0 = x_4$}}$ Once again, using backward substitution, we find from the last equation that $18x_3 = -12x_5$ and since $x_5$ is a free variable, we can give it the value $x_5 = 6$, making $x_3 = -4$. The second row does not give any new information. The first row give us $2x_1 = -2x_3 ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9904406014994152,
"lm_q1q2_score": 0.8120556422493835,
"lm_q2_score": 0.8198933293122506,
"openwebmath_perplexity": 184.49153400558663,
"openwebmath_score": 0.8873177170753479,
"ta... |
javascript, html, css
function toggle(el) {
for (div of contentReference) { div.classList.remove("selected"); }
el.classList.add("selected");
}
and following CSS:
.content:not(.selected) > .selectedContent,
.content.selected > .notselectedContent {
display: none;
}
And as I mentioned at the beginning it is p... | {
"domain": "codereview.stackexchange",
"id": 38520,
"lm_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",
"url": null
} |
to be is the inverse of a bijective function bijective since. Has an inverse function well-de ned a Piecewise function is all possible output values a such! Has an inverse function 1-1 and onto an isomorphism is again a homomorphism, and hence isomorphism de a.: B! a as follows the same output, namely 4 is one to one o... | {
"domain": "livefreechallenge.org",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9399133531922388,
"lm_q1q2_score": 0.8132356768838448,
"lm_q2_score": 0.865224091265267,
"openwebmath_perplexity": 601.4878680362862,
"openwebmath_score": 0.9078974723815918,
"... |
experimental-physics, cold-fusion
Weak Force Neutron production: The Widom Larson theory claims that it is possible for a proton and an electron to do inverse beta decay on the surface of a metal, where there are large local electric fields. This is preposterous, because of the MeV difference in proton and neutron mas... | {
"domain": "physics.stackexchange",
"id": 89536,
"lm_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-physics, cold-fusion",
"url": null
} |
c++, parsing
Changes
The code has been reworked according to most of code review points.
The only exception is brackets { and } formatting consistency; I am still in two minds if my approach somewhere should be replaced with lengthier one.
I added the fast::isalpha (12% faster than std::isalpha) (works in assumption ... | {
"domain": "codereview.stackexchange",
"id": 45424,
"lm_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",
"url": null
} |
waves, electrons, wavelength, accelerator-physics, particle-accelerators
Title: is there explicit eqution between radiation electromagnetic wave and accelerator a charge that has curve moving path? i had a basis question i read a rule in electromagnetic when a charge is moving and it has accelerator it will emit elect... | {
"domain": "physics.stackexchange",
"id": 29957,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "waves, electrons, wavelength, accelerator-physics, particle-accelerators",
"url"... |
by the above Hamiltonian path on $$P \operatorname{\square} P$$ is $$$$40, 37, 34, 33, 32, 35, 38, 39, 36,\\ 9, 12, 11, 8, 5, 6, 7, 10, 13,\\ -14, -17, -20, -21, -22, -19, -16, -15, -18,\\ -27, -24, -25, -28, -31, -30, -29, -26, -23,\\ -32, -35, -38, -39, -40, -37, -34, -33, -36,\\ -9, -6, -7, -10, -13, -12, -11, -8, -... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232869627773,
"lm_q1q2_score": 0.8448975511920783,
"lm_q2_score": 0.8596637487122111,
"openwebmath_perplexity": 367.7858082358575,
"openwebmath_score": 0.8006802201271057,
"tag... |
newtonian-mechanics, fluid-dynamics, acoustics, everyday-life, frequency
Title: Why does the sound of my tea stirring go up in tone the faster I stir? I've noticed that when stirring my tea, as I stir faster the tone generated by the stirring goes up. Why is that? Is it something to do with the Doppler Effect?
EDIT --... | {
"domain": "physics.stackexchange",
"id": 74877,
"lm_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, acoustics, everyday-life, frequency",
"url"... |
java, optimization, algorithm, matrix
}
private static void calculateProduct() {
for (int i = 0; i < firstMatrixRows; i++) {
for (int j = 0; j < secondMatrixColumns; j++) {
for (int k = 0; k < secondMatrixRows; k++) {
resultMatrix[i][j] = resultMatrix[i][j]... | {
"domain": "codereview.stackexchange",
"id": 7407,
"lm_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, optimization, algorithm, matrix",
"url": null
} |
python, beginner, object-oriented
remain_buns = required_hot_dogs % HOT_DOGS_BUNS_PER_PACKAGE
if remain_buns != 0:
print(f'you have {remain_buns} left over hot dog buns. ')
Program output
Enter the number of guests: 25
Hot dogs per person: 5
You require 12.5 hot dogs for the cookout.
You require 15.625 buns for t... | {
"domain": "codereview.stackexchange",
"id": 42512,
"lm_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, object-oriented",
"url": null
} |
ros, ros-groovy
Title: what is expected from no_mode in ros?
I am firmware developer for motor control that supports DS 402.
My question is what is expected (in ros) from a motor when it is in operational state, and it's mode was changed from lets say Profile Position or Profile Velocity to so called "no mode".
Here ... | {
"domain": "robotics.stackexchange",
"id": 36161,
"lm_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-groovy",
"url": null
} |
random-forest, prediction
An in-depth coverage of the topic you can find in chapter 7 of "The Elements of statistical Learning" by Hastie et al.
With regards to your second question: If your training data does not contain the variables prop_C and prop_D then your model cannot make use of them. So either include thes... | {
"domain": "datascience.stackexchange",
"id": 6705,
"lm_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, prediction",
"url": null
} |
quantum-mechanics, wavefunction, schroedinger-equation, complex-numbers
How is 1.24 arrived from 1.23? What is the math rule that was used? The conjugate of the product of two numbers is the product of their conjugates:
$$ (uv)^* = u^* v^* $$
So:
$$ \left( \frac{i\hbar}{2m}\frac{\partial^2\psi}{\partial x^2} \right)^... | {
"domain": "physics.stackexchange",
"id": 51850,
"lm_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, complex-numbers",
"url":... |
acid-base, ph, mixtures
$$
Case 2: Mixing equal volumes of three solutions with consecutive pH differences of 1.
Before mixing:
\begin{array}{|c|c|c|}
\hline
&[\ce{H+}]& \mathrm{pH} &n_\ce{H+}\\ \hline
a& x & \log x & xV\\
b&\frac{x}{10} & -\log x + 1 & \frac{xV}{10}\\
c&\frac{x}{100} & -\log x + 2 & \frac{xV}{100}\\... | {
"domain": "chemistry.stackexchange",
"id": 733,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "acid-base, ph, mixtures",
"url": null
} |
homework-and-exercises, special-relativity, inertial-frames, group-theory
The second question linked above and its accepted answer suggest that the two rotations are in general - in 3 spatial dimensions - not inverses of one another. However, the linked answer does not explain what relationship exists between them.
Ta... | {
"domain": "physics.stackexchange",
"id": 70961,
"lm_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, special-relativity, inertial-frames, group-theory",
"url... |
vcf, genomics
false --dynamic-read-disqualification-threshold 1.0 --native-pair-hmm-threads 4 --native-pair-hmm-use-double-precision false --flow-hmm-engine-min-indel-adjust 6 --flow-hmm-engine-flat-insertion-penatly 45 --flow-hmm-engine-flat-deletion-penatly 45 --pileup-detection false --use-pdhmm false --use-pdhmm-o... | {
"domain": "bioinformatics.stackexchange",
"id": 2669,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vcf, genomics",
"url": null
} |
beginner, c, array, linked-list
void List_delete(List *list)
{
free((*list)->elements);
(*list)->elements = NULL;
free(*list);
*list = NULL;
}
static inline usize _closest_power_of_2(usize val)
{
usize p = 1;
while (p < val)
{
p = p << 1;
}
return p;
}
void _resize_if_nee... | {
"domain": "codereview.stackexchange",
"id": 45110,
"lm_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, array, linked-list",
"url": null
} |
at Point A and C = M(A) = M(C) = 0. 15 lessons • 2 h 23 m. Bending Moment (M) is defined as the algebraic sum of the moments of all the forces acting on the beam to the left. 3 Shear Force and Bending Moment Diagrams. Draw the Shear Force (SF) and Bending Moment (BM) diagrams. Draw the Shear Force Diagram. Shear and mo... | {
"domain": "lotoblu.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9678992932829918,
"lm_q1q2_score": 0.8107317627032639,
"lm_q2_score": 0.8376199552262967,
"openwebmath_perplexity": 963.8127792262379,
"openwebmath_score": 0.6833874583244324,
"tags": nul... |
quantum-field-theory, string-theory, topological-field-theory, algebraic-geometry
Nevertheless, a topological string is physically relevant. For an entire list of beautiful applications see https://www.youtube.com/watch?v=rilO7U6OyoM or read this.
Intuitively, you can think of the topological string as computing insta... | {
"domain": "physics.stackexchange",
"id": 67648,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory, string-theory, topological-field-theory, algebraic-geometry"... |
statistical-mechanics, entropy
If the system is in non-equilibrium the system doesn't have equal probability of being in every microstate. In fact if the system is stuck in non-equilibrium ( e.g., a hot part and cold part in the box separated by a thermally insulating wall) it cannot access some microstates at all. He... | {
"domain": "physics.stackexchange",
"id": 96286,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "statistical-mechanics, entropy",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.