text stringlengths 49 10.4k | source dict |
|---|---|
performance, primes, assembly, sse
vpmovmskb r10d, ymm2 ; Check the upper bits for underflows
test r10d, r10d
setz r14l
add rax, r14
dec rcx
jnz .top
The inner loop has now grown to 8 instructions from 6, but we have banished the branch mispredictions:
$ perfc stat ./likely-primes time ProcessA2... | {
"domain": "codereview.stackexchange",
"id": 26669,
"lm_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, primes, assembly, sse",
"url": null
} |
# If $$(10)^9$$ + $$2(11)^1(10)^8$$ + $$3(11)^2(10)^7$$ + …… + $$10(11)^9$$ = $$K(10)^9$$, then k is equal to
## Solution :
$$K(10)^9$$ = $$(10)^9$$ + $$2(11)^1(10)^8$$ + $$3(11)^2(10)^7$$ + …… + $$10(11)^9$$
K = 1 + 2$$({11\over 10})$$ + 3$$({11\over 10})^2$$ + ….. + 10$$({11\over 10})^9$$ ……(i)
$$({11\over... | {
"domain": "mathemerize.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9901401429507652,
"lm_q1q2_score": 0.8207655880766634,
"lm_q2_score": 0.828938806208442,
"openwebmath_perplexity": 379.4554732916716,
"openwebmath_score": 0.6528736352920532,
"tags":... |
ros, 2dlaserscan, pointcloud
What can I do now? can anybody help? Thanks
Originally posted by grapeson on ROS Answers with karma: 16 on 2017-10-24
Post score: 0
Original comments
Comment by jayess on 2017-10-24:
Welcome! To make your question easier to read (and hopefully get more people reading it) I formatted your... | {
"domain": "robotics.stackexchange",
"id": 29171,
"lm_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, 2dlaserscan, pointcloud",
"url": null
} |
filters, python, lowpass-filter, scipy
yields a filter which behaves identically to the original one in the forward direction (filtered_signal_2):
and behaves a little better in the backward direction (precompensated_signal_2):
though the resulting signal is still questionable. The only coefficient that differs from... | {
"domain": "dsp.stackexchange",
"id": 10340,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "filters, python, lowpass-filter, scipy",
"url": null
} |
multiverse
Title: What are the laws of physics of the Multiverse ? What is the multiversal constant? What are the laws of physics outside our Universe ? Can a Multiverse constant exist ? And what is the Multiverse constant if it exists ? A multiverse is highly speculative. In multiverse theories, fundamental constants... | {
"domain": "physics.stackexchange",
"id": 56327,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "multiverse",
"url": null
} |
orbit, solar-system, planet, gas-giants, orbital-migration
Title: Why do the gas giants in the Solar System have comparatively large orbits compared to the inner planets? Ever since I observed the depictions of the Solar System, I was obsessed with the question of why the gas giants (outer planets) have very large orb... | {
"domain": "astronomy.stackexchange",
"id": 1514,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbit, solar-system, planet, gas-giants, orbital-migration",
"url": null
} |
solar-system, jupiter, hydrogen, helium
Title: Is Jupiter a failed star? The elemental make-up of Jupiter is about entirely hydrogen and helium, along with a very small fraction of the atmosphere being made up of compounds such as ammonia, sulfur, methane, and water vapor. These elements are dominant in stars, so how ... | {
"domain": "astronomy.stackexchange",
"id": 4435,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solar-system, jupiter, hydrogen, helium",
"url": null
} |
python, performance, numpy
# M summatory.
sum_M_j = 0.
for g_j in g_M:
# Obtain ijk element inside the M summatory
D_sum, sigma_ijk = 0., 1.
for k, f_ik in enumerate(f_i):
# Where: f_ik[0] = \f_{ik} ; g_j[k][0] = \g_{jk}
# and: f_ik[1] = \sigma_{ik}^2 ; ... | {
"domain": "codereview.stackexchange",
"id": 24748,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, performance, numpy",
"url": null
} |
javascript, jquery
if(load == 'OK') {
$(".load img").attr("src","http://placehold.it/40/00cc33/ffffff");
}
else if(load == 'WARNING') {
$(".load img").attr("src","http://placehold.it/40/ff6600/000000");
}
else if(load == 'CRITICAL') {
$(".load... | {
"domain": "codereview.stackexchange",
"id": 20012,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery",
"url": null
} |
mass-spectrometry, isotope
The amount of $\ce{^{79}Br}$ and $\ce{^{81}Br}$ in nature is roughly the same, thus each permutation is equally probable. There are two arrangements that lead to $160$. While $158$ and $162$ each have only one arrangement. Therefore $160$ is twice as likely to be found compared to other mass... | {
"domain": "chemistry.stackexchange",
"id": 9175,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mass-spectrometry, isotope",
"url": null
} |
opencv, dwt, numpy
So, the inverse wavelet tranform is likely to be crappy. THe simplest way around:
divide all coeffciients by their maximal absolute value (and keep track of it),
code all the $[0,1]$ magnitudes on $7$ bit,
code the sign on the $8$th bit. | {
"domain": "dsp.stackexchange",
"id": 6861,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "opencv, dwt, numpy",
"url": null
} |
general-relativity, black-holes, vacuum
Title: Can I say that the two-body problem is also a vacuum solution for the special case of two orbiting black holes? A two body system is one where two bodies orbit each other. In the case of two orbiting black holes, since an individual black hole is described by a vacuum sol... | {
"domain": "physics.stackexchange",
"id": 24385,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, black-holes, vacuum",
"url": null
} |
python, performance, python-3.x, sorting
Title: Strand Sort in Python After reading about Strand Sort on Wikipedia and testing the provided Python version, I decided to try my hand at a faster implementation. I've studied the "Time Complexity" page, read many different approaches to mergesort (and borrowed some), test... | {
"domain": "codereview.stackexchange",
"id": 16107,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, performance, python-3.x, sorting",
"url": null
} |
general-relativity, gravity, newtonian-gravity
(Someone is going to point out this isn't strictly true because the precession of Mercury is about 500 arc-seconds/century, however only 43 arc-seconds of this are due to relativistic corrections. The rest is due to perturbations from other planets accurately predicted by... | {
"domain": "physics.stackexchange",
"id": 6181,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, gravity, newtonian-gravity",
"url": null
} |
Putting these together gives +1.17 J/K which is positive as expected.
BTW, good job asking the question. That is one great way to evaluate each answer you get; you were right to question the negative answer.
• I added complete calculations of my problem – Greg Harrington Sep 8 '13 at 6:15
• You can use Celsius for ch... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9324533107374444,
"lm_q1q2_score": 0.810140400793581,
"lm_q2_score": 0.8688267728417088,
"openwebmath_perplexity": 515.0298645805456,
"openwebmath_score": 0.7488507628440857,
"tags... |
java, beginner, object-oriented, mvc, swing
return title;
}
private JLabel diagnose;
private JLabel getDiagnoseLabel() {
if (diagnose == null) {
diagnose = new JLabel("Preliminarna dijagnoza :");
diagnose.setBounds(10, 420, 200, 100);
add(diagnose);
}
return diagnose;
}
private ... | {
"domain": "codereview.stackexchange",
"id": 18441,
"lm_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, mvc, swing",
"url": null
} |
sum = (n - 2) \times 180, where $sum$ is the sum of the interior angles of the polygon, and $n$ equals the number of sides in the polygon. $$Now, since the sum of all interior angles of a triangle is 180°. Unlike the interior angles of a triangle, which always add up to 180 degrees. Required fields are marked * Comment... | {
"domain": "synecticaconsult.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810525948927,
"lm_q1q2_score": 0.8504595139873645,
"lm_q2_score": 0.897695295528596,
"openwebmath_perplexity": 712.8906858183632,
"openwebmath_score": 0.6414366960525513,
"t... |
general-relativity, gravity, reference-frames, centrifugal-force
The answer by Luboš Motl was describing the contribution of spacetime curvature as deviations from flat spacetime. In flat spacetime, you can always find a global inertial reference frame, and due to the "automatically guaranteed" fact he mentioned we kn... | {
"domain": "physics.stackexchange",
"id": 82293,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, gravity, reference-frames, centrifugal-force",
"url": null
} |
$M_3=19.125 \ , R_3=36$
Solution
First change $f(x)$ and the number of subintervals to $f(x)=x^3$ and $n=3\text{.}$ For $R_3\text{,}$ make sure to change the Sample Point Placement so that "Relative" is checked and the slide bar is all the way to the right. You'll see that now it is sampling $f(x)$ values from the ri... | {
"domain": "unl.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9895109084307415,
"lm_q1q2_score": 0.8525014562618984,
"lm_q2_score": 0.8615382094310355,
"openwebmath_perplexity": 333.4462961604561,
"openwebmath_score": 0.9525200128555298,
"tags": null,
... |
homework-and-exercises, magnetic-fields, electric-current
For all of the cases we will consider, the left side of Ampere laws always results on
$$B2\pi r$$
So the difference will lie on our $I_{enclosed}$
For $r<a$ you will need the current density that goes through that current. That will be given by the total curre... | {
"domain": "physics.stackexchange",
"id": 49644,
"lm_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, magnetic-fields, electric-current",
"url": null
} |
ros, ros-info
I believe the error could be due to the const keyword. Or am I doing anything wrong in the part:
msg->transforms.transform.translation.x
Can anyone kindly guide on how to fix this?
Originally posted by skr_robo on ROS Answers with karma: 178 on 2016-07-13
Post score: 0
You have an array of transforms ... | {
"domain": "robotics.stackexchange",
"id": 25234,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros-info",
"url": null
} |
php, optimization, mysql, pagination
$message = '';
$pos = str_replace("\\", "", strpos($public_articles['message'], ' ', 170));
if($pos !== false) {
$message = str_replace("\\", "", substr($public_articles['message'], 0, $pos));
}
$date = date('l dS \of F Y', $public_articles['date']);
ec... | {
"domain": "codereview.stackexchange",
"id": 5690,
"lm_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, optimization, mysql, pagination",
"url": null
} |
gaussian, complex
$$
and proceed similarly for $\mathcal{N}_{\mathbb{C}}(\nu_2, \gamma^2)$ to obtain $q(x, y)$. We observe that the $2$ in the denominators is gone because it cancels with the $\gamma^2\over 2$. Now, computing the KL-divergence amounts to computing the integral:
$$
\int_{-\infty}^{\infty}\int_{-\infty}... | {
"domain": "dsp.stackexchange",
"id": 11369,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gaussian, complex",
"url": null
} |
c++, programming-challenge
int main( int argc, char * argv[] ) {
int cases_count;
int candidates_count;
int remaining_candidates_count;
int votes_count;
char candidates[20][80];
int votes[20][1000];
int candidate_votes[20];
int subroutine_results[20];
bool losers[20];
int winner... | {
"domain": "codereview.stackexchange",
"id": 17223,
"lm_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++, programming-challenge",
"url": null
} |
habitable-zone
An orange dwarf star may live for 10 to 30 billions years in the main sequence. A red dwarf star may live in the main sequence for trillions of years.
However, planets in the habitable zone of red dwarfs are likely to become tidally lock, and we don't know if this is really that bad or not for life biod... | {
"domain": "astronomy.stackexchange",
"id": 792,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "habitable-zone",
"url": null
} |
java, tree, integer
Same remark, there's a constant MINIMUM_UNIVERSE_SIZE you probably want to use.
There's no comments within these method bodies, and I'm OK with that. After all, "comments lie," bit-rot happens. It's a (somewhat) well-known algorithm, and the identifiers are clear and useful.
Kudos for breaking out ... | {
"domain": "codereview.stackexchange",
"id": 28365,
"lm_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, tree, integer",
"url": null
} |
Are strictly increasing/decreasing sequences considered monotone?
A sequence which is either non-decreasing or non-increasing is said to be monotone, this is the definition we have been given. But if a sequence is strictly increasing or strictly decreasing then that doesn't mean it is monotone so monotone is only if i... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.984336352666835,
"lm_q1q2_score": 0.8115478476449689,
"lm_q2_score": 0.824461928533133,
"openwebmath_perplexity": 183.9721080274644,
"openwebmath_score": 0.9866465926170349,
"tags"... |
reinforcement-learning, convolutional-neural-networks, pytorch, convolution, convolution-arithmetic
The other extreme would be to set groups=in_channels (which is 10 in your case). Then you split your input tensor (10, 14, 14) into 10 input tensors of size (1, 14, 14), you perform the convolution along each one separa... | {
"domain": "ai.stackexchange",
"id": 3896,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, convolutional-neural-networks, pytorch, convolution, convolution... |
orbitals, relativistic
Title: Shape of the P1/2 Orbital I always thought that p-orbitals had a dumbbell shape as pictured below. | {
"domain": "chemistry.stackexchange",
"id": 6295,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbitals, relativistic",
"url": null
} |
In fact, it can be seen that $$I(\alpha)=\text{B}(\alpha,1-\alpha)=\Gamma(\alpha)\,\Gamma(1-\alpha)$$, where $$\text{B}$$ and $$\Gamma$$ are the usual beta and gamma functions, respectively. Therefore, this gives a proof of the Reflection Formula for complex numbers $$\alpha$$ such that $$0<\text{Re}(\alpha)<1$$. Then,... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022625406662,
"lm_q1q2_score": 0.8245046086656634,
"lm_q2_score": 0.8438951025545426,
"openwebmath_perplexity": 138.56973292911348,
"openwebmath_score": 0.953231155872345,
"tags... |
experimental-physics, nuclear-physics, atmospheric-science, nuclear-engineering, explosions
Title: Cause for spikes in Trinity nuclear bomb test In Richard Rhodes' book, The Making of the Atomic Bomb, I was reading about the Trinity nuclear test. High speed photos were taken and this one is from <1ms after the detonat... | {
"domain": "physics.stackexchange",
"id": 28182,
"lm_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, nuclear-physics, atmospheric-science, nuclear-engineering, e... |
$(1+1)^n = \sum\limits_{i = 0}^{n}{{n}\choose{i}}$
So that $2 + \sum\limits_{i = 1}^{n-1}{{n}\choose{i}} = {{n}\choose{0}} + \sum\limits_{i = 1}^{n-1}{{n}\choose{i}} + {{n}\choose{n}} = \sum\limits_{i = 0}^{n}{{n}\choose{i}} = (1+1)^n$
Combinatorially:
We are having a party and we have a list of $n$ people who we ma... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9901401423688665,
"lm_q1q2_score": 0.8859669582450704,
"lm_q2_score": 0.894789454880027,
"openwebmath_perplexity": 224.06384668751375,
"openwebmath_score": 0.8196208477020264,
"tag... |
python, shell, ssh, python-2.x
##- environment_prompt.
def environment_prompt(environment):
line_length = 80
marker = '#'
line_padding = ' '
line_start = '##'
line_end = '##'
separator_line = '\\\\n'
highlight_line = line_padding + marker * line_length
padding_length = line_length - (... | {
"domain": "codereview.stackexchange",
"id": 25105,
"lm_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, shell, ssh, python-2.x",
"url": null
} |
php, html, validation
//Check that the input values are of the proper format
if (!preg_match('/^[A-Za-zéåäöÅÄÖ\s\ ]*$/', $firstname)) {
$fnameErr = 'Förnamnet kan endast innehålla bokstäver (é, a-ö) och mellanslag';
}
if (!preg_match('/^[A-Za-zéåäöÅÄÖ\s\ ]*$/', $lastname)) {
$lnameErr = 'E... | {
"domain": "codereview.stackexchange",
"id": 11698,
"lm_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, html, validation",
"url": null
} |
navigation, odometry, gmapping, laser-scan-matcher, neato
I also played around with the launch file a bit to improve the performance of the laser_scan_matcher and GMapping:
<!--
Example launch file: uses laser_scan_matcher together with
slam_gmapping
-->
<launch>
#### set up data playback from bag ##############... | {
"domain": "robotics.stackexchange",
"id": 15525,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, odometry, gmapping, laser-scan-matcher, neato",
"url": null
} |
c#, animation
switch (c)
{
case 1:
pictureBox3.Image = Properties.Resources.image1;
pictureBox13.Image = Properties.Resources.image1;
break;
case 2:
pictureBox3.Image = Properties.Resources.image... | {
"domain": "codereview.stackexchange",
"id": 17844,
"lm_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#, animation",
"url": null
} |
geology, dating
Title: Source of Dresser Formation 3.5 Ga dating I've seen many papers and sites that give the dating of Australia's Dresser Formation as 3.5 Ga (variously 3.48 or 3.49 Ga), but I can't seem to find the source of this.
Where does the dating come from, and what is it based on? From Australian Government... | {
"domain": "earthscience.stackexchange",
"id": 1261,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "geology, dating",
"url": null
} |
to show how Fourier coefficients are calculated and in a second part you may use an applet to further explore Fourier series of the same function. The LCFBG in the system performs three functions: temporally stretching the input ultrashort pulse, shaping the pulse spectrum, and temporally compressing the. Note that as ... | {
"domain": "visitmarzamemi.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9875683520739038,
"lm_q1q2_score": 0.8807243687639972,
"lm_q2_score": 0.8918110497511051,
"openwebmath_perplexity": 790.5836348459956,
"openwebmath_score": 0.8125916719436646,
... |
catkin-make, hector-quadrotor, ros-kinetic, hector
CMakeFiles/Makefile2:5457: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/all' failed
make[1]: *** [hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/all] Error 2
Makefile:127: recipe fo... | {
"domain": "robotics.stackexchange",
"id": 25862,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "catkin-make, hector-quadrotor, ros-kinetic, hector",
"url": null
} |
potential, standard-model, symmetry-breaking, gauge-invariance
Title: Explicit computation in finding the minima of a gauge symmetry invariant potential I'm reading some notes about the symmetry breaking and the standard model. From what I understand, typically one has a symmetry group of transformations (the gauge gr... | {
"domain": "physics.stackexchange",
"id": 92973,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "potential, standard-model, symmetry-breaking, gauge-invariance",
"url": null
} |
python, algorithm, recursion, sudoku, community-challenge
The optional arguments are n, the size of the puzzle (default: 9)
and m, the width of the blocks (default: the square root of n,
rounded up).
"""
grid = puzzle_to_grid(next(Sudoku(n=n, m=m, random=True)))
coords = list(divmod(i, n) for i in... | {
"domain": "codereview.stackexchange",
"id": 5349,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, algorithm, recursion, sudoku, community-challenge",
"url": null
} |
solar-eclipse, apparent-magnitude
Title: How much dimmer is a partial solar eclipse that goes from -26.71 to -25.89? Based on what I found in Stellarium, for Vlissingen, Netherlands, on July 2, 1666 there was a partial eclipse with a change of apparent brightness -26.71 to -25.89.
Is it valid to say based on the chart... | {
"domain": "astronomy.stackexchange",
"id": 5328,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solar-eclipse, apparent-magnitude",
"url": null
} |
species-identification
Title: What is this small black spider found in NY? I found this small, black, spider with a yellow mark at the top of its abdomen, crawling on my desk in my office (located in the Lower Hudson valley in NY). I have never seen a spider like this before.
What is this spider, and is it native to ... | {
"domain": "biology.stackexchange",
"id": 7032,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "species-identification",
"url": null
} |
concurrency, go, locking
func (r *Server) handleConn(conn net.Conn) {
reader := bufio.NewReader(conn)
name, e := reader.ReadString('\n')
name = strings.TrimSpace(name)
if e != nil {
conn.Close()
return
}
c := &client{conn, reader, name}
r.addClient(c)
r.publishMessage(c... | {
"domain": "codereview.stackexchange",
"id": 24318,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "concurrency, go, locking",
"url": null
} |
electromagnetism, magnetic-fields, induction
Title: Calculate electric field induced by a changing magnetic field I want to plot the electric field (as a vector field plot) which is induced by a changing magnetic field for some simple cases.
Suppose for example that the magnetic field changes linearly (or quatratical... | {
"domain": "physics.stackexchange",
"id": 14865,
"lm_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, magnetic-fields, induction",
"url": null
} |
Now consider the intersection of two events. The event $E_i \cap E_j$ is the event that the $i^{th}$ person and the $j^{th}$ person get their own gifts while the other $(n-2)$ people are free to select gifts. The probability of this event is $\displaystyle P[E_i \cap E_j]=\frac{(n-2)!}{n!}$. There are $\displaystyle \b... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718468714469,
"lm_q1q2_score": 0.8136974288133978,
"lm_q2_score": 0.8221891239865619,
"openwebmath_perplexity": 166.66040462579272,
"openwebmath_score": 0.7398293614387512,
"tags":... |
1 0] [0 2 0] [0 -1 2]. The eigenspaces corresponding to these matrices are orthogonal to each other, though the eigenvalues can still be complex. Theorem If A is an matrix and is a eigenvalue of A, then the set of all eigenvectors of , together with the zero vector, forms a subspace of. These vectors are eigenvectors o... | {
"domain": "svc2006.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9884918502576513,
"lm_q1q2_score": 0.8570577824463963,
"lm_q2_score": 0.8670357598021707,
"openwebmath_perplexity": 349.6453176432852,
"openwebmath_score": 0.8708940148353577,
"tags":... |
python, python-2.x, dice, ascii-art
12-sided dice, zero-based: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
------- ------- ------- ------- ------- -------
| | |o | |o | |o o| |o o| |o o o|
| o | | | | o | | | | o | | |
| | | ... | {
"domain": "codereview.stackexchange",
"id": 16864,
"lm_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, dice, ascii-art",
"url": null
} |
machine-learning, classification
preds_train = clf_opt.predict(X_train, y_train)
preds_test = clf_opt.predict(X_test, y_test)
print(f"Train F1 score = {f1_score(y_train, preds_train)}")
print(f"Test F1 score = {f1_score(y_train, preds_train)}")
Note on usage of test set: I did notice you are using train/test sets. R... | {
"domain": "datascience.stackexchange",
"id": 11912,
"lm_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, classification",
"url": null
} |
factorial of a large number n! Following intuitive steps: lnN approximation for large factorials which states that the th factorial is well-approximated by formula.: +lnN … Z n 1 dx lnx = n lnN ¡N …. Words, we have or proof of his claim, it is likely Stirling. That as sign “: = log ( n of the article [ Jam2 ] n... But ... | {
"domain": "com.br",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9833429619433693,
"lm_q1q2_score": 0.801653130751862,
"lm_q2_score": 0.815232489352,
"openwebmath_perplexity": 2224.5555305209855,
"openwebmath_score": 0.9480631351470947,
"tags": null,
"ur... |
quantum-field-theory, condensed-matter, renormalization, field-theory, feynman-diagrams
$$Z = \int D\phi ~ e^{-S_0 - S_I},$$ where $S_0$ is the Gaussian/free part and $S_I$ is the interaction part of the action. Within a perturbative framework we may aim to systematically include the contributions of fast modes to the... | {
"domain": "physics.stackexchange",
"id": 17978,
"lm_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, condensed-matter, renormalization, field-theory, feynman-dia... |
Problem: Evaluate $$\int\limits_{0}^{1}{\arcsin x\,dx}.$$ Solution: Let $f(x) = \sin\left(\frac{\pi}{2}x\right)$. Then $0$ and $1$ are fixed points of $f$, and $f$ is increasing (and hence invertible) on $(0,1)$. Since $f^{-1}(x) = \frac{2}{\pi}\arcsin x$, we have $$\int\limits_{0}^{1}{\sin\left(\frac{\pi}{2}x\right) +... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9817357259231532,
"lm_q1q2_score": 0.8159628295944571,
"lm_q2_score": 0.831143054132195,
"openwebmath_perplexity": 287.3588808280791,
"openwebmath_score": 0.8992314338684082,
"tags... |
Kudos [?]: 76860 [0], given: 9992
Re: M25 Question #20 - Counting Numbers with Unique Digits [#permalink]
### Show Tags
19 Jul 2010, 00:08
Expert's post
Merging similar topics. Another discussion: no-properties-71853.html?hilit=range%20choice%20first%20digit
_________________
SVP
Joined: 17 Feb 2010
Posts: 1559
Foll... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9343951698485603,
"lm_q1q2_score": 0.8118275415652301,
"lm_q2_score": 0.8688267745399465,
"openwebmath_perplexity": 3002.4441263741774,
"openwebmath_score": 0.5458068251609802,
"tags"... |
visible-light, fluorescence
Title: Are there any fluorecent materials that absorbs infrared light and re-emit in the visible spectrum I understand certain phosphors will absorb ultraviolet light and then re-emit in the visible spectrum, for example "glow in the dark" paint and toys. Are there any material that go the ... | {
"domain": "physics.stackexchange",
"id": 35329,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visible-light, fluorescence",
"url": null
} |
planet, telescope, amateur-observing, jupiter, saturn
Example of what using an object near the horizon during the day to align the finder scope to the main telescope might be like:
Source: Wikimedia | {
"domain": "astronomy.stackexchange",
"id": 6913,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "planet, telescope, amateur-observing, jupiter, saturn",
"url": null
} |
while the would... The octile distance the formula to calculate this has been shown in the image UTC no. Your WordPress.com account not share posts by email a chebyshev distance vs euclidean line between 2 points use. Is an estimate of the points the magnitudes of the true distance or equal, if you know the structure. ... | {
"domain": "gmina.pl",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561712637256,
"lm_q1q2_score": 0.8887343366327896,
"lm_q2_score": 0.9173026533686324,
"openwebmath_perplexity": 788.1079260040458,
"openwebmath_score": 0.6235116124153137,
"tags": n... |
Focus on any one of the two elements say Gold.
First bar has 2/5 gold. Second bar has 3/10 gold and mixture has 5/16 gold.
Make the fractions comparable for easy calculation i.e. give them the same denominator. LCM of 5, 10 and 16 is 80.
First bar has 32/80 gold. Second bar has 24/80 gold and mixture has 25/80 gold.
At... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9492946380711991,
"lm_q1q2_score": 0.8106147942284639,
"lm_q2_score": 0.8539127492339909,
"openwebmath_perplexity": 8001.672308103997,
"openwebmath_score": 0.4890669584274292,
"tags":... |
python, beginner, game-of-life
for cell in active_cells:
board[cell[1] + y][cell[0] + x] = True
self.board = board
self.width = width
self.height = height
def display(self):
output = ''
for y, row in enumerate(self.board):
for x, cell in enumerate... | {
"domain": "codereview.stackexchange",
"id": 16283,
"lm_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, game-of-life",
"url": null
} |
organic-chemistry, nmr-spectroscopy, symmetry
Title: Enantiotopic hydrogens in cyclopropanone
Are the hydrogens that on the same carbon and those that are cis enantiotopic? And are they isogamous or anisogamous?
And will they anisochronous in a chiral environment NMR?
Isochronous - hydrogens that are in the same chem... | {
"domain": "chemistry.stackexchange",
"id": 8455,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "organic-chemistry, nmr-spectroscopy, symmetry",
"url": null
} |
ros, ros3djs, ros-kinetic, robotwebtools, roslibjs
Title: error when loading a mesh with ros3djs
I am trying to load a .stl 3d model of a drone in a html page using Javascript and ros3djs as follow :
const mesh = new ROS3D.MeshResource({
resource: 'models/3d-model-drone/octo-asm.stl',
path: 'ws://localho... | {
"domain": "robotics.stackexchange",
"id": 33812,
"lm_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, ros3djs, ros-kinetic, robotwebtools, roslibjs",
"url": null
} |
evolution, zoology, literature
Title: Which Darwin book (and today edition) is illustrated by his own drawings? I am interested in buying Charles Darwin books and mostly drawings (nowadays editions, I am not a collector). Please, can you advise in which book and which edition I can find the most of his drawings? I fou... | {
"domain": "biology.stackexchange",
"id": 4669,
"lm_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, zoology, literature",
"url": null
} |
convolutional-neural-networks, tensorflow, python, keras
Epoch 11/12-loss:0.0291 acc:0.9911 val_loss:0.0275 val_acc:0.9920
Epoch 12/12-loss:0.0274 acc:0.9916 val_loss:0.0245 val_acc:0.9916
Test loss:
0.02452171179684301 Test accuracy: 0.9916 | {
"domain": "ai.stackexchange",
"id": 3166,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "convolutional-neural-networks, tensorflow, python, keras",
"url": null
} |
• beat me by 5s... – acl Jan 26 '12 at 16:25
• He was also asking for the inverse - could add this for completeness. – Vitaliy Kaurov Jan 26 '12 at 16:31
• @VitaliyKaurov, done! – rcollyer Jan 26 '12 at 16:36
• @acl, it's a testament to how much we've been waiting for these types of questions when 3 of the top users ju... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810511092411,
"lm_q1q2_score": 0.8231100357665322,
"lm_q2_score": 0.8688267881258485,
"openwebmath_perplexity": 1303.5465689842242,
"openwebmath_score": 0.1861664056777954,
"ta... |
gan
Title: Where is the VGG in Cartoongan? When I read through the paper of Cartoongan [CartoonGAN: Generative Adversarial Networks for Photo Cartoonization], I was so confused about where is vgg located in the entire network.
Based on the paper about GAN [Generative Adversarial Nets], I could not see anywhere that vg... | {
"domain": "datascience.stackexchange",
"id": 11130,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gan",
"url": null
} |
ros-melodic, roslaunch, rosrun
Note: those errors stop when I run rosrun in the script's folder. But, I wanna add a node in package launch file to use roslaunch for python scripts.
What I need to do? Thanks in advance!
I followed these steps:
$ cd ~
$ mkdir catkin_ws/src -p
$ cd catkin_ws
$ catkin_make
$ cd src
... | {
"domain": "robotics.stackexchange",
"id": 32254,
"lm_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-melodic, roslaunch, rosrun",
"url": null
} |
arithmetics and geometry as any source. of Units 3 units Course Description: Math 11 is the first of a series of Math courses taken by non-science majors. About ACT math practice problems worksheet pdf. Waqas Quraish rated it it was amazing Oct 02, Stars are assigned as follows:. Unit 5 – Analytical Trigonometry – Clas... | {
"domain": "ilcampanileborgo.it",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9908743631497862,
"lm_q1q2_score": 0.8821697243245974,
"lm_q2_score": 0.8902942261220292,
"openwebmath_perplexity": 2061.6495554520557,
"openwebmath_score": 0.5778871178627014,
"... |
electromagnetism, electromagnetic-radiation, radiation, qft-in-curved-spacetime, unruh-effect
Title: Is it possible to explain radiation of an accelerated charged particle via the Unruh effect? From the point view of a noninertial observer, if a charged particle accelerates then it can catch the Unruh particle and exc... | {
"domain": "physics.stackexchange",
"id": 92432,
"lm_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, electromagnetic-radiation, radiation, qft-in-curved-spacetime, u... |
nomenclature
P-52.2.8 Selection between a ring and a chain as parent hydride
Within the same heteroatom class and for the same number of characteristic groups cited as the principal characteristic group, a ring is always selected as the parent hydride to construct a preferred IUPAC name. In general nomenclature, a rin... | {
"domain": "chemistry.stackexchange",
"id": 17041,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nomenclature",
"url": null
} |
digital-communications, algorithms, signal-detection, complex
where $h_{ln}$ represent the $l^{th}$ column of the channel $H$. I have read in some books and papers, such as in This paper that the complexity computation of the above equation is $6N_rN_tM$, where M represent the constellation order of signal, where it... | {
"domain": "dsp.stackexchange",
"id": 7425,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "digital-communications, algorithms, signal-detection, complex",
"url": null
} |
javascript
Title: Asynchronous GET/POST function with error reporting I've been working on this asynchronous communication function for a little while as an exercise to improve my experience with Javascript, and as a tool to provide feedback from my fledgling attempts at server side scripting.
I've progressed just abo... | {
"domain": "codereview.stackexchange",
"id": 28403,
"lm_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
} |
quadcopter, navigation, lidar, mapping, uav
Title: ROS Answers SE migration: ros mapping
hi im using an asctec quadrotor, and i would like to map the environment, the only odometry data that i can provide is the velocity, can someone please suggest which form of mapping is the most suitable ?
im using a hokuyo urg li... | {
"domain": "robotics.stackexchange",
"id": 7297,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quadcopter, navigation, lidar, mapping, uav",
"url": null
} |
would be diffrent again if it were the columns of the contingency table that the experimental design fixed. After introducing the theory, the book covers the analysis of contingency tables, t-tests, ANOVAs and regression. The $$\pm0\%$$ part is not very interesting: essentially, all it’s telling you is that R has calcu... | {
"domain": "kvb.hu",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407214714477,
"lm_q1q2_score": 0.8329491877465816,
"lm_q2_score": 0.8558511469672594,
"openwebmath_perplexity": 479.9039466795225,
"openwebmath_score": 0.6960655450820923,
"tags": null,
... |
\limits_{C_{1}}=\frac{5}{6}.\frac{4^6}{4^4}+\frac{1}{5}.\frac{4^5}{4^2}-12=\frac{40}{3}+\frac{64}{5}-12$ For C2 we have x=2, dx=0 $\therefore \int\limits_{C_{2}}=\int\limits_{-4}^{4}(4y+3)dy=[2y^2+3y]_{-4}^{4}=32+12-32+12=24$ for C3 we have $\int\limits \limits_{C_{3}}=\int\limits_{4}^0(\frac{5y^5}{4^4}-\frac{y^4}{4^2}... | {
"domain": "openstudy.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850867332734,
"lm_q1q2_score": 0.829620693948252,
"lm_q2_score": 0.8438951064805861,
"openwebmath_perplexity": 11369.493216226098,
"openwebmath_score": 0.8514097332954407,
"tags": ... |
quantum-state, bloch-sphere, state-space-geometry
\langle Y^{(13)}\rangle&=\sqrt{3/2}\sin(2\alpha)\sin\beta \sin\theta,\\
\langle Y^{(23)}\rangle&=\sqrt{3/2}\sin^2(\alpha)\sin(2\beta) \sin(\phi-\theta).\tag A
\end{cases}
To easily check that these points do indeed lie on a hypersphere (which we also know from this ans... | {
"domain": "quantumcomputing.stackexchange",
"id": 997,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-state, bloch-sphere, state-space-geometry",
"url": null
} |
neural-network
Now imagine you have a new observation such as:
x1 x2 y
1.00001 -1.0 5
A solution with small theta coefficients is most likely to yield better results than a solution with large theta coefficients. To understand L2 regularization, we have to understand that multicollinearity ca... | {
"domain": "datascience.stackexchange",
"id": 2860,
"lm_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",
"url": null
} |
data-structures, sets, dictionaries
There is a simple data structure that might suffice: a dictionary that maps from each element to a list of all keys that contain that element. Then, given a query set, you can iterate over all the elements in the query set, look them up in the dictionary, and check whether any of t... | {
"domain": "cs.stackexchange",
"id": 20070,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "data-structures, sets, dictionaries",
"url": null
} |
homework-and-exercises, electromagnetism, maxwell-equations
Title: Combination of Maxwell equations and other form of Maxwell equations In reference to this paper on arXiv, page three, we have the following:
We know that the Bianchi Identites are $\partial_{[\alpha F_\beta\gamma]} = 0$
and are equivalent to
$$\nabla ... | {
"domain": "physics.stackexchange",
"id": 18110,
"lm_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, maxwell-equations",
"url": null
} |
python, performance, programming-challenge, primes, comparative-review
const int N = 10001;
int main()
{
int max = floor(N*(log(N) + log(log(N))));
vector<bool> marked(max/2, false);
for (size_t i = 1; i < marked.size(); i++) {
for (size_t j = 1; j <= i; j++) {
size_t m = i + j + 2*i*j;
if (m < ... | {
"domain": "codereview.stackexchange",
"id": 10836,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, performance, programming-challenge, primes, comparative-review",
"url... |
special-relativity, relativity, time-dilation
Title: Why is relative time independent of direction of movement? I'm trying to learn relativity theory on my own (special to begin with) and there's one basic misconception in my efforts.
Consider the usual setup for twins paradox, but let for now forget the accelaration ... | {
"domain": "physics.stackexchange",
"id": 41601,
"lm_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, relativity, time-dilation",
"url": null
} |
visible-light
If no electronic transitions happened in the band of visible light, would we still be able to use this band to see? If no, what would be the most efficient ways to see?
Assuming that we had a device to actually detect the light in these frequencies without using electron transitions (this is more a biop... | {
"domain": "physics.stackexchange",
"id": 17435,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visible-light",
"url": null
} |
javascript, performance
Title: Single and multiple files I have recently received some feedback on a project I did called Notifier.js, in which you can see I have included all of the source images and styles in the JavaScript file. The feedback I received was that having it all bundled up together may be cool, but it ... | {
"domain": "codereview.stackexchange",
"id": 2380,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, performance",
"url": null
} |
javascript, ecmascript-6, promise, google-maps, data-visualization
// fit map bounds to the points
let bounds = new google.maps.LatLngBounds();
points.forEach(point => bounds.extend(point));
rawMap.fitBounds(bounds);
snappedMap.fitBounds(bounds);
};
const requestSnapToRoads = () => {
let requests ... | {
"domain": "codereview.stackexchange",
"id": 22666,
"lm_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, promise, google-maps, data-visualization",
"url": n... |
ros, motion, odometry, gazebo
Now I changed the update equation to:
$ dx = \frac{v*l * cos(w)}{tan(alpha)}$
$ dy = \frac{v*l *sin(w)}{tan(alpha)}$
The rotational arc now seems correct. The rotational speed is still lower (not such an issue), but I dont understand why this works rotation works. I.e. why the $1-cos(x)$... | {
"domain": "robotics.stackexchange",
"id": 1662,
"lm_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, motion, odometry, gazebo",
"url": null
} |
are capable of 1 part in 103 accuracy and current state of the art. (General Physics) the tendency of a body to resist angular acceleration, expressed as the sum of the products of the mass of each particle in the body and the square of its perpendicular distance from the axis of rotation. This is an AP Physics 1 topic... | {
"domain": "angelaleone.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587257892505,
"lm_q1q2_score": 0.8294545499481589,
"lm_q2_score": 0.839733963661418,
"openwebmath_perplexity": 543.1601335549083,
"openwebmath_score": 0.5480412840843201,
"tag... |
# What is the reasoning behind why the ratio test works?
The ratio test says that if we have
$$\sum_{n=1}^{\infty}a_n$$
such that $\lim_{n \to \infty} \dfrac{a_{n+1}}{a_n} = L$, then if:
1) $L < 1$, then $\sum_{n=1}^{\infty}a_n$ is absolutely convergent,
2) $L > 1$, then $\sum_{n=1}^{\infty}a_n$ is divergent, and
... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232869627774,
"lm_q1q2_score": 0.8521429438048842,
"lm_q2_score": 0.8670357683915537,
"openwebmath_perplexity": 166.52440182758374,
"openwebmath_score": 0.9150016903877258,
"ta... |
Thank you in advance, and apologies if this was not the right place to ask this question.
-
You will be dealing with density functions a lot, there is no reason to avoid them. Just avoid thinking in terms of $\Pr(X=x)$. The remark about interval from $x$ to $x+dx$ is informally fine. And in answer to your question, ye... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9658995762509216,
"lm_q1q2_score": 0.8190517022026385,
"lm_q2_score": 0.8479677622198946,
"openwebmath_perplexity": 244.11467270528163,
"openwebmath_score": 0.9641590714454651,
"ta... |
nuclear-physics, fusion, nuclear-engineering, explosions
Oh yes, the so-far mythical pure-fusion bomb.
For a pure-fusion reaction, let's consider the easiest case, D-T. This is basically what an h-bomb uses, with intermediate steps.
The problem is the required (pressure * dwell time) to get enough reactions in the fue... | {
"domain": "physics.stackexchange",
"id": 62832,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nuclear-physics, fusion, nuclear-engineering, explosions",
"url": null
} |
statistical-mechanics, electromagnetic-radiation, photons, partition-function
$$
The prime on the inner summation is to recall that the configurations $\{ n_i\}$ must satisfy the constraint ($1$).
It is pretty straightforward to rewrite this last expression as
$$
\sum_{N\ge 0} \left. \sum_{\{ n_i\}} \right.^{\prime} e... | {
"domain": "physics.stackexchange",
"id": 87548,
"lm_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, electromagnetic-radiation, photons, partition-function",
... |
reinforcement-learning, q-learning, dqn, rewards
Title: Why do my rewards reduce after extensive training using D3QN? I am running a drone simulator for collision avoidance using a slight variant of D3QN. The training is usually costly (runs for at least a week) and I have observed that reward function gradually incre... | {
"domain": "ai.stackexchange",
"id": 2332,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, q-learning, dqn, rewards",
"url": null
} |
java, dice
Program specification:
For this assignment you will write a program that simulates a rather
simplistic Dice Throwing Game. This section specifies the required
functionality of the program. Only a text interface is required for
this program; however, more marks will be gained for a program that is
easy/intui... | {
"domain": "codereview.stackexchange",
"id": 43232,
"lm_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, dice",
"url": null
} |
javascript
// either one character from the code
// or a number of chickens to be interpreted as code
b = out[input_ptr++];
if(c)
{
// parsing
if(b)
{
if(b == '\n')
{
// start counting on the top of the stack
stack[++stack... | {
"domain": "codereview.stackexchange",
"id": 4067,
"lm_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
} |
mobile-robot, slam
Title: SLAM Scan Matching. Scan vs previous-scan OR scan vs previous-map? When using Scan Matching ICP for FastSLAM, which is the proper way to use it?
Between the current scan and the previous one, or between the current scan and the stored map?
Can both be used? If so, what are the point of using ... | {
"domain": "robotics.stackexchange",
"id": 1858,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mobile-robot, slam",
"url": null
} |
ros, microcontroller, navigation, joy
Title: Did anyone use xbox wireless controller for navigation?
Following the tutorial here
http://wiki.ros.org/joy/Tutorials/ConfiguringALinuxJoystick
rostest@rostest-desktop:~/catkin_ws$ rosparam set joy_node/dev "/dev/input/js0"
rostest@rostest-desktop:~/catkin_ws$ rosrun joy j... | {
"domain": "robotics.stackexchange",
"id": 27469,
"lm_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, microcontroller, navigation, joy",
"url": null
} |
javascript, css
function toogle()
{
if (this.nextElementSibling.className === "")
{
this.nextElementSibling.className = "hide";
}
else
{
this.nextElementSibling.className = ""
}
} Yes, you should use classList. Right now you overwrite the entire className attribute of the elements. It works, but it... | {
"domain": "codereview.stackexchange",
"id": 12659,
"lm_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
} |
kinect, pcl, pointcloud
Title: publish point cloud xyz
i wrote a ros node for kinect pointcloud 2 to pass through filter and publish it to a topic. But when i run the node, it give me this error
/usr/include/boost/smart_ptr/shared_ptr.hpp:646: typename boost::detail::sp_dereference::type boost::shared_ptr::operator*(... | {
"domain": "robotics.stackexchange",
"id": 21278,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "kinect, pcl, pointcloud",
"url": null
} |
c++, multithreading, c++17, callback, c++20
You have a serious bug, in that callbacks can deadlock your program if they call any public member functions of the broadcast type.
The problem is that you are allowing arbitrary code execution while holding a lock within your notify_all() function. Each callback being notif... | {
"domain": "codereview.stackexchange",
"id": 40345,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, multithreading, c++17, callback, c++20",
"url": null
} |
# Is there a way to assign a number to a combination without finding and numbering every combination?
Imagine I have 4 letters. Is there some algorithm that produces
"abcd" -> 1
"bacd" -> 2
... etc
without finding and numbering every single combination? My goal is to get a number from 1 to 52! from a shuffled deck of ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9783846659768268,
"lm_q1q2_score": 0.841081826118488,
"lm_q2_score": 0.8596637451167997,
"openwebmath_perplexity": 432.2617405639169,
"openwebmath_score": 0.7442042231559753,
"tags... |
time, atomic-physics, atoms, spectroscopy, elements
Title: Why is cesium used to measure time in atomic clocks? Seconds are measured by the frequency emission of cesium. Why is a frequency from the emission spectrum of cesium used as the standard in defining a second? Why particularly cesium? Rather than write somet... | {
"domain": "physics.stackexchange",
"id": 16419,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "time, atomic-physics, atoms, spectroscopy, elements",
"url": null
} |
ros
i7-7700k
16GB RAM
GTX 1050 Ti graphics card
H170 chipset motherboard
120 GB SSD
For Gazebo, you want a CPU with a high single core frequency, rather than many cores (ie, choose i7 over a server type CPU with 16 cores at 2.2GHz). Using htop to see resource usage, it seems that Gazebo server has two main threads th... | {
"domain": "robotics.stackexchange",
"id": 29564,
"lm_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
} |
A bit late answer but maybe worth mentioning it.
• Let $$a= 4+\sqrt{15} \stackrel{4-\sqrt{15}=\frac 1{4+\sqrt{15}}}{\Rightarrow} f(x) = a^x + a^{-x}$$ is even $$(f(x) =f(-x))$$, hence we only need to consider $$x> 0$$, since if $$x_0$$ is a solution iff $$-x_0$$ is one.
• $$f'(x) = \ln a\left(a^x - a^{-x}\right)\stack... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307668889047,
"lm_q1q2_score": 0.8452214074567214,
"lm_q2_score": 0.8688267643505193,
"openwebmath_perplexity": 197.0132655461051,
"openwebmath_score": 0.9213510155677795,
"tag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.