text stringlengths 1 1.11k | source dict |
|---|---|
statistical-mechanics, coordinate-systems, partition-function, classical-mechanics
$$Z=\frac{1}{h^3}\int d^3q d^3p \, \, \exp[-\beta H(\bar q,\bar p)] \qquad (*)$$
being $\bar q = (x,y,z)$ or $q=(r,\theta,\phi)$, etc.
*Note. The constant $h$ introduced in the integral (*) in order to maintain $Z$ dimensionless. So $h$... | {
"domain": "physics.stackexchange",
"id": 16522,
"lm_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, coordinate-systems, partition-function, classical-mechanics... |
complexity-theory, lambda-calculus, functional-programming, turing-completeness
I would like to see this reference. The usual assumption is that an access to a array of length $n$ in a RAM is in time $O(1)$ and the equivalent in pure FP is in in time $O(\log n)$. That is not entirely true: the access time in a RAM is ... | {
"domain": "cs.stackexchange",
"id": 2790,
"lm_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, lambda-calculus, functional-programming, turing-completeness",
"url... |
python, beginner, flask, sqlalchemy
Lastly, this snippet is from my models.py and represents the SQLAlchemy models.
class Center(db.Model):
id = db.Column(MEDIUMINT(8, unsigned=True), primary_key=True,
autoincrement=False)
phone = db.Column(VARCHAR(10), nullable=False)
location = db.Colu... | {
"domain": "codereview.stackexchange",
"id": 17647,
"lm_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, flask, sqlalchemy",
"url": null
} |
# All Questions
6k views
### Creating a table/Matrix during a For loop
I have a For loop (with i as a counter), which calculates different values (y1, ...
638 views
### How to extract the numerical value of a dynamical variable
I want to inspect interactively an image by selecting points by the mouse pointer. This... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9458012747599251,
"lm_q1q2_score": 0.8094651075450972,
"lm_q2_score": 0.8558511488056151,
"openwebmath_perplexity": 1595.1263460157386,
"openwebmath_score": 0.5043923258781433,
"ta... |
ros, ros2, topic
Title: ros2 topic list doesn't work in sudo mode
Hi all,
I'm using Ubuntu 22.04.1 LTS with Linux 5.10.0-18-rt-amd64, with ros2 humble debian release.
I try to launch ros2_control from sudo terminal, but I can't see the ros2 topics outside ( from other terminals )
I tried also to launch "ros2 topic l... | {
"domain": "robotics.stackexchange",
"id": 38140,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros2, topic",
"url": null
} |
special-relativity, fourier-transform, coordinate-systems
Fourier transforms are a change of basis on function space. You have a function on configuration space $f(x)$, say, and you would like to describe it by its wavenumber spectrum $\tilde{f}(k)$ instead. Fourier transform gives you the connection between the two b... | {
"domain": "physics.stackexchange",
"id": 9553,
"lm_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, fourier-transform, coordinate-systems",
"url": null
} |
frequency, frequency-modulation
The problem now is finding (an estimate for) $f(x)$. You have two unknowns to determine $a$ and $b$, you need two data points ($\{x_1,y_1\}, \{x_2,y_2\}$) and you solve a system of two (nonlinear) equations with two unknowns.
$$\begin{cases}
y_1=\sin(2\pi (ax_1+b) x_1+C)\\
y_2=\sin(2\pi... | {
"domain": "dsp.stackexchange",
"id": 5266,
"lm_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, frequency-modulation",
"url": null
} |
ros, slam, localization, navigation, rgbdslam-v2
Title: RgbdslamV2 getting coordinates of localization
Hello,
I know this question have been asked before, but i couldnt find out how does it works here on Version2 of RGBDslam.
How can i get the coordinates of localization?
And how to use /tf properly?
thanks
best
Mich... | {
"domain": "robotics.stackexchange",
"id": 18193,
"lm_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, slam, localization, navigation, rgbdslam-v2",
"url": null
} |
c, array, c99
if ((DynArray).count > (Count)) { \
(DynArray).count = (Count); \
} else \
if ((DynArray).count < (Count)) { ... | {
"domain": "codereview.stackexchange",
"id": 22509,
"lm_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, array, c99",
"url": null
} |
c#, algorithm
Exercise: (Easy) Implement operator+ on this type.
Exercise: (Pretty Easy) Implement operator- on this type, and represent negative numbers correctly.
Exercise: (Hard) Implement operator* on this type.
Exercise: (Very hard) Now that you have multiplication and addition, you can get to 2n much faster. Sup... | {
"domain": "codereview.stackexchange",
"id": 30847,
"lm_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#, algorithm",
"url": null
} |
ros, python, message-filter
so the first argument is a node you've created beforehand. You can do that with rclpy.create_node() https://docs.ros2.org/galactic/api/rclpy/api/init_shutdown.html#rclpy.create_node. Second argument is the type and third is the topic.
Originally posted by christophebedard with karma: 641 o... | {
"domain": "robotics.stackexchange",
"id": 36529,
"lm_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, python, message-filter",
"url": null
} |
partitions
base = n+1;
lft = ones(1,n) * base.^(n-1:-1:0).';
rgt = (1:n) * base.^(n-1:-1:0).';
out = zeros(A000085(n),n);
cnt = 0;
m = ones(1,n-1)+1;
d = lft;
powers1 = base.^(1-n:0);
powers2 = base.^(n-1:-1:0).';
while d<=rgt
bs = mod(floor(d.*powers1), base);
vec = 1:n;
ndx = vec(bs(2:end)>m);
if is... | {
"domain": "cs.stackexchange",
"id": 20014,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "partitions",
"url": null
} |
php, callback
public function __get($name)
{
if(array_key_exists($name,$this->values)){
return $this->values[$name];
}
return null;
}
}
class SampleClass extends NotifyPropertyChanged
{
}
$class = new SampleClass();
$class->name = "value";
$class->trackChanges = true;
$class->na... | {
"domain": "codereview.stackexchange",
"id": 9055,
"lm_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, callback",
"url": null
} |
Prove It
Well-known member
MHB Math Helper
Re: Reason why Integral Zero
Hello i would like to know why this integral is Zero:
$$\int_{\gamma(0;1)}\frac{1}{z+2} \mathrm{d}z$$
Well i know by a fundamental result that:
$$\int_{\gamma(a;r)}\frac{1}{z-a} \mathrm{d}z=2\pi\imath$$
But here the point $$z=-2$$ lies outside... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534327754854,
"lm_q1q2_score": 0.8241597812536633,
"lm_q2_score": 0.839733963661418,
"openwebmath_perplexity": 395.88826804261276,
"openwebmath_score": 0.9350738525390625,
... |
quantum-mechanics, visible-light, reflection, optical-materials
Can someone explain me the interaction between the photon and the molecules in case of a reflection on a solid surface with white color?
I am not asking about direction of light, not asking how the photon knows where to go. (This is well explained already... | {
"domain": "physics.stackexchange",
"id": 89052,
"lm_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, visible-light, reflection, optical-materials",
"url": null
} |
- 2 years, 10 months ago
You're right.I'll rethink my solution.Thanks
- 2 years, 10 months ago | {
"domain": "brilliant.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9372107878954105,
"lm_q1q2_score": 0.8285311560706721,
"lm_q2_score": 0.8840392863287585,
"openwebmath_perplexity": 609.0075679861692,
"openwebmath_score": 0.926805317401886,
"tags": n... |
c++, c++11, cache
const size_t maxSize_;
std::unordered_map<KeyType, ListIterator> hashmap_;
std::list<KeyValuePair> itemsList_;
void promoteItemWithKey(const KeyType& key)
{
ListIterator keyIterator = hashmap_[key];
if (std::next(keyIterator) == itemsList_.end()) {
return;... | {
"domain": "codereview.stackexchange",
"id": 33129,
"lm_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, cache",
"url": null
} |
lower-bounds, partial-order, lattices, finite-sets
Title: Efficiently computing minimal elements over partially ordered sets I have a list of sets that I would like to sort into a partial order based on the subset relation.
In fact, I do not require the complete ordering, only the minimal elements.
If I am not mistake... | {
"domain": "cs.stackexchange",
"id": 15303,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lower-bounds, partial-order, lattices, finite-sets",
"url": null
} |
c++, queue, deque
p = vatraits::allocate(va, 1);
vatraits::construct(va, p, value);
});
std::fill(begin(), end(), value);
cb = ce - count;
} else if (count <= ae - ab) {
auto newE = [&](pointer &p){
p = ... | {
"domain": "codereview.stackexchange",
"id": 23180,
"lm_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++, queue, deque",
"url": null
} |
analysis data reading or downloading into Python PyCharm Integrated Development Environment (IDE), data sources, code files originally in. A lot of different things going there, from just plotting stuff properly to looking into low-latency code timings. See the complete profile on LinkedIn and discover Adrián’s connect... | {
"domain": "freccezena.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9632305381464927,
"lm_q1q2_score": 0.8047632511380802,
"lm_q2_score": 0.8354835309589074,
"openwebmath_perplexity": 1894.8592761976015,
"openwebmath_score": 0.26045969128608704,
"t... |
sdformat
Original comments
Comment by davetcoleman on 2017-02-22:
On http://sdformat.org/ there should be a table comparing Gazebo version to SDFormat verison like there is on gazebosim.org. Maybe a link to more details (the ones you just provided here). Where can I open a ticket for this documentation request?
Comme... | {
"domain": "robotics.stackexchange",
"id": 4053,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "sdformat",
"url": null
} |
javascript, ecmascript-6, dom, dice, modules
Should I section my code like I did with the / ----- Player ---- / and bundle my prototype and creating my objects together? Same question with regard to my function section of the game modules?
I don't like this kind of "decoration" in code, I find it noise.
If I had add... | {
"domain": "codereview.stackexchange",
"id": 27082,
"lm_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, ecmascript-6, dom, dice, modules",
"url": null
} |
ros
Title: use nextage hand camera in simulation
Is it possible to use the KaWaDa nextage's hand cameras in simulation? I.e. can I get images from a simulator, e.g. moveit/rviz or gazebo? If so, how? Is someone aware of a tutorial they could point me to?
If I just run roslaunch nextage_ros_bridge hands_ueye.launch, I... | {
"domain": "robotics.stackexchange",
"id": 26542,
"lm_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
} |
astrophysics, astronomy
1c. Consider an astronomical source with a flux density on Earth of fν = 250 milliJansky (mJy), which is constant across all frequencies. ...
$$1\ {\rm Jy} = 10^{-26}\ {\rm W\cdot m^{-2} \cdot Hz^{-1}}$$
Therefore
$$1\ {\rm mJy} = 10^{-29}\ {\rm W\cdot m^{-2} \cdot Hz^{-1}}$$
... We observe i... | {
"domain": "physics.stackexchange",
"id": 99755,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "astrophysics, astronomy",
"url": null
} |
fluid-dynamics
The substantial derivative is defined
$$
\frac{D}{Dt}=\frac{\partial }{\partial t} + u\frac{\partial}{\partial x}+v\frac{\partial}{\partial y}+w\frac{\partial}{\partial z}
$$
My question is, how can I show that if
$$
\frac{Df}{Dt}=0
$$
for a function $f(x,y,z,t)$, if the flow is steady, adiabatic, and i... | {
"domain": "physics.stackexchange",
"id": 92025,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics",
"url": null
} |
thermodynamics, lagrangian-formalism, hamiltonian-formalism, mathematics
$$F(T, V) = -\left[p S - U(S, V) \right] = -\left[ T S - U(S, V) \right] = U - TS$$
with the requirement that, for any particular gas, we express its entropy, $S$, in terms of temperature and volume, $V$, so that $F$ becomes a function of $T$ and... | {
"domain": "physics.stackexchange",
"id": 50523,
"lm_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, lagrangian-formalism, hamiltonian-formalism, mathematics",
"url"... |
pressure, atmospheric-science, air
Title: Does air pressure change at the same rate on high elevation land as in the sky? Is air pressure the same in a place like Denver, which is a mile (1.6 km) above sea level, as the same elevation above actual sea level? Same question for 2 miles high, as in any number of mountain... | {
"domain": "physics.stackexchange",
"id": 96837,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pressure, atmospheric-science, air",
"url": null
} |
pressure, everyday-life, water
Title: Why does a cup on water layer create suction? When I place a cup upside down on a layer of water, say a wet table, and I then try to lift the cup up, I can feel some resistance. So the cup is acting like a suction cup.
However the difference is with a suction cup, you have to pus... | {
"domain": "physics.stackexchange",
"id": 58672,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pressure, everyday-life, water",
"url": null
} |
python, python-2.x, error-handling, iterator
fileCounter = 0
for infile in glob.iglob(r'\input-files\*.txt'):
fileCounter += 1
outfile = r'\output-files\output_%s.txt' % fileCounter
with open(infile, "rb") as inList, open(outfile, "wb") as outlist:
for inline in inlist:
inword = i... | {
"domain": "codereview.stackexchange",
"id": 27380,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-2.x, error-handling, iterator",
"url": null
} |
Since it is at most $c$, and at least $c$, the conclusion is that it is exactly $c$.
• It seems that you claim that there are only $\mathfrak c$ functions from $\mathbb R$ to $\mathbb R$. This is not true; see here. The cardinality of the sets of all functions $\mathbb R\to\mathbb R$ is $\mathfrak c^{\mathfrak c} = 2^... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.979354065042628,
"lm_q1q2_score": 0.8455660812302669,
"lm_q2_score": 0.8633916082162402,
"openwebmath_perplexity": 114.54577447459945,
"openwebmath_score": 0.9183537364006042,
"tag... |
the data twice / r^n \ ) and... Various types of crooked dice ’ s Descriptive Statistics Excel Calculator 3 X^2 \mu + 3 \mu^2. Other arrival times that location-scale transformations often arise when physical units are changed, as..., sample kurtosis and the score \ ( X - \mu ) / \sigma \ ),. Statistics, skewness chang... | {
"domain": "oldfartsbikegang.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808724687407,
"lm_q1q2_score": 0.8211028244800265,
"lm_q2_score": 0.8376199592797929,
"openwebmath_perplexity": 647.6766546311429,
"openwebmath_score": 0.8420978784561157,... |
java, object-oriented, tree
Here's what I got actually
I have a tree whose nodes are of type Node:
import java.util.List;
public interface Node {
String value();
List<Node> childs();
}
I have two implementations of Node:
public final class NodeType1 implements Node {
private final String value;
priv... | {
"domain": "codereview.stackexchange",
"id": 28184,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, tree",
"url": null
} |
javascript, typescript, nosql
}
//to handle the array in the object
let equipValue3
if (Array.isArray(item)) {
item.forEach(element2 => {
let itemKeys = Object.keys(element2)
for (let j = 0; j < itemKeys.length; j++) {
let prop2 = itemKeys[j]
let eq... | {
"domain": "codereview.stackexchange",
"id": 31082,
"lm_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, typescript, nosql",
"url": null
} |
javascript, beginner, html, css, dom
css-small.txt for small display (Example)
body {
font-size: 12px!important;
line-height: 190%!important
}
h1 {
font-size: 160%!important
}
h2 {
font-size: 140%!important
}
h3 {
font-size: 120%!important
}
h4 {
font-size: 100%!important
}
h5 {
font-s... | {
"domain": "codereview.stackexchange",
"id": 33871,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, beginner, html, css, dom",
"url": null
} |
of some piecewise smooth functions of your. 73FSi and 0. 03Fx: Differential Equations Fourier Series and Partial Differential Equations. It is done by applying Euler's rule to. Conventions and first concepts The purpose of these notes is to introduce the Fourier series of a function in L2([ ˇ;ˇ]). To achieve this use F... | {
"domain": "chiesaevangelicapresbiteriana.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8007645837009872,
"lm_q2_score": 0.8198933293122507,
"openwebmath_perplexity": 720.3926557973892,
"openwebmath_score": 0.842540681... |
general-relativity, spacetime, curvature, dark-matter
WHY UNLIKELY
First, they would have had to have been created early in the universe with initially a pretty homogeneous and isotropic distributions in the large. Then thaose would have had to have the property that they not be that cohesive, i.e., that a very large... | {
"domain": "physics.stackexchange",
"id": 41448,
"lm_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, spacetime, curvature, dark-matter",
"url": null
} |
guesser) admittedly lacks material for a greater degree of certainty. Hence, The probability of getting 100 % on the quiz is 0. If the probability of a machine producing a defective part is 0. If you guess at all 40 questions, what are the mean and standard deviation of the number of correct answers? [ reveal answer ] ... | {
"domain": "nxtgeneration.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822877044076955,
"lm_q1q2_score": 0.8248603553577103,
"lm_q2_score": 0.8397339716830605,
"openwebmath_perplexity": 329.75409601172134,
"openwebmath_score": 0.7561070919036865,
... |
game, tic-tac-toe
instead of
for v in board:
board[v] = ' ' # <-- here you're not even clearing the board to what it was before ('-')
and this is what your segment should look like:
def play_again():
print('Would you like to play again?')
play_again = input()
print(type(board))
if play_again == 'Y... | {
"domain": "codereview.stackexchange",
"id": 40348,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "game, tic-tac-toe",
"url": null
} |
java, algorithm, backtracking
compute(a, firstHalf, secondHalf, prevFirstHalf, prevSecondHalf);
firstHalf.remove(i);
secondHalf.add(i);
}
}
}
private static int setSumDiff(Set<Integer> firstHalf, Set<Integer> secondHalf) {
int diff = 0;
for... | {
"domain": "codereview.stackexchange",
"id": 8109,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, algorithm, backtracking",
"url": null
} |
beginner, vba, excel
'Income Statement CoolDrinks
Set InsertRange = Worksheets("Income
Statement").Range("CoolDrinksIncome")
iColumns = InsertRange.Columns.Count
Set InsertRange = Range(InsertRange.Cells(2, 1),
InsertRange.Cells(2, iColumns))
InsertRange.Insert Shi... | {
"domain": "codereview.stackexchange",
"id": 13693,
"lm_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, vba, excel",
"url": null
} |
homework-and-exercises, electromagnetism, special-relativity
Title: Relation of Magnetic field and electric field There is a wire in which the protons are non-moving with a charge density of $\lambda_+$ and the electrons move at a velocity u to the right with a charge density $\lambda_-$ in a rest frame. A particle of... | {
"domain": "physics.stackexchange",
"id": 44945,
"lm_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",
"url": null
} |
python, python-3.x
number 98765432):
• IBAN: GB82WEST12345698765432
• Rearrange: WEST12345698765432GB82
• Convert to integer: 3214282912345698765432161182
• Compute remainder: 3214282912345698765432161182 mod 97 = 1 | {
"domain": "codereview.stackexchange",
"id": 34738,
"lm_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
} |
Function. You're right! In fact that's the beauty of modular arithmetic. Multiply that by 8 and you have the remainder: 3. Modulo division is expressed with the percentage sign. The Progress Test in Maths (PTM) is a standardised assessment of pupils’ mathematical skills and knowledge. It is defined as the ratio between... | {
"domain": "caterinacentofante.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9780517462851323,
"lm_q1q2_score": 0.8213032734967765,
"lm_q2_score": 0.8397339676722393,
"openwebmath_perplexity": 724.6602341627087,
"openwebmath_score": 0.6509706377983093,
... |
nuclear-physics
So Jupiter pressure in its center and even pressures at which hydrogen becomes metallic (which probably be practical boundary to which object dropped from space fall) are enough to compress plutonium at least twice. That means slightly subcritical chunk of fissile material sinking into Jupiter will bec... | {
"domain": "physics.stackexchange",
"id": 8861,
"lm_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",
"url": null
} |
= , then we can define the total, which due to the Bienaymé formula, will have variance, The mean of these measurements The standard error of the regression is the average distance that the observed values fall from the regression line. ) The formula given above for the standard error assumes that the sample size is mu... | {
"domain": "mecaartfair.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9546474181553805,
"lm_q1q2_score": 0.8542084442330713,
"lm_q2_score": 0.8947894562828415,
"openwebmath_perplexity": 773.6649043747163,
"openwebmath_score": 0.8511279225349426,
"tags"... |
\begin{align*} ac+ab'c+ab&=ac(b+b')+ab'c+ab(c+c')\\ &=abc+ab'c+ab'c+abc+abc'\\ &=abc+ab'c+abc'\;. \end{align*}
Alternatively, you can make what amounts to a truth table for the expression:
$$\begin{array}{cc} a&b&c&ac+b&b'c&a+b'c&ac&(ac+b)(a+b'c)+ac\\ \hline 0&0&0&0&0&0&0&0\\ 0&0&1&0&1&1&0&0\\ 0&1&0&1&0&0&0&0\\ 0&1&1... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357640753516,
"lm_q1q2_score": 0.8379088762064089,
"lm_q2_score": 0.8558511414521922,
"openwebmath_perplexity": 389.73234315926794,
"openwebmath_score": 0.7091560363769531,
"ta... |
quantum-field-theory, operators, s-matrix-theory, wick-theorem
Title: Free Vacuum vs Interacting Vacuum and Wick's theorem I'm studying perturbation theory in QFT and I stumbled on a conceptual problem.
My understanding of the interplay between LSZ reduction formula and the Gell-Mann & Low perturbation series is that:... | {
"domain": "physics.stackexchange",
"id": 25053,
"lm_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, operators, s-matrix-theory, wick-theorem",
"url": null
} |
2 & 0\\ 0 & 4 \end{bmatrix}$$ then, P T = $$\begin{bmatrix} 2 & 0\\ 0 & 4 \end{bmatrix}$$ The transpose of a lower triangular matrix is an upper triangular matrix and the transpose of an upper triangular matrix is a lower triangular matrix. Given a matrix A, return the transpose of A.. The transpose of a transpose matr... | {
"domain": "philhallmark.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9780517462851321,
"lm_q1q2_score": 0.8332539275558383,
"lm_q2_score": 0.8519528038477825,
"openwebmath_perplexity": 640.7221725232843,
"openwebmath_score": 0.7220755815505981,
"tags... |
quantum-mechanics, operators, hilbert-space, time-evolution
To show this equivalence, we first use an important property of the unitary time evolution operator, namely
$$\psi(t_1) = \hat{U}(t_1,t_0) \psi(t_0)$$
i.e. we propagate our wavefunction in time be acting $\hat{U}$ on it. With this, we can now redefine the wa... | {
"domain": "physics.stackexchange",
"id": 58907,
"lm_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, operators, hilbert-space, time-evolution",
"url": null
} |
measurements, error-analysis, approximations, observables, models
Title: Laws of Physics and Resolution of Measurement
Any 'physical' quantity is expressed as (generally) a Real Number. Real Numbers are abstract mathematical constructs.
Laws of Physics are written as mathematical equations; where these real numbers ... | {
"domain": "physics.stackexchange",
"id": 72579,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "measurements, error-analysis, approximations, observables, models",
"url": null
... |
classification, dataset, clustering
Descriptive Statistics
You could extract for each ID a number of statistics over SUB_IDs and SUB_ID_WEIGHTs, e.g.
Number of listed SUB_IDs
Min / Max / Mean SUB_ID_WEIGHT
The augment the first table with these statistics
PROS: This approach is easy to implement.
CONS: The clusterin... | {
"domain": "datascience.stackexchange",
"id": 11944,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classification, dataset, clustering",
"url": null
} |
octomap, octomap-server, pointcloud
Another bottleneck with large point clouds may be the serialization and deserialization when running it through a filtering and map building pipeline. I'm pretty sure that any ROS node just doing this with 91 Mio pts at 60Hz will also saturate the CPU. You can avoid that by using th... | {
"domain": "robotics.stackexchange",
"id": 12390,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "octomap, octomap-server, pointcloud",
"url": null
} |
Second, the symbolic integration must be extended to 2D:
import sympy as sp
integrand = psi[i]*psi[j]
I = sp.integrate(integrand,
(x, Omega[0][0], Omega[0][1]),
(y, Omega[1][0], Omega[1][1]))
provided integrand is an expression involving the sympy symbols x and y. The 2D version of numerical integration becomes
if... | {
"domain": "github.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471675459395,
"lm_q1q2_score": 0.8043683282878586,
"lm_q2_score": 0.817574471748733,
"openwebmath_perplexity": 798.4618250959904,
"openwebmath_score": 0.832077145576477,
"tags": null,
... |
c#, algorithm, pathfinding
frontier.Add(new PathNode(start, 0, 0, null));
ignoredPositions.UnionWith(obstacles);
var step = 0;
while (frontier.Count > 0 && ++step <= maxSteps)
{
PathNode current = frontier.Min;
if (current.Pos... | {
"domain": "codereview.stackexchange",
"id": 38851,
"lm_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#, algorithm, pathfinding",
"url": null
} |
zoology, mathematical-models, software, imaging
The horns change every year and, especially, increase the number of branches (and consequently, change their shape). You can't recognize them by antlers, but by other features, such as color of the hair or the lineaments. Like us, animals have individual morphological di... | {
"domain": "biology.stackexchange",
"id": 951,
"lm_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, mathematical-models, software, imaging",
"url": null
} |
quantum-mechanics, interference, quantum-interpretations, causality, time-reversal-symmetry
The second two amplitudes, which in a path-integral type picture presumably would correspond to the two paths that go through the smaller interferometer, do not in general cancel out. So the statement that the interferometer is... | {
"domain": "physics.stackexchange",
"id": 49178,
"lm_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, interference, quantum-interpretations, causality, time-reversal... |
c++, c++11, template, qt
If this is intuitive and usable.
If this can backfire in the future in some unexpected way.
If this approach can be improved somehow. That's definitely an interesting approach. However, I would say that this interface is trying to accomplish too much. That is, average should just be responsibl... | {
"domain": "codereview.stackexchange",
"id": 10398,
"lm_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, template, qt",
"url": null
} |
python, recursion, numbers-to-words
else:
result = (singleton[int(number % 10)] + " " + str(face_value[int(face_value_count)]) + " ") + result
face_value_count += 1
rec_ntw(number // 10, face_value_count) | {
"domain": "codereview.stackexchange",
"id": 29798,
"lm_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, recursion, numbers-to-words",
"url": null
} |
electromagnetism, geophysics, metals, radio-frequency
So again low frequencies like ELF propagate better.
By the way, they also propagate pretty good above ground, with the ground and the ionosphere forming a duct. Lots of papaer on the physics and propagation for these waves. | {
"domain": "physics.stackexchange",
"id": 41609,
"lm_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, geophysics, metals, radio-frequency",
"url": null
} |
quantum-field-theory, electric-fields, quantum-electrodynamics, higgs
It may sure be well-known among others, but I for one, am not aware of it. Can someone explain to me with an illustrative example (QED) how this works?
Thanks. As Dan Yand says in a comment, the reason the electric field is "screened" in the Higgs p... | {
"domain": "physics.stackexchange",
"id": 56207,
"lm_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, electric-fields, quantum-electrodynamics, higgs",
"url": n... |
python, svm
Title: Having trouble understanding the x and y axis in SVM when training and testing data I wrote some code based on this article.
In the code in the article they have created a partition of 80 percent test and 20 percent data
#What percentage of data you want to keep for training
percentage = 80
partiti... | {
"domain": "datascience.stackexchange",
"id": 7452,
"lm_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, svm",
"url": null
} |
homework-and-exercises, newtonian-mechanics, projectile, estimation, string
Title: What is the longest distance that can be jumped after swinging from a rope? In the movie Mission Impossible 3, the main character Ethan Hunt tries to enter a building in Shanghai by swing through the sky, as shown below:
The jump consi... | {
"domain": "physics.stackexchange",
"id": 32433,
"lm_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, newtonian-mechanics, projectile, estimation, string",
"u... |
optics, quantum-optics, estimation, lenses
Title: Are quantum effects significant in lens design? Over on Photography, a question was asked as to why (camera) lenses are always cylindrical. Paraphrasing slightly, one of the answers and follow-up comments asserted that quantum effects are significant and that you need ... | {
"domain": "physics.stackexchange",
"id": 66640,
"lm_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, quantum-optics, estimation, lenses",
"url": null
} |
java, beginner
size = size - 1;
int xFirstPlayerProximity = 0;
int yFirstPlayerProximity = 0;
int xSecondPlayerProximity = 0;
int ySecondPlayerProximity = 0;
int firstPlayerResult;
int secondPlayerResult; | {
"domain": "codereview.stackexchange",
"id": 40610,
"lm_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
} |
particle-physics, standard-model
Title: Does the Standard Model of Particle Physics actually state that particles don't exist? If so looks like it's slightly mis-named.
Heard many times - no particles, just vibrations or oscillations in quantum fields. It depends what you understand as the meaning of the term "particl... | {
"domain": "physics.stackexchange",
"id": 88782,
"lm_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, standard-model",
"url": null
} |
python, beginner, csv, file-system, pandas
The code looks at the directory C:\logs and loops through all files in the directory first to identify a separator and header, then if the separator is space it will check if it is a fixed width file. use the information here to identify all fields and their related attribute... | {
"domain": "codereview.stackexchange",
"id": 35200,
"lm_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, csv, file-system, pandas",
"url": null
} |
graph-theory, hamiltonian-paths
ben A polytime algorithm that can find such a collection of edges even in the promise version of this problem can be used as a blackbox to solve the Hamiltonian Path problem in polynomial time, and thus this promise problem is NP-Hard under Cook reductions. The idea here is to use the a... | {
"domain": "cstheory.stackexchange",
"id": 2408,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "graph-theory, hamiltonian-paths",
"url": null
} |
$1.0$. An even better algorithm would be to only check subslopes that are "complementary" in that the combination of them is "ballpark" to the slope they were derived from. For example: if the program tells me the slope from mile $0$ to $1$ should be around $.2154$ (which it did), then when I bisect that into $2$ slope... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765563713599,
"lm_q1q2_score": 0.8290037642143584,
"lm_q2_score": 0.84594244507642,
"openwebmath_perplexity": 585.4001319214722,
"openwebmath_score": 0.8097679615020752,
"tags"... |
javascript
args.data = JSONToURLString(args.data);
if (args.method === "GET")
args.url = args.url + '?' + args.data; | {
"domain": "codereview.stackexchange",
"id": 10191,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript",
"url": null
} |
optics, geometric-optics
Life is simple when everything is still flat and straight. Enjoy it while it lasts. | {
"domain": "physics.stackexchange",
"id": 23587,
"lm_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, geometric-optics",
"url": null
} |
c++, array, reinventing-the-wheel, windows, vectors
/**
* Returns copy of last element of array and removes it from array
*/
FORCEINLINE ElementType Pop()
{
HERMES_ASSERT(ElementCount > 0)
auto Result = Data[ElementCount - 1];
RemoveAt(ElementCount ... | {
"domain": "codereview.stackexchange",
"id": 40432,
"lm_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++, array, reinventing-the-wheel, windows, vectors",
"url": null
} |
homework-and-exercises, newtonian-gravity
Now there are some ambiguities here:
Do negative masses behave mathematically consistent(we can use $F=m a$), which I have assumed to be the case.
Is this attraction duo to the big sphere of water or the other sphere? Looking at equation $(1)$, it seems to be the first case; ... | {
"domain": "physics.stackexchange",
"id": 55072,
"lm_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, newtonian-gravity",
"url": null
} |
bash
This makes it easy to add cleanup or other functionality to fatal errors. The function can be as simple as:
die() {
notify_user "$1" "${2:-error}"
exit ${3:-1}
}
tempfiles considered harmful
Most tempfile contents are better stored in a variable. Variables avoid all kinds of failure modes—disk full, no... | {
"domain": "codereview.stackexchange",
"id": 33775,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "bash",
"url": null
} |
machine-learning, expectation-maximization
You can't do it because you don't know the latent variables. If you do, they are not latent by definition.
EM algorithm is a numerical method to estimate maximum likelihood when you have latent variables. The mathematics is complicated but the idea is simple. You start off wi... | {
"domain": "ai.stackexchange",
"id": 230,
"lm_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, expectation-maximization",
"url": null
} |
special-relativity, mass, speed-of-light, momentum
Title: Clarification on infinite mass/momentum argument While reasoning that why a particle can not be accelerated to light speed $c$, it is argued that the mass/momentum approaches infinity as speed approaches $c$. I think it is per GR.
I am sure this also fits into ... | {
"domain": "physics.stackexchange",
"id": 37098,
"lm_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, mass, speed-of-light, momentum",
"url": null
} |
solidworks
Title: Reverse direction of fillet How do you reverse the direction of a fillet like that highlighted below? During the selection process, select the two faces (instead of selecting an edge).
This should create the desired outcome. | {
"domain": "engineering.stackexchange",
"id": 3944,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solidworks",
"url": null
} |
cosmology, power, cosmic-microwave-background
The correlation function answers the following question: suppose we are given two points on the sky are separated by an angle $\theta$. If we measure the temperature fluctuation at point $1$, what do we expect the temperature fluctuation at point $2$ (separated from $1$ by... | {
"domain": "physics.stackexchange",
"id": 92927,
"lm_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, power, cosmic-microwave-background",
"url": null
} |
We show this claim is true for $k=2$. Observe that there cannot exist $U_1, U_2 \in \mathcal{U}_{m+1}$ such that $x \in U_1$, $y \in U_2$ and $U_1 \cap U_2 \ne \varnothing$. If there exists such a pair, then $U_1 \cup U_2$ would be contained in $\text{St}(x,\mathcal{U}_m)$ and $\text{St}(y,\mathcal{U}_m)$, a contradict... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9863631631151012,
"lm_q1q2_score": 0.8460708576709252,
"lm_q2_score": 0.8577681013541611,
"openwebmath_perplexity": 136.46652973402306,
"openwebmath_score": 0.993003785610199,
"tags": ... |
homework-and-exercises, newtonian-mechanics, reference-frames, friction, inertial-frames
Title: Dependence (or lack thereof) of forces on frames of reference Consider a block A on top of block B with a coefficient of friction of say 0.3 in between them and the path providing zero resistance (no friction), with the bot... | {
"domain": "physics.stackexchange",
"id": 87900,
"lm_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, newtonian-mechanics, reference-frames, friction, inertial-... |
c#, object-oriented, multithreading, game
Also about the old previous-installed event handlers for Click I also thought that would screw things up but having ran a dozen iterations of the game and seperate rounds without a problem, it doesn't seem to do so?
If I put a breakpoint in the event handler I can see that it... | {
"domain": "codereview.stackexchange",
"id": 6732,
"lm_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, multithreading, game",
"url": null
} |
newtonian-mechanics, energy, reference-frames, mass, relative-motion
What's also happening here is that when the person jumps, they are in a non-inertial, accelerating reference frame. In non-inertial frames, fictitious pseudoforces often appear as a means of balancing the force equations - these forces do not actuall... | {
"domain": "physics.stackexchange",
"id": 94319,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, energy, reference-frames, mass, relative-motion",
"url": nu... |
cosmology, dark-matter, neutrinos
Title: Are neutrinos and sterile neutrinos both dark matter candidates? Are both neutrinos and sterile neutrinos candidates for dark matter?
In particular, why would "standard" neutrinos be a candidate for dark matter, since they interact with matter?
Why would explicitly sterile neut... | {
"domain": "physics.stackexchange",
"id": 66909,
"lm_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, dark-matter, neutrinos",
"url": null
} |
pcl
Title: pcl down sampling and filtering - retaining width and height (organized cloud)
Is it possible to retain width and height (organized cloud) after doing some operations with PCL library?
I am doing down sampling with VoxelGrid and then PassThrough filtering. In every step I loose width and height data and ge... | {
"domain": "robotics.stackexchange",
"id": 9352,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pcl",
"url": null
} |
star, planet, exoplanet, distances, mass
Or should the ratio of 1.1127 between their semi-major axis be considered to the minimum possible ratio between consecutive planetary orbits?
If it is the ratio between orbits which determines the minimum spacing of planetary orbits, if a planet orbits very close to its star th... | {
"domain": "astronomy.stackexchange",
"id": 5104,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "star, planet, exoplanet, distances, mass",
"url": null
} |
-
I am certain your idea is correct. But do your $m$-bit numbers start from $0$ or $1$? I am just checking trivial things like $b$ or $b+1$, $>$ or $\geq$, and so on... – Srivatsan Sep 9 '11 at 22:25
Oh in my mind m starts from 1. Also, if my solution is correct, then the expected number of flips is $\frac {m \times 2... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769113660689,
"lm_q1q2_score": 0.8232845719218764,
"lm_q2_score": 0.8438950966654772,
"openwebmath_perplexity": 546.0347636386051,
"openwebmath_score": 0.8819178938865662,
"tag... |
quantum-mechanics, quantum-field-theory, classical-mechanics
$$E(u)=-\hbar^2\int_{\mathbb{R}^3}\bar{u}(x)\Delta_x u(x)dx\; ;$$
where $u\in L^2(\mathbb{R}^3)$ is the "classical" (more properly, mean field) variable corresponding to the annihilation operator valued distribution $a(x)$. The interpretation is of a free qu... | {
"domain": "physics.stackexchange",
"id": 29648,
"lm_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, quantum-field-theory, classical-mechanics",
"url": null
} |
ros, ros-melodic, gazebo-ros-control
<transmission name = "joint_left_wheel_trans">
<type> transmission_interface/SimpleTransmission </type>
<joint name = "joint_left_wheel">
<hardwareInterface> hardware_interface/VelocityJointInterface </hardwareInterface>
</joint>
<actuator na... | {
"domain": "robotics.stackexchange",
"id": 35878,
"lm_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, gazebo-ros-control",
"url": null
} |
php, array, php5, pdo, statistics
foreach($histogram as $key => $val) {
$flotHistogram[$key] = (is_array($val)) ? ( (count($val)) ? count($val) : 0 ) : 0;
}
// And finally it just counts them, and returns a new array.
As you can see in my code, I'm making an excessive use of foreach loops to basically ... | {
"domain": "codereview.stackexchange",
"id": 5152,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, array, php5, pdo, statistics",
"url": null
} |
(10 votes, average: 3.30 out of 5)
# Deriving PDF of Rayleigh random variable
by on July 17, 2008
In the post on Rayleigh channel model, we stated that a circularly symmetric random variable is of the form $Z = X + jY$, where real and imaginary parts are zero mean independent and identically distributed (iid) Gaussi... | {
"domain": "dsplog.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850867332735,
"lm_q1q2_score": 0.8014429091221124,
"lm_q2_score": 0.8152324960856175,
"openwebmath_perplexity": 766.9474803529164,
"openwebmath_score": 0.9152762293815613,
"tags": nul... |
for Class 9 Science Chapter 12, NCERT Solutions for Class 9 Science Chapter 11, NCERT Solutions for Class 9 Science Chapter 13, NCERT Solutions for Class 9 Science Chapter 14, NCERT Solutions for Class 9 Science Chapter 15, NCERT Solutions for Class 10 Social Science, NCERT Solutions for Class 10 Maths Chapter 1, NCERT... | {
"domain": "gridserver.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.957912274487423,
"lm_q1q2_score": 0.8063951261825719,
"lm_q2_score": 0.8418256532040707,
"openwebmath_perplexity": 987.9640415293046,
"openwebmath_score": 0.8588264584541321,
"tag... |
vb.net, validation, exception
"Exceptions are expensive"
"Throwing and catching exceptions is expensive", you'll read [almost] everywhere. There's truth in that, Jon Skeet has a great article here that correlates performance to the depth of the call stack. The reason for this, is because the thread stops at the throw ... | {
"domain": "codereview.stackexchange",
"id": 7021,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vb.net, validation, exception",
"url": null
} |
general-relativity, metric-tensor
Remember that $\sqrt{-g }$ is actually a tensor density. We must be careful when expanding its (vanishing) covariant derivative. Let's try to not repeat the argument in the link you provided, instead let's use the old useful argument $\delta (\det M)= (\det M )\, \mathrm{Tr}[M^{-1}\de... | {
"domain": "physics.stackexchange",
"id": 46027,
"lm_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, metric-tensor",
"url": null
} |
• Can it not be shown that $(M,L)$ is minimal sufficient? Furthermore, does it not make sense that $\max{ \{M/5, -L/2 \}}$ is a function of $(M,L)?$ – Dylan_Carlo_Beck Aug 13 '17 at 15:02
• What do you means, does it not make sense? Not sure if you're asserting it does or doesn't make sense and what is the significance... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534311480466,
"lm_q1q2_score": 0.8178692833290426,
"lm_q2_score": 0.8333245953120233,
"openwebmath_perplexity": 104.94289924683882,
"openwebmath_score": 0.8650790452957153,
"ta... |
Thanks a lot skeeter, I very much appreciate your helping me out. And I can make sure I don't repeat the mistake in the future. :)
Grep.
• Apr 13th 2009, 05:00 PM
Reckoner
Just to narrow down your mistake, in case you haven't realized it yet:
Quote:
Originally Posted by Grep
Solving for y gives me: $y = \sqrt{\frac{... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9579122696813394,
"lm_q1q2_score": 0.8103386345612342,
"lm_q2_score": 0.8459424314825853,
"openwebmath_perplexity": 594.3444595489284,
"openwebmath_score": 0.8343005776405334,
"tag... |
ros, slam, octomap
ROS_INFO("Deserialized Octomap");
// going from base to derived types (Abstract -> Color)
octomap::ColorOcTree* octree = dynamic_cast<octomap::ColorOcTree*>(tree);
ROS_INFO("Dynamic Casted");
// iterator
for(octomap::ColorOcTree::leaf_iterator it = octree->begin_leafs(), end = octree... | {
"domain": "robotics.stackexchange",
"id": 39051,
"lm_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, slam, octomap",
"url": null
} |
molecular-biology, bioinformatics, network
So I would appreciate any explanation/advice and references you could provide that would help me understand the biological meaning/interpretation of clustering coefficience. First of all, I find this an interesting question.
In short: | {
"domain": "biology.stackexchange",
"id": 2221,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, bioinformatics, network",
"url": null
} |
thermodynamics, fluid-dynamics, condensed-matter, electrons, conservation-laws
\left|\nabla n_{1}(\boldsymbol{r}, t)\right| \ll\left|\nabla \frac{\partial}{\partial t} \tilde{\boldsymbol{r}}(\boldsymbol{r}, t)\right|
\end{array}
$$
The following relation can be obtained from the continuity equation:
$$\tag{3}
\nabla n... | {
"domain": "physics.stackexchange",
"id": 76941,
"lm_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, fluid-dynamics, condensed-matter, electrons, conservation-laws",
... |
Continuous uniform distribution example shampoo bottle volume the volume, x, of shampoo lled into a container is uniformly distributed. The two builtin functions in r well use to answer questions using the geometric distribution. If we take many, many random samples from some population of interest and calculate the sa... | {
"domain": "web.app",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713878802044,
"lm_q1q2_score": 0.8078174471572794,
"lm_q2_score": 0.8198933381139645,
"openwebmath_perplexity": 262.3417673963411,
"openwebmath_score": 0.8667429685592651,
"tags": null,
... |
c#, mvc, entity-framework, asp.net-mvc, asp.net-mvc-5
_employeeRep = (User.Identity.GetUserId() != null) ? new EmployeeRep(User.Identity.GetUserId()) : null;
}
public ActionResult Index(int id)
{
NHUser currentUser = _employeeRep.CurrentUser;
NHUser employee = _employeeRep.GetById(id);
... | {
"domain": "codereview.stackexchange",
"id": 17269,
"lm_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#, mvc, entity-framework, asp.net-mvc, asp.net-mvc-5",
"url": null
} |
image-processing, computer-vision, image-segmentation, thresholding
To detect ridges, we want to find areas in the image that look like the last of the plots above, so we're looking for areas where the major eigenvalue of the Hessian is large (compared to the minor eigenvalue). The simplest way to detect that is just ... | {
"domain": "dsp.stackexchange",
"id": 5234,
"lm_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, computer-vision, image-segmentation, thresholding",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.