text stringlengths 1 1.11k | source dict |
|---|---|
image-processing, signal-analysis, linear-algebra, svd
For instance, given an Image $ I $ its SVD is given by:
$$ I = U S {V}^{T} = \sum_{i=1}^{\textrm{rank}(I)} {s}_{i} {u}_{i} {v}_{i}^{T} $$
As you can see, the image is decomposed into linear combination of matrices (Given by $ {u}_{i} {v}_{i}^{T} $) where the weigh... | {
"domain": "dsp.stackexchange",
"id": 3714,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "image-processing, signal-analysis, linear-algebra, svd",
"url": null
} |
earth, history, geometry
Title: How did they know the radius of the earth in ancient times? We've all heard how in ancient times they determined that the earth was round, and were able to calculate its radius based on the measured shadows of two separate sticks in the ground at noon. I am not questioning the math use... | {
"domain": "physics.stackexchange",
"id": 87147,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "earth, history, geometry",
"url": null
} |
matlab, spectrogram
The NFFT and window length arguments can be the same length. The longer the NFFT argument, the more frequency components you'll get at the expense of decreased time resolution (more samples are spread over a larger time segment, thus less time resolution) | {
"domain": "dsp.stackexchange",
"id": 8984,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "matlab, spectrogram",
"url": null
} |
c, programming-challenge, string-processing
/* The author was not ready to part with this piece of code, so this has been commented out. */
/*static size_t get_next_pos(const char *buf) */
/*{ */
/* /1* */
/* * "one" --- Skip 1 char, as 'e' might start "eight". */
/* * "two" --- Skip 1 char, as 'o' m... | {
"domain": "codereview.stackexchange",
"id": 45404,
"lm_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, string-processing",
"url": null
} |
ros, c++, baxter
A control rate timeout is also enforced at this motor controller layer. This states that if a new 'JointCommand' message is not received within the specified timeout (0.2 seconds, or 5Hz), the robot will 'Timeout'. When the robot 'Times out', the current control mode is exited, reverting back to posit... | {
"domain": "robotics.stackexchange",
"id": 23123,
"lm_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, c++, baxter",
"url": null
} |
variance, bias
Title: Question about bias-variance trade off
This question is from a uni module about machine learning. I'm a bit stuck as I can't relate it to the bias-variance trade-off, to me the question implies all models have something to do with the trade off but I can only think of B being overfitted on its t... | {
"domain": "datascience.stackexchange",
"id": 12042,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "variance, bias",
"url": null
} |
php, beginner, mysql
}
}
// If there were any errors, show them
if (!empty($errors)) {
foreach ($errors as $cur_error)
echo '<div class="padded box red" style="margin-bottom: 10px;">'.$cur_error.'</div>';
} There's a significant security issue in this code. Note that you are getting the player ID from user input. W... | {
"domain": "codereview.stackexchange",
"id": 10327,
"lm_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, beginner, mysql",
"url": null
} |
quadcopter, motion-planning, trajectory, drone
Here a is the acceleration, d is the deceleration, c1 is the time at which the curve first becomes flat, c2 is the time at which the curve is flat for the last time and v_max is the maximum allowed velocity.
In mathematical notation:
$$
v(t) = V\left|\dfrac{1}{\mathrm{e}^... | {
"domain": "robotics.stackexchange",
"id": 2586,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quadcopter, motion-planning, trajectory, drone",
"url": null
} |
Several of the subsets of vectors spaces that we worked with in Chapter M are also subspaces — they are closed under vector addition and scalar multiplication in $\complex{m}\text{.}$
##### Proof
That was easy! Notice that we could have used this same approach to prove that the null space is a subspace, since Theorem... | {
"domain": "ups.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9933071498682252,
"lm_q1q2_score": 0.8858422949054655,
"lm_q2_score": 0.8918110526265554,
"openwebmath_perplexity": 242.52663300952588,
"openwebmath_score": 0.8706957697868347,
"tags": null,... |
radio-astronomy, identify-this-object
Title: MeerKAT's Epic Image of the Galactic Centre, what are we seeing? In this answer as well as this one, I've linked to New Jersey Institute of Technology's Dr. Dale Gary's nicely-written Physics 728 Radio Astronomy; Lecture #1 notes where I can see the image below. It links to... | {
"domain": "astronomy.stackexchange",
"id": 3620,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "radio-astronomy, identify-this-object",
"url": null
} |
java, comparative-review, ascii-art
Title: Creating a triangle I have two implementation which I modified according to my need to create a triangle or a pyramid like this:
*
***
*****
*******
*********
First way:
int num = 5;
for(int i=0;i<num;i++) {
for(int j=0;j<num-i;j++) {
System.out.p... | {
"domain": "codereview.stackexchange",
"id": 22113,
"lm_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, comparative-review, ascii-art",
"url": null
} |
point in x using plus sign ('+') markers and draws two reference lines that represent the theoretical distribution. qqplot(x) displays a quantile-quantile plot of the quantiles of the sample data x versus the theoretical quantile values from a normal distribution.If the distribution of x is normal, then the data plot a... | {
"domain": "groversdogpound.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9693241974031599,
"lm_q1q2_score": 0.8180079467817483,
"lm_q2_score": 0.8438951064805861,
"openwebmath_perplexity": 923.2530099204954,
"openwebmath_score": 0.4955660104751587,
... |
acoustics, frequency, string, resonance, vibrations
$$f_1=\frac{1}{2L}\sqrt{\frac{T}{\mu}}$$
and the higher frequencies can be calculated by
$$f_n=nf_1\ (n=1,2,3,...)$$
When you pluck such a string, you will most likely create a pattern that is not any of these normal modes. However, with time, due to inference, most ... | {
"domain": "physics.stackexchange",
"id": 84761,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "acoustics, frequency, string, resonance, vibrations",
"url": null
} |
ruby, programming-challenge, io
The flowchart is:
|
| Readfile
|
V
"MARY","PATRICIA","LINDA","BAR. . .,"DARELL","BRODERICK","ALONSO
|
| Split on comma
|
V | {
"domain": "codereview.stackexchange",
"id": 13513,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ruby, programming-challenge, io",
"url": null
} |
community-challenge, actionscript-3, simon-says
There might be a third class you can make responsible for handling the blinking animation so that you don't have this graphical logic stuck between your game logic.
Lastly, not having an IDE at hand is no excuse for not cleaning the code up later. Just because you're pro... | {
"domain": "codereview.stackexchange",
"id": 12030,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "community-challenge, actionscript-3, simon-says",
"url": null
} |
ros-melodic, gazebo-9
Title: new to ROS.. trying to operate a robot in gazebo using the teleop_twist_keyboard
I have successfully created an instance of pioneer 3dx robot from (https://github.com/mario-serna/pioneer_p3dx_model) in gazebo. now i am trying to operate it with teleop_twist_keyboard.
I am currently runnin... | {
"domain": "robotics.stackexchange",
"id": 4420,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-melodic, gazebo-9",
"url": null
} |
performance, php, mvc
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
\PDO::ATTR_EMULATE_PREPARES => false,
];
try {
// TODO: Move database to a directory above the root directory.
$pdo = new PDO("sqlite:wiki.db", null, null, $options);
} catch (\PDOException $e) {
throw new \PDOException($e->get... | {
"domain": "codereview.stackexchange",
"id": 34481,
"lm_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, php, mvc",
"url": null
} |
# $f(x, z, n)$ where, depending on $z$, the derivative, proportional to $x$, increases, decreases, or remains constant
I'm looking for a function that will produce a downwards sloping line, the shape of which is determined by one of the function's parameters. For example, given the function $f(x, z, n)$, where $x$ has... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.976310529389902,
"lm_q1q2_score": 0.8218832355735209,
"lm_q2_score": 0.8418256393148982,
"openwebmath_perplexity": 237.22503405617704,
"openwebmath_score": 0.9164741635322571,
"tag... |
temperature
The actual temperature it reaches depends on a lot of factors, like how much light it reflects and how much of its surface area is illuminated. If it is a perfect blackbody, with half of its surface area illuminated normally (in other words, it's a flat disk), and the whole object reaches thermal equilibri... | {
"domain": "physics.stackexchange",
"id": 47248,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "temperature",
"url": null
} |
units, thermal-radiation, dimensional-analysis
Title: Proving that Planck's Law is dimensionally homogeneous I would like to know whether it is possible to show that Planck's Law is dimensionally homogeneous, as well as the steps taken to prove it.
$$B_\lambda(\lambda, T) =\frac{2 hc^2}{\lambda^5}\frac{1}{ \exp\left(... | {
"domain": "physics.stackexchange",
"id": 28002,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "units, thermal-radiation, dimensional-analysis",
"url": null
} |
ros, ros-melodic, colcon, cmake
This was overriding my other paths. Removing this line resolved the issue.
Originally posted by borgman_jeremy with karma: 56 on 2018-10-09
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by gvdhoorn on 2018-10-10:
And a again a win for the MWE / ... | {
"domain": "robotics.stackexchange",
"id": 31867,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros-melodic, colcon, cmake",
"url": null
} |
However, I noticed that $$1.12 \sum_{k \leq n} (-1)^k k \log k$$ is actually a very good (experimental) estimate of what's going on, as can be seen in the following plot.
Perhaps $1.12$ is an incorrect choice --- it just happened to be a very nearby reasonable seeming number, and it does appear to reflect what's going... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9693241947446617,
"lm_q1q2_score": 0.8794796907817736,
"lm_q2_score": 0.9073122238669026,
"openwebmath_perplexity": 351.93902487681754,
"openwebmath_score": 0.9954421520233154,
"ta... |
neural-network, backpropagation
More general ReLU network
If we add in more generic terms, then we can work with two arbitrary layers. Call them Layer $(k)$ indexed by $i$, and Layer $(k+1)$ indexed by $j$. The weights are now a matrix. So our feed-forward equations look like this:
$z^{(k+1)}_j = \sum_{\forall i} W^{(... | {
"domain": "datascience.stackexchange",
"id": 1733,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "neural-network, backpropagation",
"url": null
} |
python, io, windows
import win32api, win32file, win32pipe
class pipe(io.IOBase):
def __init__(self, name, pipetype='server',
openmode = (win32pipe.PIPE_ACCESS_DUPLEX |
win32file.FILE_FLAG_OVERLAPPED),
pipemode = win32pipe.PIPE_TYPE_BYTE | win32pipe.P... | {
"domain": "codereview.stackexchange",
"id": 13365,
"lm_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, io, windows",
"url": null
} |
php, object-oriented, mysql, pdo
Try-catch-throw? Why? The connection failed, the PDOException tells me why, that's what I want to know, why catch that exception, and throw a new, more general one? What if I passed PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT to the constructor, and the connection failed? You're probably ... | {
"domain": "codereview.stackexchange",
"id": 15033,
"lm_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, mysql, pdo",
"url": null
} |
biomedical-engineering
And finally, the heart of what looks helpful is these example signals - presumably available from their evaluation systems for SPO2 levels of your choice
Larger version here - MUCH easier to read
plus
Appears to be very useful application guide
Nonin "Acurate Pulse Oximeter"
Ecostore Wireles... | {
"domain": "engineering.stackexchange",
"id": 234,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "biomedical-engineering",
"url": null
} |
c, windows, sdl, virtual-machine
unsigned char ioRegs[0x4C]; // I/O registers from 0xFF00-0xFF4B. FF03, FF08-FF0E, FF15, FF1F, and FF27-FF2F are unused.
// The address space from FF4C-FF7F is unusable.
unsigned char highRam[0x7F]; // The Gameboy's hig... | {
"domain": "codereview.stackexchange",
"id": 32065,
"lm_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, windows, sdl, virtual-machine",
"url": null
} |
java, union-find
if(cell == null)
return null;
if(cell != cell.basin.sinkCell) {
cell.basin.sinkCell = findSink(cell.basin.sinkCell);
}
return cell;
}
private void union(Cell cellX, Cell cellY) {
Cell sinkX = findSink(cellX);
Cell sinkY = find... | {
"domain": "codereview.stackexchange",
"id": 24129,
"lm_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, union-find",
"url": null
} |
electromagnetism, electrostatics
and the total charge on the sphere is given by
$$ Q = \int \sigma(\theta) d\cos\theta d\phi = 2\pi R^2 \int \sigma(\theta) d\cos(\theta) $$
This is a consequence of the inversion formula for electric fields.
The resulting infinite sum of integrals is
$$ Q = 4\pi R^2 \sum_{n=1,3,5,...} ... | {
"domain": "physics.stackexchange",
"id": 1738,
"lm_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, electrostatics",
"url": null
} |
discrete-signals, proof, non-linear
Title: Having difficulty checking for time invariance of discrete system A system is given with the following equation:
$$y(n) = 3y^2 (n-1) - nx(n) + 4x(n-1) - 2x(n+1)$$
I need to check for the linearity and time invariance of the system.
By just looking at the equation I can guess ... | {
"domain": "dsp.stackexchange",
"id": 7869,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "discrete-signals, proof, non-linear",
"url": null
} |
units, dimensional-analysis, unit-conversion, absolute-units
$$M \sqrt{\frac{G}{\hbar c}} = L\sqrt{\frac{c^3}{\hbar G}}$$
We can write this as:
$$L=\frac{M G}{c^2}$$
which is dimensionally correct in SI units.
You can play this game with any arbitrary expression, e.g.
$$M^3 \exp(M/L) = L^5$$
can be transformed into a... | {
"domain": "physics.stackexchange",
"id": 40800,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "units, dimensional-analysis, unit-conversion, absolute-units",
"url": null
} |
java, parsing, xml
private boolean isLetter() {
return Character.isLetter(charAtCurrentIndex());
}
private boolean isWhiteSpace() {
return Character.isWhitespace(charAtCurrentIndex());
}
private boolean tagStart() {
return charAtCurrentIndex() == '<';
}
private boolea... | {
"domain": "codereview.stackexchange",
"id": 30483,
"lm_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, xml",
"url": null
} |
javascript
/* onlyShowOn:
This variable contains the list of pages on which the ToC will show.
- The values have to be quoted, separated by commas, and match the name
of your page in Squarespace exactly.
- You can use either single- or double-quotes.
- The entries can be on separate lines as ... | {
"domain": "codereview.stackexchange",
"id": 18944,
"lm_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
} |
c++, time-limit-exceeded, dynamic-programming
Is this correct?
for(int b= l-1; b < r; b++){
length += alph[s[b]];
}
I though the cost was the position in the sub-string not position in the alphabet.
You just did a find (after creating the substring). Now you are creating the s... | {
"domain": "codereview.stackexchange",
"id": 41749,
"lm_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++, time-limit-exceeded, dynamic-programming",
"url": null
} |
php, mvc, url-routing
I'm not going to do this for each of your ternary statements, but just know that the above will be helpful for all of them. One last tip here: abstract your ternary from other statements. Ternary, should be its own statement and should not be part of a larger one, as you have done in the next ter... | {
"domain": "codereview.stackexchange",
"id": 2543,
"lm_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, mvc, url-routing",
"url": null
} |
python, python-3.x, http, network-file-transfer, ssh
class _RemoteHelper
def file_reader(self, file_name, sheet_name=0):
_, extension = splitext(file_name)
data = self._internal_file_reader(file_name)
if extension == 'csv':
return pd.read_csv(io.BytesIO(data))
else:
... | {
"domain": "codereview.stackexchange",
"id": 31238,
"lm_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, http, network-file-transfer, ssh",
"url": null
} |
javascript, regex, math-expression-eval, lexical-analysis
class Interpreter {
constructor(source) {
this.source = source;
this.pos = 0;
this.currentToken = null;
}
eat(type) {
if (this.currentToken.type === type) {
this.currentToken = this.getNextToken();
} else {
throw new Error(... | {
"domain": "codereview.stackexchange",
"id": 18912,
"lm_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, regex, math-expression-eval, lexical-analysis",
"url": null
} |
c++, sorting
void selection_sort(std::vector<int>& to_sort)
{
//For the i-iteration we find the index superior or egal to i of the minimal value in the vector and we put it in at the i-place
for (unsigned int i = 0; i < to_sort.size(); ++i)
{
int ind_swap = ind_min(to_sort, i);
int temp = t... | {
"domain": "codereview.stackexchange",
"id": 37673,
"lm_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++, sorting",
"url": null
} |
newtonian-mechanics, gravity, newtonian-gravity, orbital-motion
How would we get an answer to this question? The acceleration due to the Sun's gravity at the orbit of the Earth is given by:
$$ a = \frac{GM}{r^2} $$
where $M$ is the mass of the Sun ($1.9891 \times 10^{30} \mathrm{kg}$), $r$ is the Earth-Sun distance (... | {
"domain": "physics.stackexchange",
"id": 12551,
"lm_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, newtonian-gravity, orbital-motion",
"url": null
} |
ros, imu, data
Comment by MD_MD on 2013-07-25:
I see what you mean now. I don't know how to do those calculations myself, I use the IMU filter I previously mentioned to do that for me. If you insist on not using that package you could look at their source code and implement what they did in your own node.
Comment by... | {
"domain": "robotics.stackexchange",
"id": 15055,
"lm_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, data",
"url": null
} |
machine-learning, word-embeddings, convolution
# Returns
A sepCNN model instance.
"""
op_units, op_activation = _get_last_layer_units_and_activation(num_classes)
model = models.Sequential()
# Add embedding layer. If pre-trained embedding is used add weights to the
# embeddings layer and se... | {
"domain": "datascience.stackexchange",
"id": 5417,
"lm_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, word-embeddings, convolution",
"url": null
} |
waves, acoustics, air, gas
but I highly recommend looking at the original on the site. Clearly, the molecules move in the direction of the wave propagation (longitudinally). | {
"domain": "physics.stackexchange",
"id": 34667,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "waves, acoustics, air, gas",
"url": null
} |
special-relativity, energy, mass, momentum
The main idea, then, behind the original though experiment is that in order for the photon to be absorbed, there must be some mechanism for the absorption (like in the Hydrogen atom example I just gave), and whatever that mechanism is, relativistic energy-momentum conservatio... | {
"domain": "physics.stackexchange",
"id": 13382,
"lm_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, energy, mass, momentum",
"url": null
} |
cmake, rospack, rosbuild
-- Configuring incomplete, errors occurred!
make: *** [all] Fehler 1
BUILD FAILED (exit value 2, total time: 157ms)
What is going on? If I execute 'make' in a terminal, everything works fine! :-/
Also, I get the following correctly identified path of 'rospack find hha'
/home/<***>/workspace/... | {
"domain": "robotics.stackexchange",
"id": 8501,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cmake, rospack, rosbuild",
"url": null
} |
aerospace-engineering, renewable-energy, regulations
and
That said, companies currently working on the project seem very loosely formed. They are in the development phase and are aware of federal airspace restrictions.
Here's the relevant FAA page.
I suspect that FAA regulatory measures on drones cover aerial wind t... | {
"domain": "engineering.stackexchange",
"id": 73,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "aerospace-engineering, renewable-energy, regulations",
"url": null
} |
$$g \approx \pi^2\,\mathrm{m/s^2}$$
The reason for this the original definition of the meter: the length of a pendulum whose half-period is 1 second. Much like the original definition of the Celsius scale, this allowed a person to easily calibrate equipment with common materials. (Of course, this calibration is hardly... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290913825542,
"lm_q1q2_score": 0.8113623682523432,
"lm_q2_score": 0.8354835371034369,
"openwebmath_perplexity": 479.96306399274664,
"openwebmath_score": 0.9356304407119751,
"ta... |
turing-machines
Title: Is it possible for a Turing machine to halt without reading the complete input string? Is it possible for a Turing machine to halt without reading the complete input string. Suppose there is a string "adc" preceded and succeeded by infinite number of blanks. Can a Turing machine halt after readi... | {
"domain": "cs.stackexchange",
"id": 14743,
"lm_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
} |
ros, debian, packages
Title: What ROS distributions is ROS-Debian compatible with?
Hello,
What ROS distributions is ROS Debian compatible with, aside from ROS Debian? Is it compatible with ROS Kinetic, Lunar, or Ubuntu? I am trying to understand the compatibility between ROS installed from the Debian Stretch reposito... | {
"domain": "robotics.stackexchange",
"id": 28263,
"lm_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, debian, packages",
"url": null
} |
resource-recommendations, spectroscopy, chemical-compounds
Similarly for other elements, I mostly found only plots of spectral lines in visible range.
So, where can one find detailed measured spectra for all (or most) chemical elements, preferably with UV and IR parts? It'd be most useful to have it in numeric form (s... | {
"domain": "physics.stackexchange",
"id": 10726,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "resource-recommendations, spectroscopy, chemical-compounds",
"url": null
} |
particle-physics, particle-detectors
$$\mathbf{a}=\frac qm\left(\mathbf{E}+\mathbf{v}\times\mathbf{B}\right),$$
where only $q/m$ enters. Bigger masses mean smaller $q/m$ ratios which mean smaller effective fields and less impact on the trajectory, which then bends less. This is not really a problem in calibration sinc... | {
"domain": "physics.stackexchange",
"id": 6421,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics, particle-detectors",
"url": null
} |
Or, you may see another pattern and avoid most of the algebra...
• Thank you, I appreciate the answer. Other than in the first turn, A can win only in an odd one, say $\;2n+1\;$ , so the probability for that is $$(1-p_A^2)^n(1-p_B^2)^np_A^2$$ Yet if a make $\;n\to\infty\;$ I get $\;0\cdot0\cdot p_A^2=0\;$...am I missi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806523850543,
"lm_q1q2_score": 0.8234268857828684,
"lm_q2_score": 0.8397339716830606,
"openwebmath_perplexity": 195.34875704337497,
"openwebmath_score": 0.8287920951843262,
"ta... |
performance, csv, r
".deparseOpts" 1.66 0.07 0.82 0.03
"any" 1.44 0.06 1.44 0.06
"[[" 1.24 0.05 0.48 0.02
"mode" 1.24 0.05 0.04 0.00
"paste0" ... | {
"domain": "codereview.stackexchange",
"id": 15432,
"lm_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, csv, r",
"url": null
} |
java, android, parse-platform
}
For long listeners and callbacks, I usually prefer to make them member variables:
public class MessagesListFragment extends Fragment {
//...
private FindCallback<Message> mFindCallback = new FindCallback<Message>(){
@Override
public void done(List<Message> list, ParseEx... | {
"domain": "codereview.stackexchange",
"id": 15693,
"lm_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, android, parse-platform",
"url": null
} |
nutrition
mainly pickiness and brains.
Human can handle an all animal diet surprisingly well, look at the modern Mongolian nomad diet, which is exclusively animal based. One problem we see in modern humans in industrialized nations is they often avoid eating organ meats, eating only muscle tissue "meat" can easily lea... | {
"domain": "biology.stackexchange",
"id": 11405,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nutrition",
"url": null
} |
special-relativity, speed-of-light, thought-experiment
Title: Is there a maximum speed you can travel through time? If so, could you ever reach such a speed? I understand that everything in the universe travels at the speed of light through spacetime. As a layperson I'm going to refer to this velocity as the spacetime... | {
"domain": "physics.stackexchange",
"id": 79110,
"lm_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, speed-of-light, thought-experiment",
"url": null
} |
algorithms
$|A1 \cup A3| =5$ or $|A2 \cup A3| =5$ will yield the biggest set
In contrast to $|A1 \cup A2|$ = 4.
If this is np hard question (i don't know if it is) a good Approximation will be fine
I think that brute force is $O({n \choose k})$ operations. Your problem is known as the Maximum coverage problem. If $S... | {
"domain": "cs.stackexchange",
"id": 14936,
"lm_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",
"url": null
} |
quantum-mechanics, quantum-spin, operators, hilbert-space, eigenvalue
The spin state of a single spin-$\frac{1}{2}$ particle is an element of a two-dimensional Hilbert space, let's call it $\mathcal H_\frac{1}{2}$. The spin state of a system consisting of two spin-$\frac{1}{2}$ particles is $\mathcal H_\frac{1}{2}\ot... | {
"domain": "physics.stackexchange",
"id": 20313,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, quantum-spin, operators, hilbert-space, eigenvalue",
"url": n... |
glaciology, remote-sensing, antarctic, gnss, gps
The large size (~6,000 km^2) of the recently calved iceberg A-68 from the Larson-C ice shelf suggests it will will be relatively long lived, and so telemetry equipment placed on it is likely to collect data for a longer time than smaller ice bergs. I'm wondering if it m... | {
"domain": "earthscience.stackexchange",
"id": 1312,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "glaciology, remote-sensing, antarctic, gnss, gps",
"url": null
} |
"… then (3) becomes $$\xi^\prime(s)=F^\prime(s)H(s)G(s)-F^\prime(1-s)H(1-s)G(1-s)$$ … by Stirling's formula $\arg H(1/2+it)$ changes rapidly and by itself would supply the full quota of zeros of $\xi^\prime(s)$ on $\sigma=1/2$."
This is as close as he comes in the paper to suggesting that all the zeros of $\xi^\prime$... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9658995772325382,
"lm_q1q2_score": 0.8209867937212915,
"lm_q2_score": 0.8499711699569786,
"openwebmath_perplexity": 198.32634541569132,
"openwebmath_score": 0.9551929831504822,
"tag... |
ago. Hence elements of $$\mathcal{P}(A) \cap \mathcal{P}(B)$$ are subsets of both $$A$$ and $$B$$. Am I on the right track to proving that this is a true statement or is there a better way to show this? Sorry, your blog cannot share posts by email. We now have that $$X \in \mathcal{P}(A)$$ and $$X \in \mathcal{P}(B)$$.... | {
"domain": "barbaramitterer.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.975576912786245,
"lm_q1q2_score": 0.8714920415272305,
"lm_q2_score": 0.8933094152856196,
"openwebmath_perplexity": 297.98164227019214,
"openwebmath_score": 0.75785231590271,
... |
Now, I'm integrating with respect to t, so after using the power rule and applying the upper limit (lower limit simplifies to 0)
$$\sum_{n=1}^∞\frac{(-1)^nx^{2n+1}}{n!(2n+1)}$$
And this is what I would think is the maclaurin representation of the function, but it's wrong and I have no idea why. Would anyone please po... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137887219342,
"lm_q1q2_score": 0.8423401084114382,
"lm_q2_score": 0.8577681068080748,
"openwebmath_perplexity": 832.7962598222265,
"openwebmath_score": 0.8185713887214661,
"tag... |
The formula (6) confirms the conclusion of Corollary 5 for tridiagonal Toeplitz matrices.
Corollary 5 guarantees that the eigenvalues are distinct but not that they are well separated. The spacing of the eigenvalues in (6) clearly reduces as $n$ increases. Wilkinson constructed a symmetric tridiagonal matrix called $W... | {
"domain": "nhigham.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.99058741207965,
"lm_q1q2_score": 0.8121760112647906,
"lm_q2_score": 0.8198933293122507,
"openwebmath_perplexity": 245.0137884704531,
"openwebmath_score": 0.9666736125946045,
"tags": null... |
signal-analysis, wavelet, adaptive-algorithms
Empirical mode decompositions [can act as] as data-driven wavelet-like expansions. In other words, under some conditions, an adaptive algorithm may behave like a non-adaptive one.
There is one code for Marginal Hilbert Spectrum on Matlab Central. | {
"domain": "dsp.stackexchange",
"id": 7622,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "signal-analysis, wavelet, adaptive-algorithms",
"url": null
} |
ros
Title: nmea_gps_driver in launch file
Hi,
I am creating a launch file for my robot, I am trying to run the nmea_gps_driver in my launchfile this is what I have so far:
<launch>
<node pkg="nmea_gps_driver" name="nmea_gps_launch" type="nmea_gps_driver.py" args="_port:=/dev/ttyUSB0 _baud:=9600"/>
</launch>
But whe... | {
"domain": "robotics.stackexchange",
"id": 14847,
"lm_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
} |
newtonian-mechanics, momentum, energy-conservation, conservation-laws, collision
Title: How is energy conserved in an elastic collision between two unequal masses?
In an elastic collision between two masses, if one mass is much heavier than the other, then the heavier mass will continue to move with same velocity whi... | {
"domain": "physics.stackexchange",
"id": 57298,
"lm_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, momentum, energy-conservation, conservation-laws, collision",... |
installation, gazebo-1.4
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 CPATH=/opt/ros/groovy/include
> SSH_AUTH_SOCK=/run/user/dereck/keyring-hcjJLu/ssh
> SESSION_MANAGER=local/dereck-TECRA-A11:@/tmp/.ICE-unix/1700,unix/dereck-TECRA-A11:/tmp/.ICE-unix... | {
"domain": "robotics.stackexchange",
"id": 3047,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "installation, gazebo-1.4",
"url": null
} |
python, homework, django
def _sum_all_centres(occupancy_data: List[dict]) -> Tuple[int, int, int]:
"""`(units_in_use, units_available, persons_quarantined)`"""
units_in_use = units_available = persons_quarantined = 0
for centre in occupancy_data:
units_in_use += centre["Current unit in use"]
... | {
"domain": "codereview.stackexchange",
"id": 42985,
"lm_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, homework, django",
"url": null
} |
ros, python, ros-melodic, rosbag, topics
As you can see, no message is received at all. Here's the rosbag file. Anyone know why this is happening?
Thanks
Originally posted by mun on ROS Answers with karma: 32 on 2019-09-16
Post score: 0
Note the absence of the first / on the topics in the "valid topics" list:
Valid ... | {
"domain": "robotics.stackexchange",
"id": 33771,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, python, ros-melodic, rosbag, topics",
"url": null
} |
ros
Does ros spawns a new thread for callback function every time a new message is available in a topic?
How many buffers/pipes are there in a publisher->topic->subscriber system?
Thank you!
Nick
Originally posted by nickzhang on ROS Answers with karma: 41 on 2017-12-29
Post score: 0
You need to set the queue size... | {
"domain": "robotics.stackexchange",
"id": 29626,
"lm_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
} |
complexity-theory
Title: About a symmetric rank decomposition of a SYM◦SYM circuit's truth table matrix New algorithms and lower bounds for circuits with linear threshold gates.
Ryan Williams. Submitted, 2013.
I study this paper and have difficulty with understanding the proof of Lemma 2.2 in section 2.
My questions a... | {
"domain": "cs.stackexchange",
"id": 13854,
"lm_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",
"url": null
} |
algorithms, reference-request, combinatorics, enumeration
Title: Looking for all "valid" combinations taken from a set of things, where subsets of "valid" things are always "valid" I have a problem where I need to find all subsets of a set that satisfy some validity function. The function has the property that if a su... | {
"domain": "cs.stackexchange",
"id": 21298,
"lm_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, reference-request, combinatorics, enumeration",
"url": null
} |
Matrix diagonalization is useful in many computations involving matrices, because multiplying diagonal matrices is quite simple compared to multiplying arbitrary square matrices. With the concept of diagonalization defined, we can state another major problem of linear algebra, our fifth. De nition 2.5. Customer Voice. ... | {
"domain": "ind.br",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799441350253,
"lm_q1q2_score": 0.819185170360266,
"lm_q2_score": 0.8499711737573762,
"openwebmath_perplexity": 519.1243891651261,
"openwebmath_score": 0.8492629528045654,
"tags": null... |
go
Title: Dependency injecting or manually instantiating structs in others with go I am coming from PHP OOP background so just want to find out if what I do with Go is common/acceptable practise or not (I am newbie in Go). It is to do with Dependency Injection.
In OOP it is ideal to Dependency Inject object X into obj... | {
"domain": "codereview.stackexchange",
"id": 35745,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "go",
"url": null
} |
machine-learning, python, scikit-learn, linear-regression, training
Title: TicTacToe Linear Regression low accuracy and R^2 score Im using the python sklearn library to attempt a linear regression TicTacToe AI.
I create my training set by simply having the computer play random 'blind' games against itself. For example... | {
"domain": "datascience.stackexchange",
"id": 8426,
"lm_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, python, scikit-learn, linear-regression, training",
"url": ... |
soft-question, advice-request, career
Related questions:
What are some career options for someone with a computer scientist master degree?
Deciding between different PhD programs
Edit:
After a number of answers, I'd like to emphasize the interest is in having an analogue to a post-doc in that it is purely (or almost c... | {
"domain": "cstheory.stackexchange",
"id": 1030,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "soft-question, advice-request, career",
"url": null
} |
c++, console, state-machine
Now your main() function doesn't have to deal with pointers anymore.
Start thinking about ownership
Currently, you are creating a number of menu variables, and they are linked together using pointers. Regardless of how nice you make the interface of linking them together, this can still cre... | {
"domain": "codereview.stackexchange",
"id": 32308,
"lm_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++, console, state-machine",
"url": null
} |
game, react.js, jsx, redux
const toggleIsRotationDisabled = () =>
dispatch(setIsRotationDisabled(isRotationDisabled));
const toggleIsRotationEnabled = () => setTimeout(() => {
dispatch(setIsRotationDisabled(!isRotationDisabled));
}, 1000);
const compareCards = () => {
cardsToCompa... | {
"domain": "codereview.stackexchange",
"id": 44300,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "game, react.js, jsx, redux",
"url": null
} |
quantum-mechanics, wavefunction, atomic-physics, orbitals
Title: Why exactly is it useful to construct the real-valued p-orbitals? I am quite comfortable with the complex wavefunctions for the three p-orbitals ($ p_{0},p_{1},p_{-1}$) and the construction of the real-valued versions ($ p_{z},p_{x},p_{y}$) from the $ \p... | {
"domain": "physics.stackexchange",
"id": 47208,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, wavefunction, atomic-physics, orbitals",
"url": null
} |
for math that Word supports:. To use LaTeX markup, set the Interpreter property for the Text object to 'latex'. An italic font is generally used for emphasis in running text, but it has a quite specific meaning when used for symbols in scientific text and. I'd really like latex support for Evernote, since apart from th... | {
"domain": "ecui.pw",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9433475746920261,
"lm_q1q2_score": 0.8823568573052901,
"lm_q2_score": 0.935346505335907,
"openwebmath_perplexity": 2233.4644955099657,
"openwebmath_score": 0.9359549880027771,
"tags": null,
... |
javascript, array, tree
console.log(nested);
I'm also open to using jQuery or Underscore if they expose any functionality that would tidy up the source code. I'd also like to modify the code so it could handle this recursively with an unspecified level of depth on each node. Your code seems to only support 2 levels d... | {
"domain": "codereview.stackexchange",
"id": 15785,
"lm_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, array, tree",
"url": null
} |
clojure
Title: Flattening a nested record to its leaves Note, I discovered a bug after I posted this. The current implementation drops any fields that have an associative value, which is not the intended behavior.
I'm writing a Tamagotchi clone, and need to be able to save the game's state to the disk. I want to sav... | {
"domain": "codereview.stackexchange",
"id": 27296,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "clojure",
"url": null
} |
thermodynamics, entropy
I've been trying to find out more about this but to no avail :/
Can anyone help ? The von Neumann entropy reads $$ S(\rho)= -\mathrm{Tr}( \rho \log \rho),$$ where $\rho$ represents the state for which you want to compute the entropy. For thermal states we have that $$ \rho = \frac{e^{-\beta H}}... | {
"domain": "physics.stackexchange",
"id": 83545,
"lm_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
} |
homework-and-exercises, fluid-dynamics, conservation-laws, navier-stokes
Moving on, Del dot q is also exactly what you're looking for (to get the conduction term). You'll need some finesse arguing why the signs should be the way they are. Then, volumetric heat contribution can be equated to frictional heating. | {
"domain": "physics.stackexchange",
"id": 30229,
"lm_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, fluid-dynamics, conservation-laws, navier-stokes",
"url"... |
cosmology, redshift
An expression for the first order redshift drift is
$$\frac{dz}{dt_0}= (1+z)H_0 - H(z),$$
where $H_0$ is the current Hubble parameter at time $t_0$ and $H(z)$ is the value of the Hubble parameter at an epoch corresponding to a redshift $z$.
The condition that there be a redshift drift is therefore ... | {
"domain": "physics.stackexchange",
"id": 48216,
"lm_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, redshift",
"url": null
} |
ros, turtlebot, turtlebot-calibration, gyro
Comment by Scott on 2011-09-06:
Thanks Melanie, is there pehaps a software setting that sends power to the gyro like you have for the breaker "0" on the turtlebot dashboard? | {
"domain": "robotics.stackexchange",
"id": 6615,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, turtlebot, turtlebot-calibration, gyro",
"url": null
} |
angular-momentum, rotational-dynamics, moment-of-inertia, angular-velocity
\\ & =
m\vec r\cdot\left(\omega^2\vec r - (\vec\omega\cdot\vec r)\vec \omega \right)
\\ & =
m\left(\omega^2 r^2 - (\vec\omega\cdot\vec r)^2 \right)
.
\end{align}
Here we're essentially done, because we know that $|\vec\omega\cdot\vec r|$ must b... | {
"domain": "physics.stackexchange",
"id": 36405,
"lm_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, rotational-dynamics, moment-of-inertia, angular-velocity",
"ur... |
signal-analysis, stft, audio-processing, hrtf
x1 = filter(b,a,x1);
%perform STFT:
x=x1(:); %make sure it's column
xlen=length(x); %length of signal
wlen=2^nextpow2(0.04*fs); %window length
hop=(3/4)*wlen; %hop size
numFrames=1 + fix((xlen - wlen)/hop); %number of frame... | {
"domain": "dsp.stackexchange",
"id": 6650,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "signal-analysis, stft, audio-processing, hrtf",
"url": null
} |
newtonian-mechanics, classical-mechanics, momentum, mass
According to Wikipedia, for a decreasing mass :
$p_i = mv$
$p_f = (m-dm)(v+dv) \bf - udm$ (assuming the mass is released in opposite direction to $v$)
Then, $p_f-p_i = mdv - (v+u)dm$
$F_{ext} + (v+u)\frac{dm}{dt} = m\frac{dv}{dt}\space .\space\space$ Here $u-(-v... | {
"domain": "physics.stackexchange",
"id": 82089,
"lm_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, classical-mechanics, momentum, mass",
"url": null
} |
general-relativity, differential-geometry, geodesics, constrained-dynamics
It is straightforward to show that given some generic smooth function $f$, $[\mathbf e_r,\mathbf e_\theta]f \neq 0$, which means that $\mathbf e_r$ and $\mathbf e_\theta$ do not commute. This is in contrast to $\left\{\frac{\partial}{\partial ... | {
"domain": "physics.stackexchange",
"id": 67504,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, differential-geometry, geodesics, constrained-dynamics",
"ur... |
javascript, algorithm, programming-challenge, functional-programming, ecmascript-6
console.log(sortSquare2([-9, -2, 0, 2, 3]));
Is there a faster solution? I have the feeling you can do something with the fact that the list is sorted to begin with. But I can't think of a good one. If you start at both ends and compar... | {
"domain": "codereview.stackexchange",
"id": 33607,
"lm_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, algorithm, programming-challenge, functional-programming, ecmascrip... |
ros-kinetic
To provide a simple example I will use the main tutorial about this paradigm of communication.
Let us say that you have two nodes: Node A provides a service with the name add_integers to sum two integer numbers, so it needs to use rospy.Service to let ROS know that it provides this kind of service for anyo... | {
"domain": "robotics.stackexchange",
"id": 35146,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-kinetic",
"url": null
} |
quantum-mechanics, quantum-optics, approximations, adiabatic
If you start with $\Omega_S \ne 0,\;\Omega_P = 0$ then the system will first evolve towards $| 1 \rangle$ by optical pumping (before the STIRAP sequence commences). If it is not already in $| 1 \rangle$ then this involves photon scatting which of course is w... | {
"domain": "physics.stackexchange",
"id": 92855,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, quantum-optics, approximations, adiabatic",
"url": null
} |
general-relativity, spacetime, differential-geometry, de-sitter-spacetime
Title: How should one interpret the de Sitter slicings? When 'constructing' the usual de Sitter space in $\mathcal{M^5}$ by invoking the contraint $-X^{2}_{0} +X^{2}_{1} +X^{2}_{2} +X^{2}_{3} + X^{2}_{4} = \alpha^2$ we quickly see that we end up... | {
"domain": "physics.stackexchange",
"id": 69311,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, spacetime, differential-geometry, de-sitter-spacetime",
"url... |
f,g whose deriva- tives are not continuous, such as the famous function x 2 sin1/x (extended to a function on all of R by continuity) and its relatives. 1 Introduction Solution of any problem in perturbative quantum field theory includes sev eral steps:. To ensure reliability, purchase Toyota part # 82641-47020 RELAY, I... | {
"domain": "schermafisciano.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9744347838494567,
"lm_q1q2_score": 0.8055767200404267,
"lm_q2_score": 0.8267117855317474,
"openwebmath_perplexity": 715.7466028493702,
"openwebmath_score": 0.8843280076980591,
... |
c#, wpf, mvvm
if (result.State != DialogState.Accepted)
{
return null;
}
return new UserRegistration
{
FirstName = result.ViewModel.FirstName,
LastName = result.ViewModel.LastName
};
}
// The generic method
private DialogResult<T... | {
"domain": "codereview.stackexchange",
"id": 29720,
"lm_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#, wpf, mvvm",
"url": null
} |
complexity-theory, time-complexity, complexity-classes, polynomial-time
$$A \in L \Leftrightarrow \exists B \; \text{SubGraphIsomorphic}(A, B) = 1 $$
Now, subgraph isomorphism is NP-complete. If $B$ is fixed, then there is a TM
that implements $\text{SubGraphIsomorphic}$ in deterministic polynomial time. If $B$ is not... | {
"domain": "cs.stackexchange",
"id": 2601,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "complexity-theory, time-complexity, complexity-classes, polynomial-time",
"url": null
... |
php, object-oriented, mysqli
function __destruct() {
$this->connection->close();
}
public static function getConnection() {
if(self::$db == null) {
self::$db=new Database();
}
return self::$db->connection;
}
}
I don't like adding the line $con = getCon(); to t... | {
"domain": "codereview.stackexchange",
"id": 27643,
"lm_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, mysqli",
"url": null
} |
$p_2$ is the probability that two particular couples sit with husband next to wife. As you say, the ${4 \choose 2} = 6$ for which two couples these are is included in the $4p_1-6p_2+4p_3-p_4$ formula.
I would then say that the two particular couples have each become one unit (with $(2!)^2$ ways of arranging the indivi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759621310288,
"lm_q1q2_score": 0.8590384191845863,
"lm_q2_score": 0.8757870029950159,
"openwebmath_perplexity": 185.07206589009553,
"openwebmath_score": 0.88112872838974,
"tags... |
c#, object-oriented, console
public static string FormatAmount(decimal amt)
{
return String.Format(culture, "{0:C2}", amt);
}
public static void PrintConsoleWriteLine(string msg, bool ConsoleWriteLine = true)
{
if (ConsoleWriteLine)
Console.WriteLine(msg);
else
... | {
"domain": "codereview.stackexchange",
"id": 35137,
"lm_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, console",
"url": null
} |
camera
[extractParams] Parameters:
[dcam] SVS-type parameters
[dcam] Disparity resolution: 1/16 pixel
[dcam] Correlation window: 15
[dcam] Prefilter window: 9
[dcam] Number of disparities: 64
[dcam] left camera matrix (K)
422.1117 0.0000 319.4246
0.0000 425.1450 260.2131
0.0000 0.0000 1.0000
[dcam] left dist... | {
"domain": "robotics.stackexchange",
"id": 5188,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "camera",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.