text stringlengths 49 10.4k | source dict |
|---|---|
javascript, linked-list, functional-programming, immutability
Notice that I removed the unnecessary else, but this is a matter of personal style.
You may want to specify what exactly the output of take(3, Nil) and similar functions should be. It seems you are assuming that all indices will always be inside the correct... | {
"domain": "codereview.stackexchange",
"id": 4767,
"lm_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, linked-list, functional-programming, immutability",
"url": null
} |
complexity-theory, lower-bounds, search-problem, permutations
Fredman showed that if there are $\Gamma$ many possible orderings, then you can find the correct one using $\log_2 \Gamma + 2n$ queries.
Kahn and Kim showed that if the potential orderings constitute all possible orderings extending some partial order, then... | {
"domain": "cs.stackexchange",
"id": 4418,
"lm_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, lower-bounds, search-problem, permutations",
"url": null
} |
cosmology, spacetime, universe, curvature
Title: Can the curvature of the Universe be a function of time? Apologies for the repetition here, but can our Universe experience (either physically or mathematically) non-constant curvature that is a function of time? Yes, it can. Curvature (whatever measure for it you use, ... | {
"domain": "physics.stackexchange",
"id": 29922,
"lm_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, spacetime, universe, curvature",
"url": null
} |
I followed your advice and tried to use the complementary event formula in which P(A)+P(B)=1.
Since we have the 2 dice, then the total number of outcomes will be 6^2=36.
Now for the favorable number of events, since we are looking that the event doesn’t occur (where the dice need to be less than 3 (P(B)<3)) I managed... | {
"domain": "themathdoctors.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9891815491146485,
"lm_q1q2_score": 0.8465921560947521,
"lm_q2_score": 0.8558511396138365,
"openwebmath_perplexity": 333.2925444631537,
"openwebmath_score": 0.7281996607780457,
"ta... |
javascript, jquery, html, form, jquery-ui
<input type="checkbox" value="green" class="color-value">
</div>
<div class="common-in-block color-box">
<div class="color-backround color-grey"> </div><p class="color-name">Part1-child3</p>
<input type="checkbox" value="grey" class="color-value">
... | {
"domain": "codereview.stackexchange",
"id": 25493,
"lm_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, html, form, jquery-ui",
"url": null
} |
gravity, classical-mechanics, newtonian-mechanics, velocity, potential-energy
Potential Energy of the system at Initial Conditions
Velocity of Projectile at Launch
KE of Projectile at Launch
Efficiency of machine These are what I have worked out so far, but I'm not sure they're correct or that I'm using the right way ... | {
"domain": "physics.stackexchange",
"id": 4603,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gravity, classical-mechanics, newtonian-mechanics, velocity, potential-energy",
"... |
php, object-oriented, dependency-injection
case 'formBuilder':
return new \foo\bar\formBuilder('..');
break;
default:
# code...
break;
}
}
}
?>
Now, since I also need to get the URL fragments like :blog-title/:id.
I allow my ro... | {
"domain": "codereview.stackexchange",
"id": 9770,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, object-oriented, dependency-injection",
"url": null
} |
perl, graph
$bool = $Graph->has_path( $A, $B );
}
when ( "XXX-----------------------" ) {
$bool = $Graph->has_path( $A, $B, $C );
}
when ( "XXXX----------------------" ) {
$bool = $Graph->has_path( $A, $B, $C, $D );
}
when ( "XXXXX---------------------" ) {
$bool = $Graph->has_path( $A... | {
"domain": "codereview.stackexchange",
"id": 1005,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "perl, graph",
"url": null
} |
Output :
Just like the integral and summation signs, the limits of the product appears differently in the inline mode and the display mode. In the inline mode the limits appear next to the symbol and in the display mode the limit appear below and above.
There are two commands that are capable of controlling how these... | {
"domain": "physicsread.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211590308922,
"lm_q1q2_score": 0.8226467981455226,
"lm_q2_score": 0.8438950986284991,
"openwebmath_perplexity": 1269.8767435428292,
"openwebmath_score": 0.9741576910018921,
"tags... |
c#, beginner, palindrome
Title: Finding palindromes in C# This is my first foray into OOP, so I'd appreciate any kind of advice!
Here is the problem description:
On the first line of the input, you will receive a number specifying
how many lines of input to read. After that, the input consists of
some number of l... | {
"domain": "codereview.stackexchange",
"id": 15710,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, beginner, palindrome",
"url": null
} |
angular-momentum, quantum-chromodynamics, tensor-calculus, lie-algebra, representation-theory
Take for instance $3\otimes\bar 3$, you have the representation $U^i V_j$. From this, you may build the singlet $U^i V_i$, and the last $8$ degrees of freedom correspond to the (traceless) adjoint representation $A^i_j$. With... | {
"domain": "physics.stackexchange",
"id": 10500,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "angular-momentum, quantum-chromodynamics, tensor-calculus, lie-algebra, representa... |
java, game, swing
/** Controls whether the game has sound or not. */
static boolean muted = false;
/** Images for indicating volume. */
private final Image VOLUME_BLACK = new ImageIcon(ClassLoader.getSystemResource(
"net/thedanpage/worldshardestgame/resources/volume_black.png")).getImage();
... | {
"domain": "codereview.stackexchange",
"id": 21888,
"lm_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, game, swing",
"url": null
} |
As for a proof in classical second-order logic, there are two options. Some authors include the choice scheme $$(\forall x)(\exists y) \phi(x,y) \to (\exists f)(\forall x)\phi(x, f(x))$$ as an axiom, for each $\phi$. In that case, the proof is trivial. Otherwise, that scheme is not provable from the remaining axioms of... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9572778012346835,
"lm_q1q2_score": 0.8018349967699673,
"lm_q2_score": 0.8376199633332891,
"openwebmath_perplexity": 183.44936732104517,
"openwebmath_score": 0.9081237316131592,
"ta... |
climate-change, atmosphere, climatology, aerosol
It is widely accepted that the general tendency of "global dimming"
(due to increased aerosol emissions) has been reversed above most
regions since the 1980s-1990s, i.e. there has been "global
brightening" [see Wild (2012) or IPCC (2013)]. If we accept that dimming main... | {
"domain": "earthscience.stackexchange",
"id": 2400,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "climate-change, atmosphere, climatology, aerosol",
"url": null
} |
ros, ros2, message, subscribe, publish
Title: Are ROS2 messages guaranteed to be received by a Subscriber in the same order they were published?
According to https://github.com/ros2/ros2/wiki/About-Quality-of-Service-Settings it's possible to vary the QoS settings of History, Depth, Reliability and Durability. Howeve... | {
"domain": "robotics.stackexchange",
"id": 29779,
"lm_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, message, subscribe, publish",
"url": null
} |
# Floating point operations — division vs multiplication; how do they affect accuracy?
Given two functions:
f[x_] := x ((x + 1)^(1/2) - x^(1/2))
g[x_] := x/((x + 1)^(1/2) + x^(1/2))
Which one is more accurate?
Side note: If you could explain why, that would really help me out, I have a feeling it's f(x) as there i... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290905469752,
"lm_q1q2_score": 0.8366648229749556,
"lm_q2_score": 0.8615382147637196,
"openwebmath_perplexity": 647.6131066798785,
"openwebmath_score": 0.6680176258087158,
"tag... |
algorithms, graphs, approximation, weighted-graphs
Assume that $\mathrm{card}(V) = r \cdot k$ for some $r \in \mathbb{N}$.
Is there a polynomial-time approximation algorithm for this task?
I believe this problem is related to facility location problems, but I am not sure. Let $n := |V| = rk$ be the total number of ver... | {
"domain": "cs.stackexchange",
"id": 15133,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, graphs, approximation, weighted-graphs",
"url": null
} |
1.) Transform differentials:
$$\begin{gathered} (x + y){e^{x + y}}\frac{1}{{{x^2}}}dydx \hfill \\ u = \frac{y}{x},v = x + y \hfill \\ du = - \frac{y}{{{x^2}}}dx + \frac{1}{x}dy \hfill \\ dv = dx + dy \hfill \\ du \wedge dv = - \frac{y}{{{x^2}}}dx \wedge dy + \frac{1}{x}dy \wedge dx \hfill \\ du \wedge dv = - \frac{{x ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9780517456453797,
"lm_q1q2_score": 0.8107450485119614,
"lm_q2_score": 0.8289388083214156,
"openwebmath_perplexity": 366.91443227297475,
"openwebmath_score": 0.9275356531143188,
"ta... |
c++, performance
bool empty() const { return q.empty(); }
void clear() { q.clear(); }
private:
std::vector<Elem> q;
};
In my project, the key type is encoded in this struct:
template <typename CostType>
struct Key {
bool operator<=(Key<CostType> rhs) const {
return (k1 <= rhs.k1) || (k1 == rhs.k1 ... | {
"domain": "codereview.stackexchange",
"id": 585,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, performance",
"url": null
} |
machine-learning, data
Title: How to generate data if algo itself is involved in the process with a feedback loop? I have an algorithm which would be a rather easy classification task with a set of features and a class output which I would like to solve with a machine learning algo.
But I am having issues and doubts a... | {
"domain": "datascience.stackexchange",
"id": 3786,
"lm_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, data",
"url": null
} |
inorganic-chemistry, aqueous-solution, transition-metals, hydrolysis
Title: What happens when ferric chloride is dissolved in water? Ferric chloride can be prepared by dissolving hematite in hydrochloric acid:
$$\ce{Fe2O3 + 6HCl -> 2FeCl3 + 3H2O }\tag{1}$$
But the resulting ferric chloride will be exposed from its for... | {
"domain": "chemistry.stackexchange",
"id": 12786,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "inorganic-chemistry, aqueous-solution, transition-metals, hydrolysis",
"url": ... |
• The title "Will a normal number look like a periodic number?" was scarily imprecise (even misleading, I believe). Modified. – Did Aug 29 '18 at 8:29
• @Did Why do you think so? I am not specifically asking for $\pi$, this is just a catch (and I try a little bit of poetry in my titles as well, maybe inappropriate). Fo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9845754452025766,
"lm_q1q2_score": 0.8247000523004118,
"lm_q2_score": 0.8376199673867852,
"openwebmath_perplexity": 276.42122818116155,
"openwebmath_score": 0.9401033520698547,
"ta... |
c++, asynchronous, socket, boost, client
Title: Async tcp socket client: send multiple requests with one connection I'm new to socket programming and c++. I have a the following method that sends an array to server and receives sum of the array, I tried to make it async.
std::future<void> AsyncClient::ReqSum(const std... | {
"domain": "codereview.stackexchange",
"id": 39435,
"lm_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++, asynchronous, socket, boost, client",
"url": null
} |
At the East Dorset MathsJam Christmas party, @jussumchick (Jo Sibley in real life) posed the following question:
There are two ways to draw a 16-gon with rotational symmetry of order 8 inside a unit circle, as shown. What’s the ratio of their areas?
Typically, I look at this sort of question and sigh: it’s going to n... | {
"domain": "co.uk",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9910145693897764,
"lm_q1q2_score": 0.8031964066754155,
"lm_q2_score": 0.8104789086703225,
"openwebmath_perplexity": 411.0737414880065,
"openwebmath_score": 0.8431583642959595,
"tags": null,
... |
c++, performance, opencv
Title: Optimizing gradient function in C++ I'm computing the gradient of an image manually (without using built in functions) and I want to make it faster but keeping the same performance.
I'm very open to any suggestions.. currently learning c++ optimzation and STL lib in recent c++.
Here is ... | {
"domain": "codereview.stackexchange",
"id": 33133,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, performance, opencv",
"url": null
} |
pcl, arm-navigation, pr2
Thread 7 (Thread 0x7fffe4919700 (LWP 25357)):
#0 0x00007ffff55010fe in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007ffff76dbf1b in bool boost::condition_variable::timed_wait<boost::date_time::subsecond_duration<boost::posix_time::time_duratio... | {
"domain": "robotics.stackexchange",
"id": 13041,
"lm_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, arm-navigation, pr2",
"url": null
} |
ros, path-planning
Originally posted by Stefan Kohlbrecher with karma: 24361 on 2011-11-01
This answer was ACCEPTED on the original site
Post score: 7
Original comments
Comment by ben on 2011-11-28:
Also - when setting the goal in rviz - make sure that the global frame of the world is '/map'.
Comment by ben on 2011-... | {
"domain": "robotics.stackexchange",
"id": 7153,
"lm_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, path-planning",
"url": null
} |
image-recognition, classification, computer-vision
Title: How does Pinterest decipher what's on unmarked pictures and categorize them? According to this article, Pinterest acquired VisualGraph, an image recognition and visual search technology startup.
How does Pinterest apply VisualGraph technology for machine vision... | {
"domain": "ai.stackexchange",
"id": 87,
"lm_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-recognition, classification, computer-vision",
"url": null
} |
performance, beginner, vba, excel
'Builds product code
For counter = rownum To lRow
Select Case productSheet.Cells(counter, 2)
Case 1
productSheet.Cells(counter, 2) = "F" & Right(productSheet.Cells(counter, 3), 2)
Case 2
productSheet.Cells(counter, 2) = "G" & Right... | {
"domain": "codereview.stackexchange",
"id": 18658,
"lm_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, beginner, vba, excel",
"url": null
} |
• Thank you so much! This helps a lot. Apr 24, 2017 at 8:18
• Can you elaborate on how we get the final $\mu_{X|Z>0}$ and $\sigma_{X|Z>0}$ once we know the conditional distribution of $Z$ is half normal. Apr 25, 2017 at 3:53
• @user94300: Using my statements about $X\mid Z=z$ and $Z\mid Z>0$, by the law of total expect... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9759464492044004,
"lm_q1q2_score": 0.8275711172041738,
"lm_q2_score": 0.8479677526147223,
"openwebmath_perplexity": 154.57080185081222,
"openwebmath_score": 0.9969059228897095,
"ta... |
pcl, ros-indigo
While in the second:
//usr/lib/libpq.so.5: undefined reference to `SSL_get_peer_certificate@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `CRYPTO_num_locks@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: ... | {
"domain": "robotics.stackexchange",
"id": 21986,
"lm_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, ros-indigo",
"url": null
} |
python, performance, beginner, python-3.x
class IDict(dict):
@staticmethod
def _key(k):
return IStr(k) if isinstance(k, str) else k
@classmethod
def fromkeys(cls, keys, val=None):
dic = cls()
for i in keys:
dic[i] = val
return dic
def __init__(s... | {
"domain": "codereview.stackexchange",
"id": 41789,
"lm_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, beginner, python-3.x",
"url": null
} |
special-relativity, time, reference-frames, observers
Title: Is time dilation due to the travel time of light? I'm trying to think about special relativity without "spoiling" it by looking up the answer; I hope someone can offer some insight - or at least tell me I'm wrong.
Suppose I have an ordinary clock in front ... | {
"domain": "physics.stackexchange",
"id": 16120,
"lm_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, time, reference-frames, observers",
"url": null
} |
python, gui, tkinter, framework, tk
# append value of match
results.append(j[j.find('=')+1:].strip())
if len(results) == 1:
return (results[0] if results[0]
not in ['True', 'False']
else eval(results[0]))
return results
def confi... | {
"domain": "codereview.stackexchange",
"id": 35659,
"lm_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, gui, tkinter, framework, tk",
"url": null
} |
gazebo-sensor, contact
Title: Contact sensor: 6 axis force/torque sensing
It would be nice to extend the contact sensing tutorial to show how to add up all contact forces on a body to get an aggregate JointWrench (3 forces and 3 torques). This would allow the contact sensor to simulate a six axis force/torque sensor ... | {
"domain": "robotics.stackexchange",
"id": 2885,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo-sensor, contact",
"url": null
} |
pcl, rosmake, pcl-ros
make[3]: Entering directory `/home/ira/code/ros/sam_pcl/perception_pcl_electric_unstable/pcl/build/pcl_trunk/build'
make[3]: Leaving directory `/home/ira/code/ros/sam_pcl/perception_pcl_electric_unstable/pcl/build/pcl_trunk/build'
[ 39%] Built target pcl_keypoints
make[3]: Entering di... | {
"domain": "robotics.stackexchange",
"id": 10088,
"lm_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, rosmake, pcl-ros",
"url": null
} |
python, web-scraping, https
Title: HTTP scraper for Python Package I'm trying to make my first Python package as a learning experience. There's a lot of things that I suspect I am doing poorly, but this post is specifically about my HttpRequest class. I made this class so that I can use retries and persistent session.... | {
"domain": "codereview.stackexchange",
"id": 44495,
"lm_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, web-scraping, https",
"url": null
} |
homework-and-exercises, electromagnetism, lagrangian-formalism, field-theory, variational-calculus
&=-\frac{1}{4}\partial_\mu\left((\partial_\rho A_\sigma -\partial_\sigma A_\rho)\left(\eta^{\mu\rho}\eta^{\nu\sigma}-\eta^{\nu\rho}\eta^{\mu\sigma}\right)+(\partial_\alpha A_\beta -\partial_\beta A_\alpha)\left(\eta^{\al... | {
"domain": "physics.stackexchange",
"id": 62846,
"lm_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, lagrangian-formalism, field-theory, vari... |
javascript, node.js
const dublinOffice = {
latitude: "53.339428",
longitude: "-6.257664",
};
const invitedArr = [];
//Sort data in ascending order
const sortedCustomers = customerArr.sort((a, b) => {
return a.user_id - b.user_id;
});
const closestCustomers = (sortedCustomers, arr) => {
for ({ latitude, long... | {
"domain": "codereview.stackexchange",
"id": 39644,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, node.js",
"url": null
} |
java, game, 2048
boolean addNewCell(){
int amountOfEmptyCells = getAmountOfEmptyCells();
int numOfCellToFill;
int counterOfEmptyCells = 0;
if(amountOfEmptyCells == 0) {
return false;
}
numOfCellToFill = Math.abs(new Random().nextInt()%amountOfEmptyCells)+1;
... | {
"domain": "codereview.stackexchange",
"id": 36512,
"lm_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, game, 2048",
"url": null
} |
# Probability of winning a competition K games best of series of N games
Consider a 'best of 5' series in sports/competition where the first team to win 3 games wins the series. So N=5, K=3. Where probability w = p(team A winning game) and l = p(team A losing game). Assume these probabilities do not change during the ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9740426390346569,
"lm_q1q2_score": 0.8199740769886396,
"lm_q2_score": 0.8418256492357358,
"openwebmath_perplexity": 2535.932798552973,
"openwebmath_score": 0.6180936694145203,
... |
quantum-mechanics, heisenberg-uncertainty-principle, measurement-problem, eigenvalue, observables
Title: Weird Behaviour of the act of measurement to a quantum system I and my friend were disputing about some weird behaviour of the act of measuring some observables quantities e.g. Energy, position.
But I still don't t... | {
"domain": "physics.stackexchange",
"id": 10026,
"lm_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, heisenberg-uncertainty-principle, measurement-problem, eigenval... |
python-3.x, web-scraping
if response.status_code in {429, 403}:
simpleException.check(
exception=TooManyFailedRequests,
allowed_count=20,
msg={
'Title': 'Too many failed requests',
... | {
"domain": "codereview.stackexchange",
"id": 41091,
"lm_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-3.x, web-scraping",
"url": null
} |
asteroids, hubble-telescope
If the distance is about 160 million km, then they are suggesting these asteroids are in the inner part of the main asteroid belt.
The Earth is moving at about 30 km/sec around the Sun, and the Hubble Telescope is "only" moving 7.6 km/sec with respect to the Earth, in roughly the same direc... | {
"domain": "astronomy.stackexchange",
"id": 2629,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "asteroids, hubble-telescope",
"url": null
} |
c#, programming-challenge, hash-map, binary-search
Also, the use of BinarySearch assumes that list is sorted. Is it? (Note: I see that this is handled in the challenge, assuming it for your API is maybe not the best thing still)
// value is negative
int tempKey = -1 * i - 2;
Deserves maybe ... | {
"domain": "codereview.stackexchange",
"id": 35942,
"lm_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, hash-map, binary-search",
"url": null
} |
php, array, iteration
Here is a screenshot of the output array: In my opinion, this code is all right. As any explicit code, these loops are quite straightforward to follow. And making it more concise will likely make it more cryptic as well. I would only make a minor brush-up, removing the unnecessary default clause... | {
"domain": "codereview.stackexchange",
"id": 36446,
"lm_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, iteration",
"url": null
} |
robotic-arm, kinematics, inverse-kinematics, matlab, dynamixel
Title: Inverse Kinematics 5DOF - general approach - Wrong solution MATLAB Can anyone name a good source for a general approach (cookbook-like) for the inverse kinematics regarding a 5-DOF?
The paper by De Xu et al. is aiming for a general approach, but it ... | {
"domain": "robotics.stackexchange",
"id": 1565,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robotic-arm, kinematics, inverse-kinematics, matlab, dynamixel",
"url": null
} |
algorithms, network-flow, ford-fulkerson
Note that all ideas above does not depend on which is source node nor which is sink node. The flow across a cut $(S,T)$ just means how much (water, current, resource, etc) is flowing from $S$ to $T$. | {
"domain": "cs.stackexchange",
"id": 13315,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, network-flow, ford-fulkerson",
"url": null
} |
java, strings, interview-questions
Title: Checking if a string contains all unique characters I am currently reviewing CTCI(Cracking the Coding Interview)
The question is asking me to implement an algorithm which checks whether the characters in a string are all unique however they do not want me to use any auxillary ... | {
"domain": "codereview.stackexchange",
"id": 43586,
"lm_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, strings, interview-questions",
"url": null
} |
ros, navigation, planner, parameters
Title: How to set the parameter of the global planner in navigation stack
Dear all,
The global planner pkg provides few algorithms like A*, grid path and etc. My question is how I can set these methods? For example, for grid path method I need to set global planner parameter as "u... | {
"domain": "robotics.stackexchange",
"id": 25308,
"lm_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, navigation, planner, parameters",
"url": null
} |
mathematics
Title: Strange binomial formula for operators? Does the binomial formula $(a+b)^n=\sum_i C_n^ia^ib^{n-i}$ still work when $n$ is replaced by operator $\hat{n}$(an operator), where $a$ and $b$ are numbers? Since it's not the normal binomial formula mentioned in a lot of cases, and also can't be easily expla... | {
"domain": "quantumcomputing.stackexchange",
"id": 2900,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mathematics",
"url": null
} |
provides another reason for the importance of the normal distribution. Distribution of height in a sample of pregnant women, with the corresponding Normal distribution curve Spotting skewness Histograms are fairly unusual in published papers. Integrating the PDF, gives you the cumulative distribution function (CDF) whi... | {
"domain": "caretom.pw",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718477853188,
"lm_q1q2_score": 0.8392098182961576,
"lm_q2_score": 0.8479677583778258,
"openwebmath_perplexity": 315.23136305313596,
"openwebmath_score": 0.866352915763855,
"tags":... |
homework-and-exercises, thermodynamics
Note that the equation:
$$\dot Q(t)=λ_{m}sA(T_{p}−T_{i}(t))$$
is incorrect. Heat flux due to conduction actually decreases with increasing thickness $s$. | {
"domain": "physics.stackexchange",
"id": 74803,
"lm_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, thermodynamics",
"url": null
} |
organic-chemistry, everyday-chemistry, experimental-chemistry, biochemistry, food-chemistry
Title: How Bread is made with yeast, sugar and luke warm milk? Materials and Apparatus:
wheat flour
sugar
dry yeast
glass bowl
covering plate
milk
Procedure:
Lukewarm milk is taken in the glass bowl and sugar is added to it.... | {
"domain": "chemistry.stackexchange",
"id": 15814,
"lm_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, everyday-chemistry, experimental-chemistry, biochemistry, foo... |
Jeffrey Miller
Jeff@TargetTestPrep.com
122 Reviews
5-star rated online GMAT quant
self study course
See why Target Test Prep is the top rated GMAT quant course on GMAT Club. Read Our Reviews
Manager
Joined: 18 Jun 2017
Posts: 59
Re: The sum of two numbers is 13, and their product is 30. What is the sum [#permalink... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9626731083722524,
"lm_q1q2_score": 0.816315761455689,
"lm_q2_score": 0.8479677622198946,
"openwebmath_perplexity": 1308.8526011255024,
"openwebmath_score": 0.6861603856086731,
"tags":... |
black-holes, event-horizon
Title: Is there an equation that describes the spacetime inside an event horizon? For instance, how far would a photon travel once passing the event horizon until it meets the singularity.
What is the circumference of an orbit as a function of the distance to the singularity? All four black ... | {
"domain": "physics.stackexchange",
"id": 60507,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "black-holes, event-horizon",
"url": null
} |
special-relativity, velocity, inertial-frames, differentiation, calculus
\tag{02b}\label{02b}\\
\gamma_v & \boldsymbol{=}\left(1\boldsymbol{-}\dfrac{\upsilon^2}{c^2}\right)^{\boldsymbol{-}\frac12}
\tag{02c}\label{02c}
\end{align}
Now by the chain rule and differentiation with respect to $\,\tau\,$ we have
\begin{alig... | {
"domain": "physics.stackexchange",
"id": 78872,
"lm_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, velocity, inertial-frames, differentiation, calculus",
"url"... |
Question
# Let $$(x,y,z)$$ be points with integer coordinates satisfying the system of homogeneous equations:$$3x-y-z=0$$$$-3x+z=0$$$$-3x+2y+z=0$$.Then the number of such points which lie inside a sphere of radius $$10$$ centered at the origin is
Solution
## Adding first two equations, we get $$y=0$$and substituting... | {
"domain": "byjus.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9875683502444729,
"lm_q1q2_score": 0.8074106766565458,
"lm_q2_score": 0.8175744761936437,
"openwebmath_perplexity": 334.2329887745471,
"openwebmath_score": 0.9574287533760071,
"tags": ... |
c#, object-oriented, constructor
and the following code in Inmate.cs:
public int? CriminalHistoryNumber { get; set; }
public int? IntegrationID { get; set; }
public SecurityLevel? SecurityLevel { get; set; }
public bool? IsInIsolation { get; set; }
public DisciplinaryStatus? DisciplinaryStatus { get; set; }
public int... | {
"domain": "codereview.stackexchange",
"id": 19633,
"lm_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, constructor",
"url": null
} |
rust
005,224,374,101,1,223,223,108,226,226,224,102,2,223,223,1006,224,389,101,1,223,223,1007,677,677,224,102,2,223,223,1005,224,404,101,1,223,223,7,226,677,224,102,2,223,223,1006,224,419,101,1,223,223,1107,226,677,224,1002,223,2,223,1005,224,434,1001,223,1,223,1108,226,677,224,102,2,223,223,1005,224,449,101,1,223,223,... | {
"domain": "codereview.stackexchange",
"id": 40605,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rust",
"url": null
} |
computational-chemistry, photochemistry, spectrophotometry, td-dft
It's been a while since I looked for reviews, but general TDDFT excitation energies are ~0.2-0.3 eV from experimental absorption energies after correcting for solvent effects, etc.
In my group, we also do what I call a "consensus" model. That is, when ... | {
"domain": "chemistry.stackexchange",
"id": 3029,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computational-chemistry, photochemistry, spectrophotometry, td-dft",
"url": nul... |
like the quoted case of $\boldsymbol{J}$ constant on a (bounded or unbounded) region and null outside of it, and, if they do, how can they be proved?. Both (a) and (b) d. This is the collogue page for discussin impruivements tae the Ampère's circuital law article. Power was stored in a 20 ampere-hour nickel-cadmium bat... | {
"domain": "animalhousesrl.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9787126438601955,
"lm_q1q2_score": 0.8413637768140202,
"lm_q2_score": 0.8596637451167997,
"openwebmath_perplexity": 527.8623371915256,
"openwebmath_score": 0.7762930393218994,
... |
c++, integer
/**
* friend binary operator %
*
* Return the remainder from the division of two HugeInt numbers. Uses utility
* function unsigned_divide. Adheres to the C/C++ convention that the sign of
* the remainder is the same as the sign of the dividend. See comments on
* implicit conversion before HugeIn... | {
"domain": "codereview.stackexchange",
"id": 37432,
"lm_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++, integer",
"url": null
} |
classical-mechanics, harmonic-oscillator, hamiltonian-formalism, integrable-systems, integrals-of-motion
respectively, where
$$ p_r+ir~=~\sqrt{2H}e^{i\varphi_r}, \qquad p_x+ix~=~\sqrt{2H_x}e^{i\varphi_x}, \qquad p_y+iy~=~\sqrt{2H_y}e^{i\varphi_y}. $$ | {
"domain": "physics.stackexchange",
"id": 54934,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, harmonic-oscillator, hamiltonian-formalism, integrable-system... |
c#, algorithm, strings, programming-challenge, palindrome
Title: Leetcode 125. Valid Palindrome Problem statement
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a palindrom... | {
"domain": "codereview.stackexchange",
"id": 24631,
"lm_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, strings, programming-challenge, palindrome",
"url": null
} |
c++, performance, template, c++20, proxy
auto operator>(const auto& other) const { return lengthSquared > other * other; }
}; | {
"domain": "codereview.stackexchange",
"id": 45249,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, performance, template, c++20, proxy",
"url": null
} |
electromagnetism, magnetic-fields, inductance
The integral you get for points along the axis isn't that hard to perform (try it!). But if you wanted to find the magnetic field at a point off-axis, then the equation you found from the Biot-Savart Law wouldn't work in the first place. In fact, the full solution for po... | {
"domain": "physics.stackexchange",
"id": 82334,
"lm_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, inductance",
"url": null
} |
graph-theory, graph-algorithms, np-hardness, time-complexity, directed-acyclic-graph
Title: Complexity of acyclicity of a "nondeterministic" graph By "nondeterministic" I mean the graph is a collection of sets of "candidate" edges sharing a single destination: $E \subseteq 2^V \times V$. The problem is whether it is p... | {
"domain": "cstheory.stackexchange",
"id": 5021,
"lm_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, graph-algorithms, np-hardness, time-complexity, directed-acyclic-gra... |
thermodynamics, entropy
Title: The definition of entropy As history of thermodynamics say, it was a mystery that what is the required condition for a given energy conversion to take place? Like there are two possible events each conserving energy but only one is chosen. So, in order to resolve this Clausius introduced... | {
"domain": "physics.stackexchange",
"id": 6228,
"lm_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, entropy",
"url": null
} |
python, roslaunch, rospy, ros-kinetic
Title: parse $(find ...) from python?
Hi everyone,
how can I make use of the ROS API to parse roslaunch macros like $(find <package>)?
Thanks
Originally posted by Hendrik Wiese on ROS Answers with karma: 1145 on 2018-10-01
Post score: 0
It's not well documented as I believe it'... | {
"domain": "robotics.stackexchange",
"id": 31839,
"lm_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, roslaunch, rospy, ros-kinetic",
"url": null
} |
newtonian-mechanics, collision, singularities, dirac-delta-distributions
Title: On Newton's $2^{\mathrm{nd}}$ law and singularities
A body acted upon by a force moves in such a manner that the time rate of change of momentum equals the force.
$${\bf{F}} = \frac{ {\rm d}\, \mathbf{p}}{{\rm d} \, t}, \qquad {\bf p }= m... | {
"domain": "physics.stackexchange",
"id": 83579,
"lm_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, collision, singularities, dirac-delta-distributions",
"url"... |
quantum-field-theory, fourier-transform, path-integral, correlation-functions
This is almost what appears in $(**)$. We manipulate $(**)$ further:
$$(**)=\frac{1}{V^2}\sum_{m} e^{-ik_m(x_1- x_2)}2 \frac{\int dx\,x^2{\rm Exp}\left[-i\frac{1}{V}(m^2-k_m^2)x^2\right]}{\int dy\,{\rm Exp}\left[-i\frac{1}{V}(m^2-k_m^2)y^2\r... | {
"domain": "physics.stackexchange",
"id": 85806,
"lm_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, fourier-transform, path-integral, correlation-functions",
... |
energy, charge, potential, work
Title: What is the physics interpretation of work done of zero when moving a charged particle on an equipotential surface? Assume I have a test charge of + 1 coulomb.
If I move the test charge from a point with potential of +9 volt to another point with potential of -1 volt then the w... | {
"domain": "physics.stackexchange",
"id": 60781,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "energy, charge, potential, work",
"url": null
} |
Again, each equivalence class is countable, so there are uncountably many equivalence classes.
• I think we're on the same page on the integer differences, you just put it much better than I did. My point with it though was that it's possible to associate a unique representative for any given real number. If r = 9.998... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9632305318133554,
"lm_q1q2_score": 0.8262284261910262,
"lm_q2_score": 0.8577681031721325,
"openwebmath_perplexity": 170.68435592694766,
"openwebmath_score": 0.8402228951454163,
"ta... |
javascript, performance, angular.js
$scope.sortByPeriod = function() {
$scope.myArray.sort(function(a, b) {
// I don't know if the following makes sense in your case
// it's just an example
return new Date(b.period) - new Date(a.period);
});
// I think you ne... | {
"domain": "codereview.stackexchange",
"id": 25524,
"lm_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, angular.js",
"url": null
} |
experimental-physics, statistics
Title: Density frequency height uncertainty in histogram I have a set of $ N=150 $ measurements of the acceleration of a falling mass:
$$
X=\{x_i | i = 1,...,150\}
$$
I have to plot this data in a histogram with fixed number of bins, let it be $N_{bin}$, and fixed bin width, let i... | {
"domain": "physics.stackexchange",
"id": 62807,
"lm_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, statistics",
"url": null
} |
homework-and-exercises, newtonian-mechanics, elasticity, solid-mechanics
Title: Elongation of a wire of non-uniform cross-section under it's own weight (solid mechanics) Recently finished a chapter on Solid Mechanics at school.
Among the numerous scenarios/examples our teacher provided, was a case of a wire of non-uni... | {
"domain": "physics.stackexchange",
"id": 41591,
"lm_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, elasticity, solid-mechanics",
"url"... |
reference-request, communication-complexity
Is the related concepts introduced and studied anywhere?
I am also interested in scenarios where $|\mathcal I|\neq\mathcal J|$ under condition $||\mathcal I|-\mathcal J||\leq \log n$. What you call $cc_{max}$ is known as the worst-case partition communication complexity, and... | {
"domain": "cstheory.stackexchange",
"id": 3835,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reference-request, communication-complexity",
"url": null
} |
c++, c++11, tree
preOrder(r);
cout<<endl;
inOrder(r);
cout<<endl;
postOrder(r);
cout<<endl;
return 0;
} Memory management
Don't think that is the appropriate smart pointer.
shared_ptr<node> newNode (int i)
Do you have plans to actually share ownership of a node? Or is it more likely that ow... | {
"domain": "codereview.stackexchange",
"id": 11593,
"lm_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, tree",
"url": null
} |
# Proving $f$ is not surjective
Given the function $f: \mathbb R \mapsto \mathbb R, f(x) = 2e^x + 3x^2 - 2x + 5,$ I am asked to show that it is not surjective. My book goes about it like this:
$f(x) = 2e^x + x^2 - 2x + 1 + 2x^2 + 4 = f(x) = 2e^x + (x-1)^2 + 2x^2 + 4$
$f(x) > 0 \implies$ not surjective
Prior to seein... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750413739076,
"lm_q1q2_score": 0.8212828790185921,
"lm_q2_score": 0.8615382165412808,
"openwebmath_perplexity": 177.4129119427897,
"openwebmath_score": 0.9465117454528809,
"tag... |
ros
Title: cannot use custom message
I have written a custom message file.
I have done the necessary modifications in CMakeLists.txt. and I have run catkin build
So now when I do rosmsg list I can clearly see my custom message
roscustom_test/TheObject
also when I do this: rosmsg show TheObject I can clearly see
[r... | {
"domain": "robotics.stackexchange",
"id": 36108,
"lm_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
} |
output value is connected to only one input value ta ta....! Than once it is a bijection I can write such that, like that if it is still valid. Output set is connected what is bijective function the input set, and each output value is connected to the input,... | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9783846640860381,
"lm_q1q2_score": 0.8131776198706601,
"lm_q2_score": 0.8311430562234877,
"openwebmath_perplexity": 652.0293769054215,
"openwebmath_score": 0.8542974591255188,
"tags": null... |
linear combination of the eigenvectors. Eigenvalues and Eigenvectors. The phase portrait thus has a distinct star. is an eigenvector for , then. The center has trigonometric solutions that are the parametric representations of closed curves. De nition If Ais a matrix with characteristic polynomial p( ), the multiplicit... | {
"domain": "yiey.pw",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9915543725597269,
"lm_q1q2_score": 0.8765730062417967,
"lm_q2_score": 0.8840392725805823,
"openwebmath_perplexity": 409.031974205775,
"openwebmath_score": 0.8604814410209656,
"tags": nul... |
c++, algorithm, mergesort
REQUIRE(merge(left, right) == merged);
}
SECTION("duplicate elements") {
std::vector<int> left = {2, 2, 5};
std::vector<int> right = {1, 3, 3, 4};
std::vector<int> merged = {1, 2, 2, 3, 3, 4, 5};
REQUIRE(merge(left, right) == merged);
}
SECTI... | {
"domain": "codereview.stackexchange",
"id": 42998,
"lm_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, mergesort",
"url": null
} |
special-relativity
Thus, the wire close to you will look positively charged (assuming the negative charge is the one that moves in the circuit), but the other part of the wire will look negatively charged. So the net charge will still be zero.
Update: There are two different thing here, one is length contraction/expan... | {
"domain": "physics.stackexchange",
"id": 40137,
"lm_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",
"url": null
} |
nlp, embeddings, deep-learning
Title: What is the position embedding code? https://github.com/google-research/bert/blob/master/modeling.py#L491-L520
The code of BERT is one of the implementation. But it is not what I need.
I search a lot but can not judge.
But where is the code which seems uses cos and sin? Here is th... | {
"domain": "datascience.stackexchange",
"id": 4362,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nlp, embeddings, deep-learning",
"url": null
} |
cell-biology, enzymes, amino-acids, protein-binding, chirality
Title: Do different chiral centers on ligands cause different confirmational changes and effects in their target proteins? Say pathogenic bacteriaA makes toxinA, which had D-amino acids instead of L-amino aids, does this difference in chirality cause a dif... | {
"domain": "biology.stackexchange",
"id": 7412,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cell-biology, enzymes, amino-acids, protein-binding, chirality",
"url": null
} |
# Spanning tree in a graph of intersecting sets
Consider $$n$$ sets, $$X_i$$, each having $$n$$ elements or fewer, drawn among a set of at most $$m \gt n$$ elements. In other words $$\forall i \in [1 \ldots n],~|X_i| \le n~\wedge~\left|\bigcup_{i=1}^n X_i\right| \le m$$
Consider the complete graph $$G$$ formed by tak... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822876992225168,
"lm_q1q2_score": 0.8185644933354816,
"lm_q2_score": 0.8333245891029456,
"openwebmath_perplexity": 1020.6667848796181,
"openwebmath_score": 0.8941785097122192,
"ta... |
javascript, quiz
for(var i = 0; i < l; i++){
var node = choices[i];
if (node.checked) index = i;
}
return index;
}
})(quiz);
The jsfiddle, as promised. I tend to use a lot of Java best practices in my JavaScript code. The biggest issue I see is the lack of extensible classes/methods. The me... | {
"domain": "codereview.stackexchange",
"id": 4105,
"lm_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, quiz",
"url": null
} |
quantum-mechanics
Title: Why is it necessary to represent Schrodinger's equation as a partial differential equation? The Schrodinger equation governs the possible time evolution of a wave function, expressed as a partial differential equation. Isn't this equivalent to the simpler equation
$$\omega = \hbar k^2/2m$$
i.... | {
"domain": "physics.stackexchange",
"id": 495,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics",
"url": null
} |
finite-automata
Title: Sufficient condition for $xy^*z \subseteq L$ for a DFA with $n$ states In chapter 2 of the New Turing Omnibus, the author considers an unknown finite automata with 6 states. Through trial and error, it is deduced that the words 0101, 0100101, 0100100101 are accepted. It is then stated that using... | {
"domain": "cs.stackexchange",
"id": 16916,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "finite-automata",
"url": null
} |
performance, vba, excel
With errorWS
totalErrors = totalErrors + 1
.Cells(totalErrors, DESCRIPTION) = desc
.Cells(totalErrors, ROW_NUMBER) = rowNum
.Cells(totalErrors, COLUMN_TEXT) = "in column"
.Cells(totalErrors, COLUMN_NUMBER) = colNum
If monitorNum > 0 Then
... | {
"domain": "codereview.stackexchange",
"id": 26817,
"lm_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, vba, excel",
"url": null
} |
computability, undecidability, formal-methods, turing-machines
Title: A Question relating to a Turing Machine with a useless state OK, so here is a question from a past test in my Theory of Computation class:
A useless state in a TM is one that is never entered on any input string. Let $$\mathrm{USELESS}_{\mathrm{TM... | {
"domain": "cs.stackexchange",
"id": 69,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computability, undecidability, formal-methods, turing-machines",
"url": null
} |
c, octree
It is really supposed to behave like a 3-dimentional array. Set a value at certain coordinates and retrieve the same value if you query those same coordinates. The difference being that in the octree, any power-of-2 aligned region of all the same type are only stored as a single entry. In the time between no... | {
"domain": "codereview.stackexchange",
"id": 45034,
"lm_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, octree",
"url": null
} |
classical-mechanics, energy
Title: How is mechanical energy conserved when a ball is thrown? Suppose someone is holding a ball at some height,the ball will have some potential energy and 0 kinetic energy then, if the ball is thrown both the potential energy and kinetic energy will increase then how will the mechanical... | {
"domain": "physics.stackexchange",
"id": 76568,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, energy",
"url": null
} |
berry-pancharatnam-phase
What is the physical meaning of this gauge redundancy for some state $|n(\lambda)\rangle$?
What is the source of the gauge transformation for the Berry connection$\mathcal{A}_{k}(\lambda)$? As was said in comments section, the reason for this gauge symmetry is arbitrariness in choosing of the ... | {
"domain": "physics.stackexchange",
"id": 35652,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "berry-pancharatnam-phase",
"url": null
} |
c++, performance, sorting, quick-sort, radix-sort
--------------------------------------------------
|5 |0.00058|0.003853|0.033452|0.32207|3.27698
-------------------------------------------------- | {
"domain": "codereview.stackexchange",
"id": 40591,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, performance, sorting, quick-sort, radix-sort",
"url": null
} |
and simply solving an equation: math word problems don’t give you the equation. Listen to the highly anticipated memoir, "A Promised Land". Algebra Word Problems. Word problems consist of sentences. You know stuff’s legit when Microsoft jumps in to make an app, that too about solving the x. In the one's column of the s... | {
"domain": "zgsyedm.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138157595306,
"lm_q1q2_score": 0.8290697945628617,
"lm_q2_score": 0.8479677602988602,
"openwebmath_perplexity": 798.1152640371243,
"openwebmath_score": 0.3377313017845154,
"tags"... |
#define COLL_CHUNK 512
coll_ptr coll_new(void)
{
coll_ptr item = malloc(sizeof(coll_inst));
assert(item != NULL);
item->data = malloc(COLL_CHUNK*sizeof(tree_ptr));
assert(item->data != NULL);
item->alloc = COLL_CHUNK;
item->count = 0;
return item;
}
coll_ptr coll_record(coll_ptr coll, tree_ptr entry)
{
if(coll->co... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9669140206578809,
"lm_q1q2_score": 0.8293880001567848,
"lm_q2_score": 0.8577680977182186,
"openwebmath_perplexity": 1759.189526877804,
"openwebmath_score": 0.6999582052230835,
"tag... |
This is a classic puzzler.
I ran across it across it in Calculus I.
There are three ways (at least) to integrate it.
We have: . $\int\sin x\cos x\,dx$
[1] If we look at it as: . $\int \underbrace{\sin x}_{u}\underbrace{(\cos x\,dx)}_{du}$
. . . we get: . $\boxed{\frac{1}{2}\sin^2\!x + C_1}$
[2] If we write it as: . ... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850842553892,
"lm_q1q2_score": 0.859292303664376,
"lm_q2_score": 0.8740772466456689,
"openwebmath_perplexity": 621.2619638330151,
"openwebmath_score": 0.9292730689048767,
"tags... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.