text stringlengths 49 10.4k | source dict |
|---|---|
catkin-make
Comment by gvdhoorn on 2014-07-18:
@RokusO & @liat: I'm afraid I don't have any more advise to give, the above steps fixed everything for me. As a quick-stop measure: remove and then reinstall everything in python related to ROS (catkin-pkg, wstools, etc). Be sure to clean out any /usr/local/.. files you f... | {
"domain": "robotics.stackexchange",
"id": 18460,
"lm_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",
"url": null
} |
java, game-of-life, simulation
/**
* Constructor that creates an empty ocean with below dimension
*
* @param width
* is the width of the ocean.
* @param height
* is the height of the ocean.
*
*/
public Ocean(int width, int height){
this.ocean... | {
"domain": "codereview.stackexchange",
"id": 6547,
"lm_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-of-life, simulation",
"url": null
} |
machine-learning, comparison, hyper-parameters, cross-validation
Title: How exactly does nested cross-validation work? I have trouble understanding how nested cross-validation works - I understand the need for two loops (one for selecting the model, and another for training the selected model), but why are they nested... | {
"domain": "ai.stackexchange",
"id": 2147,
"lm_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, comparison, hyper-parameters, cross-validation",
"url": null
} |
-
Thanks for your answer Alex. I did some reading beforehand, and I knew that $f(x)=1/x$ is continuous but not uniform continuous. I'm not sure if you saw my comment below, but how would I then state the definition for continuity, but not uniform continuity necessarily? Also, is putting $\delta=|xc|\epsilon$ a sufficie... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9914225150931606,
"lm_q1q2_score": 0.8304352927494941,
"lm_q2_score": 0.8376199653600372,
"openwebmath_perplexity": 139.59769439817666,
"openwebmath_score": 0.9597417116165161,
"ta... |
end is π * r^2, where r is the. If you take it apart you find it has two ends, called bases, that are usually circular. Volume of a sphere in n-dimension Volume of a sphere in n-dimension: Calculates the volume and surface area of a sphere in n-dimensional space given the radius. A rectangular prism has a base perimete... | {
"domain": "arcoeste.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9910145696551568,
"lm_q1q2_score": 0.8321885985849127,
"lm_q2_score": 0.8397339696776499,
"openwebmath_perplexity": 346.8008503854869,
"openwebmath_score": 0.8068417906761169,
"tags": nu... |
c++, beginner, object-oriented, game, vectors
//put roomConnections in a string
getline(gameFile, currentExits);
//sort out the exit connections; those with none and those with
//add them to roomConnections- an array of strings that keeps track of all the exits
for (int i = 4 * k; i ... | {
"domain": "codereview.stackexchange",
"id": 28997,
"lm_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, object-oriented, game, vectors",
"url": null
} |
ros, ros-kinetic, smach, tcpros, synchronization
Details:
Seems to appear randomly
The node /task_runner is running a large smach state machine, with a large number or topic subscriptions.
There is only one PC involved.
Kinetic, Ubuntu 16.04
In the log for task_runner I found this error message at the same point in ... | {
"domain": "robotics.stackexchange",
"id": 30244,
"lm_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-kinetic, smach, tcpros, synchronization",
"url": null
} |
java, cache, reflection
Title: Changing object attributes by calling getters and setters using reflection We have a class with 10 attributes (longs, Strings) the following method should change any attribute to any value of an object specified by the client,
It mimics the SQL update statement Update Users Set username ... | {
"domain": "codereview.stackexchange",
"id": 29097,
"lm_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, cache, reflection",
"url": null
} |
javascript
When you need to turn it into a string, use JSON.stringify with a space argument, then use a simple regular expression to get the rest to line up with the required format as needed.
Break early to avoid indentation hell You have:
for (let tickIndexString in this.events) {
let tickIndex = parseInt(tickIn... | {
"domain": "codereview.stackexchange",
"id": 39475,
"lm_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
} |
My Proof:
Suppose $$E$$ is open relative to $$Y$$. Then, for each $$e \in E$$ there is some $$r$$ s.t. $$B_r(e) \cap Y \subset E$$ where $$B$$ is an open ball in $$X$$. Now, let $$G$$ be the union of all $$B_r(e)$$ for every $$e \in E$$, and so $$G \cap Y \subset E$$. We can see that $$B_r(e)$$ is an open subset of $$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137884587393,
"lm_q1q2_score": 0.8204563494431785,
"lm_q2_score": 0.8354835330070838,
"openwebmath_perplexity": 34.55922909651221,
"openwebmath_score": 0.9602437615394592,
"tag... |
python, parsing
# to avoid 'UnboundLocalError' Exception when one argument not passed
try:
target_year, campaign
except UnboundLocalError, u:
usage()
print 'Year : ', target_year
print 'campaign: ', campaign
# return argument values
return (target_year, campaign)
if __nam... | {
"domain": "codereview.stackexchange",
"id": 5354,
"lm_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, parsing",
"url": null
} |
algorithms, approximation, spanning-trees
For $t := 1,2,\dots,n$:
a. Repeatedly delete vertices of degree $\le t$ until there are no more to delete. In other words, while there exists $x \in V$ such that $\deg(x) \le t$, delete $x$ from $V$.
b. If there exists a single connected component of $G$ that contains all ver... | {
"domain": "cs.stackexchange",
"id": 6038,
"lm_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, approximation, spanning-trees",
"url": null
} |
c#, security, sql-injection, ms-access
Title: Adding entries to an MS Access file using OleDB In the following piece of code I am adding entries to an MS Access file using OleDB. The purpose of this post is to point out my bad programming practices and if I have created any security flaws here. I was reading somewhat ... | {
"domain": "codereview.stackexchange",
"id": 943,
"lm_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#, security, sql-injection, ms-access",
"url": null
} |
java, parsing, memory-management, csv
private static void write(List<String> records, Writer writer) throws IOException {
long start = System.currentTimeMillis();
for (String record: records) {
writer.write(record + "\n");
}
writer.flush();
writer.close();
lo... | {
"domain": "codereview.stackexchange",
"id": 18506,
"lm_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, parsing, memory-management, csv",
"url": null
} |
ros, imu, uwsim
Title: UWSim multi robots with sensors
Hi,
I am having issues setting up a scene with 2 robots, each equipped with an IMU. My scene XML looks like:
...
<vehicle>
<name>AZOR</name>
<file>data/scenes/g500ARM5.urdf</file>
<position>
<x> 5</x>
<y> 7 </y>
<z> -3 </z>
</pos... | {
"domain": "robotics.stackexchange",
"id": 21198,
"lm_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, imu, uwsim",
"url": null
} |
c++, algorithm, time-limit-exceeded
sort(trains.begin(), trains.end());
}
bool Train::operator< (const Train &t) const {
return id < t.id;
}
station.h
#ifndef STATION_H
#define STATION_H
#include <string>
#include <vector>
using namespace std;
class Station {
public:
Station(string s);
Station(int pId); /... | {
"domain": "codereview.stackexchange",
"id": 23770,
"lm_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, time-limit-exceeded",
"url": null
} |
demodulation, digital-communications, embedded-systems
So, ticking these off one by one for your system, we can come up with a few guidelines:
It seems that your biggest constraint is your channel response (which is limited by your sound card's DAC). If you have 40 kHz of one-sided bandwidth available, then you're go... | {
"domain": "dsp.stackexchange",
"id": 509,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "demodulation, digital-communications, embedded-systems",
"url": null
} |
Two points are allways collinear. IF A, B and C given by position vectors a,b and c are collinear then we need to prove that there exits m and n such that. Cross product formula. for each type of collinear field. Here is an alternate method 2. , Collinear. As you can see, when r 2 12 is large, VIF will be large. Proof: ... | {
"domain": "i-moschettieri.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.975946446405965,
"lm_q1q2_score": 0.837135739228198,
"lm_q2_score": 0.8577681104440172,
"openwebmath_perplexity": 680.3947479524796,
"openwebmath_score": 0.7044625878334045,
"t... |
visible-light
Title: Combining Multiple Light Sources Ok, Lets say I have two point light sources A and B. Each light source has a power Pa and Pb, and is distance Da and Db away from a point P on a plane.
I can calculate the amount of luminosity at point P from light A using the inverse square law. Likewise, I can c... | {
"domain": "physics.stackexchange",
"id": 3693,
"lm_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
} |
filters, finite-impulse-response
The magnitude of the frequency response of a filter is the magnitude of its z-Transform on the unit circle. Hence, if your filter should filter out a specific frequency, it needs to have a zero at exactly this frequency in the unit circle.
Considering that $f_s=10kHz$, a full rotation ... | {
"domain": "dsp.stackexchange",
"id": 4601,
"lm_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, finite-impulse-response",
"url": null
} |
c++, beginner, authentication
if (MiniPass < 5){
cout << "\nYour password is weak at least 5 letters\n \n";
}
else if(confirmPass == newPass){
fstream users;
users.open("Users.txt",ios::app);
if(users.is_open()){
users << newName +" "+ newPass << endl;
us... | {
"domain": "codereview.stackexchange",
"id": 42992,
"lm_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, authentication",
"url": null
} |
Spence at Illinois State University, Prentice Hall, Upper Saddle River, New Jersey 07458 (ISBN 0-13-233859-9, 1997, 1989, 1979). In Section 1. Most subjects presented here are covered rather minimally; we intend to give an overview and point the interested reader to more comprehensive treatments for further details. It... | {
"domain": "vogliadistringersiunpo.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.986979508737192,
"lm_q1q2_score": 0.8308646559333908,
"lm_q2_score": 0.8418256393148982,
"openwebmath_perplexity": 917.7662752568388,
"openwebmath_score": 0.4861178398132324,... |
microbiology, mycology
Title: circular pattern of mold on quince Could someone explain why mold on my quinces grows in well separated circles around a center? To make clear, what I mean I post the picture Looks like you may have Monilinia fructigena, brown rot, or at something similar (possibly also called brown rot,... | {
"domain": "biology.stackexchange",
"id": 10907,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "microbiology, mycology",
"url": null
} |
algorithms, time-complexity, amortized-analysis
Now how does this relate to C++ vectors? Vectors are implemented with arrays so to increase the size of a vector you must reallocate memory and copy the whole array over. Obviously we wouldn't want to do this very often. So if you perform a push_back operation and the ve... | {
"domain": "cs.stackexchange",
"id": 972,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, time-complexity, amortized-analysis",
"url": null
} |
turing-machines
Title: Turing Machines: Arbitrary alphabet equivalence with binary alphabet Think of an $n$-ary alphabet as $\{0, 1, ..., n-1, n\}$. For example, a binary alphabet is $\{0, 1\}$.
Do Turing Machines with binary alphabets decide the same set of languages as Turing Machines with $3$+ symbol alphabets?
... | {
"domain": "cs.stackexchange",
"id": 4117,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turing-machines",
"url": null
} |
c#, asp.net
</td> I'm not sure that it's the best choise to store the items as text in the database, and to store them in a single field, but that's a different matter...
You can put the checkboxes in an array and loop over it. Put the selected text in a list, and join it:
Checkbox[] checkboxes = new Checkbox[] { even... | {
"domain": "codereview.stackexchange",
"id": 759,
"lm_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#, asp.net",
"url": null
} |
Он дожил до тридцати пяти лет, а сердце у него прыгало, как у влюбленного мальчишки. Никогда еще его не влекло ни к одной женщине. Изящные европейские черты лица и карие глаза делали Сьюзан похожей на модель, рекламирующую косметику Эсте Лаудер. Худоба и неловкость подростка бесследно исчезли. С годами она приобрела ги... | {
"domain": "knutsfordlitfest.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9780517469248846,
"lm_q1q2_score": 0.8192356644327523,
"lm_q2_score": 0.837619959279793,
"openwebmath_perplexity": 1673.6827512704958,
"openwebmath_score": 0.8065864443778992,... |
drcsim
Title: Integral tie-back in AtlasPlugin.cpp seems wrong - causes control glitches
The code at roughly line 1066 in AtlasPlugin.cpp appears to be wrong. Specifically, it generally will invert the k_i_q_i term on a step change and saturate in the opposite of the commanded direction.
If a negative step is applie... | {
"domain": "robotics.stackexchange",
"id": 3198,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "drcsim",
"url": null
} |
time) to a function of a complex variable s (frequency). Function name Time domain function Laplace transform; f (t) F(s) = L{f (t)} Constant: 1: Linear: t: Power: t n: Power: t a: Γ(a+1) ⋅ s … Let’s take a look at a couple of fairly simple inverse transforms. This Laplace transform turns differential equations in time... | {
"domain": "wolfpacknyc.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9572778000158575,
"lm_q1q2_score": 0.8383714508542798,
"lm_q2_score": 0.8757869981319863,
"openwebmath_perplexity": 11396.313708180473,
"openwebmath_score": 0.7313063144683838,
"tags... |
inorganic-chemistry, solubility, analytical-chemistry, precipitation
$$\ce{AgBr (s) + 2 S2O3^2- (aq) <=> [Ag(S2O3)2]^3- (aq) + Br^- (aq) \quad $K_\mathrm{sp(2)} K_\mathrm{f(5)} = \pu{10.8}$ \tag 9}$$
Next $\ce{KI}$ is added. This results in precipitation of $\ce{AgI}$ via the following equilibrium:
$$\... | {
"domain": "chemistry.stackexchange",
"id": 13858,
"lm_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, solubility, analytical-chemistry, precipitation",
"url": ... |
arctan(6x) is 6/(1 + 36 x^2). Notation. There are many students that find it easy to take derivatives of trig functions, but many struggle with derivatives of inverse trig functions. 124 ) or Arthz ( Gradshteyn and Ryzhik 2000, p. xxx.... 1 + x 2: arccot x = 1 1 + x:... Derivatives then you can use the product rule of ... | {
"domain": "gmina.pl",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676496254957,
"lm_q1q2_score": 0.8076986733936143,
"lm_q2_score": 0.8244619220634456,
"openwebmath_perplexity": 1079.0722822436946,
"openwebmath_score": 0.8275403380393982,
"tags": ... |
electromagnetism, classical-electrodynamics
Finally, I can work out the electric field:
$$\vec{E} = - \vec{\nabla} \phi - \frac{\partial \vec{A}}{\partial t} = \frac{-q}{4\pi\epsilon_{0}}\bigg(\frac{-\vec{r}}{r^{3}}\Big(1 - \frac{\dot{r}}{c}\Big)-\frac{1}{rc}\vec{\nabla}\dot{r}+\Big(\big(1 - \frac{\dot{r}}{c}\big)\fra... | {
"domain": "physics.stackexchange",
"id": 98145,
"lm_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, classical-electrodynamics",
"url": null
} |
java, strings, file, stream
instance variables inputFileName and outputFileName never get initialized and are never used.
input file is never closed.
some variables are declared out of the scope they should be. For instance char c in analyzeSymbols() is declared outside the loop but is initialized and used only in... | {
"domain": "codereview.stackexchange",
"id": 29111,
"lm_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, file, stream",
"url": null
} |
-
What bugs me about combinatorics is that in our class we had 10 students and usually about 5 different answers to each question. How do I make this stuff rigorous, since at each step there's a lot of appeal to intuition? I'm curious, since the first answer to the card problem gives the same numeric answer as the solu... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850872288504,
"lm_q1q2_score": 0.8487874282984132,
"lm_q2_score": 0.8633916222765627,
"openwebmath_perplexity": 148.55656789304885,
"openwebmath_score": 0.8695859909057617,
"ta... |
PR = PolynomialRing(RR, 'x')
points = [(0, 0), (0.5, 0.25), (0.6, 0.36), (2, 4)]
poly = PR.lagrange_polynomial(points)
print(poly)
The first line creates a polynomial ring, which I called (creatively enough) PR, with real coefficients (thus the RR) and independent variable x (thus the 'x'). The second line is your se... | {
"domain": "sagemath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.978712650690179,
"lm_q1q2_score": 0.8728267493810961,
"lm_q2_score": 0.8918110425624792,
"openwebmath_perplexity": 721.4770406587977,
"openwebmath_score": 0.7643385529518127,
"tags": nu... |
performance, algorithm, node.js, scala, sieve-of-eratosthenes
// Output: all i such that A[i] is true.
A.zipWithIndex.filter{case (b, i) => b }.map{ case (b, i) => i + 2 };
}
This is my Node.js code:
let _ = require('lodash');
// Sieve of Eratosthenes
// https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
funct... | {
"domain": "codereview.stackexchange",
"id": 24650,
"lm_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, algorithm, node.js, scala, sieve-of-eratosthenes",
"url": null
} |
quantum-field-theory, quantum-chromodynamics, wilson-loop
Title: Derivative of a Wilson Line It's my first post on this website so please excuse any breaches of protocol that I'm unaware of.
I've come across a formula for taking derivatives of Wilson Lines with respect to points on the path, but I'm having trouble de... | {
"domain": "physics.stackexchange",
"id": 65344,
"lm_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, quantum-chromodynamics, wilson-loop",
"url": null
} |
beginner, c, vigenere-cipher
I think you mean
if( phrase[i] + pace > 90 && phrase[i] < 91)
phrase[i] = phrase[i] + pace - 26; | {
"domain": "codereview.stackexchange",
"id": 23470,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, c, vigenere-cipher",
"url": null
} |
the-moon, distances
Title: How big would the Earth look from the Moon? Imagine standing (somewhere) on the Moon's surface. How big would the Earth look from the Moon, compared to the image of the Moon we see from Earth? What would be the ratio between the diameters of each body? How would this ratio be calculated? Any... | {
"domain": "astronomy.stackexchange",
"id": 2278,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "the-moon, distances",
"url": null
} |
c, game, file-structure
uint32_t vx, vy, vz, vtx, vty, vtz, vnx, vny, vnz;
fseek(file, offset, SEEK_SET);
fread(&vx, 4, 1, file);
offset+=4;
fseek(file, offset, SEEK_SET);
fread(&vy, 4, 1, file);
offset+=4;
fseek(file, offset, SEEK_... | {
"domain": "codereview.stackexchange",
"id": 40293,
"lm_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, game, file-structure",
"url": null
} |
So, to prove that the dimension of the vector space in question is exactly 8, you only need to show that the remaining 8 constraints are indeed linearly independent. This amounts to proving that some $8\times16$ matrix has full row rank. It takes some work but it shouldn't be hard. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676508127574,
"lm_q1q2_score": 0.812084530875744,
"lm_q2_score": 0.8289388040954683,
"openwebmath_perplexity": 485.0711158070208,
"openwebmath_score": 0.9116096496582031,
"tags... |
angular.js, authentication, coffeescript
self.isAuthentic = function(cb){
if(!hasActiveLogin) return;
//THIS is where the "doesn't work" part of your code is
//this service looks to be an async service. and you are using it in a synced way
authService.isAuthentic(userInfo._id).then(f... | {
"domain": "codereview.stackexchange",
"id": 10530,
"lm_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.js, authentication, coffeescript",
"url": null
} |
vba, error-handling, excel
If Not OptionalText = vbNullString Then
messageText = messageText & vbCrLf & OptionalText
End If
MsgBox messageText, style, "Runtime Error: " & Err.number
End Sub
And here is a quick example of how the GetExcelApp function is used.
Public Sub Test()
Dim xl As Excel.App... | {
"domain": "codereview.stackexchange",
"id": 7961,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, error-handling, excel",
"url": null
} |
i, which is defined by its property i 2 = −1. Example sentences containing pure imaginary number A pure imaginary number is any complex number whose real part is equal to 0. The real and imaginary components. that was interesting! Noun 1. pure imaginary number - an imaginary number of the form a+bi where a is 0 complex... | {
"domain": "gridserver.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9553191335436404,
"lm_q1q2_score": 0.8081449999477799,
"lm_q2_score": 0.8459424411924673,
"openwebmath_perplexity": 944.4802991591857,
"openwebmath_score": 0.7889542579650879,
"tags":... |
functional-programming, type-theory
I place ? for terms that we need to provide. First we explicitly introduce and instantiate A and B:
∀ (f : ∀ (y : A). B y) (x : A). B x
app A B
Now we need to unify what we have
∀ (f : ∀ (y : A). B y) (x : A). B x
which is the same as
(∀ (y : A). B y) -> ∀ (x : A). B x
and what a... | {
"domain": "cs.stackexchange",
"id": 5603,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "functional-programming, type-theory",
"url": null
} |
hash
$$\frac{|\{h \in \mathcal{H} |h(a) = h(b)\}|}{6} \leq \frac{1}{3}$$
Though i do not really understand what the set above means, or how i can manipulate it so that i can essentially get a chance of $\frac{1}{3}$ overall. Essentially choosing that $h_6$ so that my above set is equal to $2$. The value $|\{h\in \math... | {
"domain": "cs.stackexchange",
"id": 19369,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "hash",
"url": null
} |
turing-completeness, intuition
All of the above would as well hold for C. Yet your question, at least the title, is specifically about OOP languages. Basically, your three languages are extensions of C by objects. My Turing-complete subsets then discard these extensions. At the moment I cannot come up with natural sub... | {
"domain": "cs.stackexchange",
"id": 12443,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turing-completeness, intuition",
"url": null
} |
java, homework, finance
Title: Money class for handling calculations with coins The code follows the requested format of the output exactly for my assignment. But, for my own personal reference, is there a better way that I could have done anything? Are there any additional tips? Maybe some simple ways that I could go... | {
"domain": "codereview.stackexchange",
"id": 1443,
"lm_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, homework, finance",
"url": null
} |
python, performance, strings, compression
3. Avoiding transpositions
With that bug fixed, let's see how long the function takes on a medium-sized amount of data:
>>> import random, string
>>> from timeit import timeit
>>> s = ''.join(random.choice(string.printable) for _ in range(1024))
>>> t = bwt(s)
>>> timeit(lambd... | {
"domain": "codereview.stackexchange",
"id": 3087,
"lm_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, strings, compression",
"url": null
} |
inorganic-chemistry, redox, stoichiometry, transition-metals
Title: Balancing the equation I've got a question:
$$\ce{Cr2O7^2- -> Cr^3+}$$
This reaction takes place in a acidic medium - how many $\ce{H+}$ are required to balance the equation?
How do I balance this reaction.
Cr had a oxidation state of $+6$ at first... | {
"domain": "chemistry.stackexchange",
"id": 6586,
"lm_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, redox, stoichiometry, transition-metals",
"url": null
} |
electrons, quantum-spin, magnetic-moment, orbitals
Now, the final item on the list above is particularly relevant to your second question:
How one imagine the orientation of the magnetic dipoles of the electrons in each shell?
Here the answer from QM is simply: in complicated ways.
Angular momentum in QM is complica... | {
"domain": "physics.stackexchange",
"id": 60032,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrons, quantum-spin, magnetic-moment, orbitals",
"url": null
} |
gazebo, plugin, ros-electric
Title: gazebo plugin with ros electric
I have a problem creating a Gazebo plugin for ros electric.
On the Wiki I can only find the tutorial for Ros Fuerte, but I should use elctric.
Anyone can help me?
Originally posted by camilla on ROS Answers with karma: 255 on 2012-12-13
Post score:... | {
"domain": "robotics.stackexchange",
"id": 12090,
"lm_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, plugin, ros-electric",
"url": null
} |
electromagnetic-radiation
Visualizing Radiation
Here's a picture$^2$ of a charge, initially at rest, that accelerated quickly to some constant speed $v$. The circular curve sketched by the apparent discontinuity in the field lines is the front of the electromagnetic wave, which is traveling at a speed $c$. The electri... | {
"domain": "physics.stackexchange",
"id": 15667,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetic-radiation",
"url": null
} |
fourier-transform, filter-design
$H_{c1}(j\omega )$ is the ideal antialising filter and $H_{c2}(j\omega )$ is a real one. I'm asked to design $H(e^{j\Omega })$ so that $y[n]$ in the second diagram (the one on the right) is exactly the same as $x[n]$ in the first diagram (the one on the left).
I did something but I'm p... | {
"domain": "dsp.stackexchange",
"id": 3540,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fourier-transform, filter-design",
"url": null
} |
c++, game, c++17
double GameObject::angle() const
{
return qudrantAngleToAngle(mQuadrantAngle, mQuadrant);
}
void GameObject::setAngle(double angle)
{
angle = calcAlphaIfOver360(angle);
mQuadrant = calcQuadrant(angle);
mQuadrantAngle = angleToQuadrantAngle(angle, mQuadr... | {
"domain": "codereview.stackexchange",
"id": 34713,
"lm_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++, game, c++17",
"url": null
} |
electromagnetism, quantum-field-theory, electrostatics, lagrangian-formalism, quantum-electrodynamics
As for units, there is no disagreement. $[m\bar\psi \psi] = 4$, in terms of mass dimension. Obviously $[m] = 1$ so $[\psi] = \frac32$. We have $[A_\mu] = 1$. Thus in natural units, in four dimensions, $[e] = 0$.
The P... | {
"domain": "physics.stackexchange",
"id": 50270,
"lm_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, quantum-field-theory, electrostatics, lagrangian-formalism, quan... |
orbital-motion, solar-system, stability, chaos-theory
Title: Earth's orbit: chaotic but stable The eccentricity of Earths orbit follows a bounded random walk-like pattern, see this chart. I presume most other planets are similar. One could think of eccentricity and argument of periapsis as "polar coordinates"; the cen... | {
"domain": "physics.stackexchange",
"id": 75820,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbital-motion, solar-system, stability, chaos-theory",
"url": null
} |
If the data are consistent with a hypothesis, my belief in that hypothesis is strengthened. If you peek at your data after every single observation, there is a 49% chance that you will make a Type I error. BayesFactor: Computation of Bayes Factors for Common Designs. Yes, you might try to defend $$p$$-values by saying ... | {
"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,
... |
classical-mechanics, energy, lagrangian-formalism
Title: Can the Lagrangian be written as a function of ONLY time? The lagrangian is always phrased as $L(t,q,\dot{q})$.
If you magically knew the equations $q(t)$ and $\dot{q}(t)$, could the Lagrangian ever be written only as a function of time?
Take freefall for exampl... | {
"domain": "physics.stackexchange",
"id": 70082,
"lm_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, lagrangian-formalism",
"url": null
} |
mysql, php5, ajax
And this is the result from the page that displays the process (index.php):
CAN'T DISPLAY SINCE I DON'T HAVE ENOUGH REPUTATION POINTS :(
As you can see, I have a table already in place and I would like the results to fall below as additional rows, but they come out all squashed together. I've tried s... | {
"domain": "codereview.stackexchange",
"id": 478,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mysql, php5, ajax",
"url": null
} |
stereo, ros-kinetic
(don't have space to post full code).
Comment by glagla on 2016-08-03:
Could you send me the code you tried by mail? @ svendxs@gmail.com please? | {
"domain": "robotics.stackexchange",
"id": 24888,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "stereo, ros-kinetic",
"url": null
} |
python, python-3.x, integer, type-safety, casting
There is a set of unit tests I've been using as well (tests.py):
from strictint import StrictInt
import unittest
class TestStrictInt(unittest.TestCase):
def test_float_conversion(self):
# Non-integer parts present in a float, should raise ValueError
... | {
"domain": "codereview.stackexchange",
"id": 30771,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x, integer, type-safety, casting",
"url": null
} |
fusion, neutrons, x-rays
We can look at some old papers [1-3], or use the Ramsauer model to estimate it. Whatever we decide to do, an important thing to note is that the cross section decreases with increasing energy (most pronounced for low energies, for high energies, it can be approximated as constant). As a rough ... | {
"domain": "physics.stackexchange",
"id": 47451,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fusion, neutrons, x-rays",
"url": null
} |
classical-mechanics, energy, lagrangian-formalism, potential-energy, variational-principle
Also if I think about a point-mass falling to the ground that has an infinitesimal bump in its straight falling line, I find that only the average kinetic energy will increase but the average potential energy stays the same.
Ca... | {
"domain": "physics.stackexchange",
"id": 82996,
"lm_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, lagrangian-formalism, potential-energy, variational-p... |
php
}
public function checkEmpty() // checks for empty and returns bool
{
return ( !in_array( '', $this->text_array, TRUE ) );
}
} I've tried to cover as many things I could. A few of my explanations are rather brief, so if you want me to explain or defend anything, let me know. And hopefully it ... | {
"domain": "codereview.stackexchange",
"id": 1902,
"lm_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",
"url": null
} |
quantum-computing, random-walks, quantum-walk
Title: Transitioning from quantum to classical random walks on the line Quick version
Are there models of decoherence for the quantum walk on the line such that we can tune the walk to spread as $\Theta(t^k)$ for any $1/2 \leq k \leq 1$?
Motivation
Classical random walks... | {
"domain": "cstheory.stackexchange",
"id": 1012,
"lm_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-computing, random-walks, quantum-walk",
"url": null
} |
python, json, api, http, wrapper
class User(object):
"""
Represents a hacker i.e. a user on Hacker News
"""
def __init__(self, data):
self.user_id = data.get('id')
self.delay = data.get('delay')
self.created = datetime.datetime.fromtimestamp(data.get('time', 0))
self.k... | {
"domain": "codereview.stackexchange",
"id": 9972,
"lm_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, json, api, http, wrapper",
"url": null
} |
We can, however, point to a simple condition that assures a positive answer, as suggested in the question. I will state it rather generally because that reveals its nature and it is no harder to prove the generalization.
Let $$X$$ be a continuous random variable supported on all the real numbers. (This implies its dis... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.979667648438234,
"lm_q1q2_score": 0.8163811507302945,
"lm_q2_score": 0.8333245994514084,
"openwebmath_perplexity": 344.8452102843219,
"openwebmath_score": 0.9153262376785278,
"tags... |
# If $(a+b)(a+c)(b+c)=8abc$ prove $a=b=c$
For positive numbers $$a,b,c$$ we have $$(a+b)(a+c)(b+c)=8abc$$. Prove $$a=b=c$$
I tried expanding the expression. after simplifying we have,
$$a^2b+ab^2+b^2c+ca^2+ac^2+bc^2=6abc$$ But not sure how to continue.
I also noticed that we have,
$$(a+b)(a+c)(b+c)=(2a)(2b)(2c)$$ ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9873750510899382,
"lm_q1q2_score": 0.8332409719375788,
"lm_q2_score": 0.8438951045175643,
"openwebmath_perplexity": 166.8844566507926,
"openwebmath_score": 0.9418070912361145,
"tag... |
homework-and-exercises, newtonian-mechanics, oscillators
Title: Stuck with finding the equation for the period of oscillation of a mass under a gaussian potential I'm trying to find an equation for the period of oscillation of a mass under the following potential:
$U(x) = - U_0 \exp(-\frac{x^2}{2\sigma^2})$
I'm trying... | {
"domain": "physics.stackexchange",
"id": 84986,
"lm_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, oscillators",
"url": null
} |
ros, slam, navigation, rosdep, linuxmint
Title: RGBDSLAM with ROS electric on Linux Mint 12
When I was trying to install rgdbslam stack on Linux Mint 12, I recive this information:
[ rosmake ] Packages requested are: ['rgbdslam'] ... | {
"domain": "robotics.stackexchange",
"id": 7495,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, slam, navigation, rosdep, linuxmint",
"url": null
} |
newtonian-mechanics, forces, kinematics, momentum, collision
Title: Does a force really act on a body during a collision? Consider two bodies A(black) and B(red) having equal mass. A is moving at a constant speed towards B, which is stationary. At certain point of time, they collide elastically, $\therefore u_{A}=v_{B... | {
"domain": "physics.stackexchange",
"id": 17132,
"lm_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, forces, kinematics, momentum, collision",
"url": null
} |
Multiplying matrices by scalars - Multiplying matrices - Representing & solving linear systems with matrices - Matrix inverses - Matrix determinants - Matrices as transformations - Matrices applications. Comments and suggestions encouraged at [email protected] Other math calcs online calculation: Determinant of 3x3 mat... | {
"domain": "on50mm.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575127099971,
"lm_q1q2_score": 0.8010128158396357,
"lm_q2_score": 0.8152324983301568,
"openwebmath_perplexity": 380.7746557546349,
"openwebmath_score": 0.7201289534568787,
"tags": ... |
field-theory, gauge-theory, gauge-invariance, degrees-of-freedom, poincare-symmetry
Title: Deriving the gauge group from the little group Arguments from the "little group" are used to show that the internal degrees of freedom of a massive particle transform under $SO(3)$, while the internal degrees of freedom of massl... | {
"domain": "physics.stackexchange",
"id": 96772,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "field-theory, gauge-theory, gauge-invariance, degrees-of-freedom, poincare-symmetr... |
c++, html, parsing, c++14
void HTMLSaxParser::parseTagOpen()
{
std::string tag;
char nextCharacter;
while(htmlpage.get(nextCharacter) && nextCharacter != '>' && nextCharacter != '/' && !std::isspace(nextCharacter))
{
tag += std::tolower(nextCharacter);
}
Attributes attributes;
... | {
"domain": "codereview.stackexchange",
"id": 21579,
"lm_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++, html, parsing, c++14",
"url": null
} |
newtonian-mechanics, gravity, rotational-dynamics, rotation
& \left( \frac 14\,{L}^{2}m+J_{{z}} \right) \ddot\theta \\&+ \left( -\frac 14\,m{
L}^{2}\cos \left( \theta \right) -J_{{x}}\cos \left( \theta \right) +
\cos \left( \theta \right) J_{{y}} \right) \sin \left( \theta \right)
{\omega}^{2}\\&+\frac 12\,mgL\sin \le... | {
"domain": "physics.stackexchange",
"id": 75149,
"lm_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, gravity, rotational-dynamics, rotation",
"url": null
} |
electromagnetism, multipole-expansion
Title: The factor $3$ in the definition of the quadrupole moment tensor I can find two different ways of writing the quadrupole moment tensor
$$Q = \int \mathrm{d}^3r \rho(r) \left(3 r\otimes r - |r|^2I\right)$$
or
$$Q = \int \mathrm{d}^3r \rho(r) \left(r\otimes r - \frac{|r|^2}{3... | {
"domain": "physics.stackexchange",
"id": 73847,
"lm_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, multipole-expansion",
"url": null
} |
filters
end
plot(t,yy)
And nothing but disaster happens when testing with a sine wave with 100Hz:
Signal just gets huge, same happens with other frequencies.
What am i doing wrong?
Edit:
sys = tf(10^(2/20).*[b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10],[a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10],1/fs);
P = pole(sys)
zer=0
zplane(z... | {
"domain": "dsp.stackexchange",
"id": 11599,
"lm_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",
"url": null
} |
Ask Question Asked 7 years, 3 months ago. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, Help Center Detailed answers to any questions you might have Calculating a limit in two variables by going to polar coordinates. I Using symmetry to graph curves. Polar Coordinates problem set and ... | {
"domain": "quadri-canvas.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9901401455693091,
"lm_q1q2_score": 0.8293611464062882,
"lm_q2_score": 0.8376199572530448,
"openwebmath_perplexity": 618.100891623218,
"openwebmath_score": 0.8884478807449341,
"t... |
ros, cvbridge
namespace enc = sensor_msgs::image_encodings;
static const char WINDOW[] = "Image window";
class ImageConverter
{
ros::NodeHandle nh_;
image_transport::ImageTransport it_;
image_transport::Subscriber image_sub_;
image_transport::Publisher image_pub_;
public:
I... | {
"domain": "robotics.stackexchange",
"id": 14310,
"lm_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, cvbridge",
"url": null
} |
gazebo-plugin, ros-kinetic, gazebo-7
Finally, on my cuadrubot.gazebo:
<!-- Gazebo Mimic Joints Plugin -->
<xacro:macro name="mimic_joint_plugin_gazebo" params="name_prefix parent_joint mimic_joint has_pid:=false multiplier:=1.0 offset:=0 sensitiveness:=0.0 max_effort:=1.0 robot_namespace:=''">
<gazebo>
<pl... | {
"domain": "robotics.stackexchange",
"id": 4473,
"lm_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-plugin, ros-kinetic, gazebo-7",
"url": null
} |
discrete-signals, continuous-signals, kalman-filters
In this simulation, the model was exact. And therefore it's a little trivial. For more realistic applications, one should either replace the linear differential equation with more realistic nonlinear ones hence change the model and/or apply process noise to compansa... | {
"domain": "dsp.stackexchange",
"id": 7610,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "discrete-signals, continuous-signals, kalman-filters",
"url": null
} |
pursuit of her chosen prey. Predator-Prey Cycles. Predator-Prey Simulation Lab. Then, the model was further developed to include density dependent prey growth and a functional response of the form developed by C. ’ Note that this model can be considered as a simple predator-prey model. For the eBay data, we have >>poly... | {
"domain": "nomen.pw",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9901401423688666,
"lm_q1q2_score": 0.8845015038962932,
"lm_q2_score": 0.8933094074745443,
"openwebmath_perplexity": 1332.7149487413285,
"openwebmath_score": 0.4283117651939392,
"tags": null... |
volcanology, geysers
Title: Why exactly is the feature on Io called a volcano, and the feature on Enceladus called a geyser? News of the long-lived and not unusual cloud on Mars associated with 21 km tall Olympus Mons has people commenting. This tweet by planetary scientist Dr. Tanya Harrison says
I don't understand ... | {
"domain": "earthscience.stackexchange",
"id": 1574,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "volcanology, geysers",
"url": null
} |
openni-launch
Title: hog_haar_person_detection problem
Hi!
I want to execute this package> hog_haar_person_detection
But I don’t know how to complete this instruction from the author:
Launch your camera node and have it
publish to the "image_topic" parameter
specified in
hog_haar_person_detection.launch
Im working ... | {
"domain": "robotics.stackexchange",
"id": 23378,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "openni-launch",
"url": null
} |
= 512. This unit illustrates this rule. You need to use the chain rule. Chain Rules for Functions of Several Variables - One Independent Variable. Describe the proof of the chain rule. Here is an attempt at the quotient rule: Topic wise AS-Level Pure Math Past Paper Binomial Theorem Answer. First, determine which funct... | {
"domain": "co.uk",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9626731169394882,
"lm_q1q2_score": 0.8293796751466511,
"lm_q2_score": 0.861538211208597,
"openwebmath_perplexity": 759.8622886760531,
"openwebmath_score": 0.7789421081542969,
"tags": null,
"... |
40 views
### Can we use interpolation function of different order to represent different degrees of freedom in a FEM element?
Consider a line element in FEM. Let each node have 3 DOF. They are x and y translation DOF and temperature. Can we use interpolation functions of different orders for the translation DOFs and ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9653811591688145,
"lm_q1q2_score": 0.800241903577694,
"lm_q2_score": 0.8289388040954683,
"openwebmath_perplexity": 956.8638222570276,
"openwebmath_score": 0.8350023627281189,
"tags... |
#### Subhotosh Khan
##### Super Moderator
Staff member
Meaning in Google´s World 2:0 = 173279384:0. Same thing as you can see.
Incorrect.
Two $$\displaystyle \infty$$s cannot be equated (that way algebraically)...
#### Subhotosh Khan
##### Super Moderator
Staff member
So if you see a Number like 546342 you know its... | {
"domain": "freemathhelp.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561658682131,
"lm_q1q2_score": 0.8365022780707653,
"lm_q2_score": 0.8633916029436189,
"openwebmath_perplexity": 667.7089018334326,
"openwebmath_score": 0.4968850612640381,
"... |
inorganic-chemistry, molecular-orbital-theory, halides, hybridization
Title: Why do compounds like SF6 and SF4 exist but SH6 and SH4 don't? Both $\ce{SF6}$ and $\ce{SH6}$ and $\ce{SF4}$ and $\ce{SH4}$ have the same central atom and the same hybridization, but my teacher specifically mentioned that $\ce{SH6}$ and $\ce{... | {
"domain": "chemistry.stackexchange",
"id": 5451,
"lm_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, molecular-orbital-theory, halides, hybridization",
"url": ... |
quantum-field-theory, condensed-matter, quantum-spin, fermions, magnetic-monopoles
What is the spin of a fermion of charge $q$ in the presence of a monopole background of monopole number $n$, and why?
1: "states of odd electric charge have half-integral spin and states of even electric charge have integral spin", fro... | {
"domain": "physics.stackexchange",
"id": 50338,
"lm_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, quantum-spin, fermions, magnetic-monopoles... |
homework-and-exercises, newtonian-mechanics, forces, free-body-diagram
Title: Forces and moments on Massless link I am the TA for a dynamics class, and I've come across an odd problem where I can't explain/don't remember how to look up the answer to the problem. I have the following problem from an old solution manual... | {
"domain": "physics.stackexchange",
"id": 29455,
"lm_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, forces, free-body-diagram",
"url": ... |
rogue-planet
Title: Are there any probabilistic models for the likelihood of finding a rogue planet closer to us than Proxima Centauri? There are some articles that claim there could be more rogue planets than stars in our galaxy such as this one.
Now if this were true one might expect that there is a rogue planet clo... | {
"domain": "astronomy.stackexchange",
"id": 6490,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rogue-planet",
"url": null
} |
python, python-3.x
and program a class with
else:
schedule[day][timeslot] = course
Now to tackle the fact that on Saturday there is only one slot, you can precede this with:
if time not in schedule[day]:
print("!!!DESOLE les cours s'arretent a midi le mercredi et samedi")
Even better would be to abstract thi... | {
"domain": "codereview.stackexchange",
"id": 33587,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x",
"url": null
} |
beginner, haskell, recursion, combinatorics
Title: Generate possible combinations by range and length I am learning Haskell and I implemented a recursive function that generates possible strings by length and array (e.g. ['a'..'z']):
comb :: Int -> [a] -> [[a]]
comb 0 _ = []
comb 1 r = map (:[]) r -- convert "abc.." ... | {
"domain": "codereview.stackexchange",
"id": 42068,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, haskell, recursion, combinatorics",
"url": null
} |
homework-and-exercises, newtonian-mechanics, constrained-dynamics
Title: In this pulley-block system, acceleration of blocks-A and B is same then how is their displacement different?
In the given arrangement, Block C begins to move down at a constant speed of $7\ \rm{cm/s} $ at time $t=0$. At the same instant, Bloc... | {
"domain": "physics.stackexchange",
"id": 60285,
"lm_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, constrained-dynamics",
"url": null
... |
graph-theory, graph-algorithms, network-modeling, flow-problems
Title: A stronger Flow Decomposition Theorem? In the classic Network Flows: Theory, Algorithms, and Applications book (pages 80/81) the flow decomposition theorem is stated as follows:
Every nonnegative arc flow x can be represented as a path and cycle f... | {
"domain": "cstheory.stackexchange",
"id": 5144,
"lm_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, network-modeling, flow-problems",
"url": null
} |
history
Title: About Year Zero It is said that, in part due to a poor grasp of mathematics (the number zero to be precise) our forebears, when they developed the calendar went from 1 BC/BCE to 1 AD/CE. Year Zero is missing - it would've been, for Christians, the year Jesus Christ was born.
How do astronomers, the go-t... | {
"domain": "astronomy.stackexchange",
"id": 6691,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "history",
"url": null
} |
optimization, gradient-descent
Title: Oscillating around the saddle point in gradient descent? I was reading a blog post that talked about the problem of the saddle point in training.
In the post, it says if the loss function is flatter in the direction of x (local minima here) compared to y at the saddle point, gra... | {
"domain": "ai.stackexchange",
"id": 1764,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optimization, gradient-descent",
"url": null
} |
classical-mechanics, waves
Title: Wave function interpretation $y(x,t) = (0.35m)\sin(10\pi t-3\pi x + \frac\pi{4})$ Wave function interpretation $y(x,t) = (0.35m)\sin(10\pi t-3\pi x + \frac\pi{4})$
I used to deal with function with one variable
And now theres are two, how can I interpret them?
Is $10\pi$ still equal ... | {
"domain": "physics.stackexchange",
"id": 7936,
"lm_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, waves",
"url": null
} |
c#, linq, extension-methods
Title: LINQ method that selects an item based on previous one my requirement is to implement a way to filter a collection of elements based on a value of previous one.
For example to only select a number that is larger than the previous one. I don't currently know of any LINQ method that w... | {
"domain": "codereview.stackexchange",
"id": 29371,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, linq, extension-methods",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.