text stringlengths 49 10.4k | source dict |
|---|---|
# How to fill $4320$ multiplicative semi-magic square?
How can we fill $$4*4$$ Matrix with distinct positive integers such that product of the entries in each row & column is equal to $$4320$$ ?
My Strategy:
$$4320=2^5 \times 3^3 \times 5$$ First I filled the Matrix in such a way that each column and row gets one $$5... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9740426390346569,
"lm_q1q2_score": 0.8317474277692157,
"lm_q2_score": 0.8539127492339909,
"openwebmath_perplexity": 716.6340769982828,
"openwebmath_score": 0.43379056453704834,
"ta... |
python, reinventing-the-wheel, cryptography, aes
size = (
self.segment_size >> 3
if self.mode == MODE_CFB
else self.block_size
)
if not (len(block1) == len(block2) == size):
raise ValueError(str(size))
return bytes([block1[i] ^ block2[i] for i in ... | {
"domain": "codereview.stackexchange",
"id": 40304,
"lm_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, reinventing-the-wheel, cryptography, aes",
"url": null
} |
# Math Help - Solve cos^2(...)+cos^2(...)-2 = 0 ?
1. ## Solve cos^2(...)+cos^2(...)-2 = 0 ?
anyone have any clever ideas on how to solve this for x?
$cos^2(\pi*16^x)+cos^2(\pi*16^{1-x})-2 = 0$
?
$(cos(\pi*16^x)-1)(cos(\pi*16^x)+1)=-(cos(\pi*16^{1-x})-1)(cos(\pi*16^{1-x})+1)$
?
2. Originally Posted by pinion
anyone... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130576932457,
"lm_q1q2_score": 0.8346232679840067,
"lm_q2_score": 0.8438950947024555,
"openwebmath_perplexity": 473.3848177083433,
"openwebmath_score": 0.929138720035553,
"tags... |
ros, c++, plugin, ros-kinetic
Title: How to write a custom ros control plugin using tensor flow in c++?
Hello,
I am quite new to ROS and Tensor flow. From a basic google search, I found out that tensor flow c++ API is only supported by bazel build but I intend to use tensor flow in my custom plugin in ROS and the pro... | {
"domain": "robotics.stackexchange",
"id": 32319,
"lm_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++, plugin, ros-kinetic",
"url": null
} |
# Integration question on $\int \frac{x}{x^2-10x+50} \, dx$
How would I integrate $$\int \frac{x}{x^2-10x+50} \, dx$$ I am not sure on how to start the problem
• Partial fractions! Mar 9, 2015 at 17:06
• @LaarsHelenius the quadratic has two complex roots, so unless complex integration is allowed I don't think that wo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.971563970248593,
"lm_q1q2_score": 0.8117257083553561,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 737.6342418969041,
"openwebmath_score": 0.944857656955719,
"tags"... |
solid-state-physics, semiconductor-physics
Title: How do we get a 2DEG in a remote doped heterostructure? I have a question regarding the way in which one often constructs a two-dimensional electron gas in heterostructures. I have a specific example in mind, although I believe this is quite a common way to build the s... | {
"domain": "physics.stackexchange",
"id": 27687,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solid-state-physics, semiconductor-physics",
"url": null
} |
Using the limit definition and choosing $$\epsilon = win(1)$$, we have $$\exists N s.t. \sum_{i=1}^N 3win(i) + f(i)^3 > 1 - win(1) \,,$$ so there can't be any value $$j > N$$ with $$win(j) \geq win(1)$$. But then $$max_{1 \leq i \leq N} \{win(i)\} \geq win(1) > max_{i \geq N} \{win(i)\} \,,$$ so the max is computable a... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9763105300791786,
"lm_q1q2_score": 0.8198411190193828,
"lm_q2_score": 0.8397339716830606,
"openwebmath_perplexity": 398.9678885581623,
"openwebmath_score": 0.9305931925773621,
"tag... |
homework-and-exercises, newtonian-mechanics, forces
Title: Friction on a box being pulled up a ramp
A box with mass $25$ kg on a ramp at an angle of inclination $30^\circ$ to the horizontal is pulled with a force of $75$ N at an angle of $20^\circ$ to the ramp. What is the frictional force if it is pulled up the ramp... | {
"domain": "physics.stackexchange",
"id": 72963,
"lm_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",
"url": null
} |
java, beginner, object-oriented
When you have overridden toString(), you can simply loop through your objects and call that instead:
// using the enhanced for-loop
for (MediaItem item : items) {
System.out.println(item);
}
Arrays vs Collections classes
It seems slightly odd that you are hard-coding your items arr... | {
"domain": "codereview.stackexchange",
"id": 14367,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, object-oriented",
"url": null
} |
geology, geothermal-heat, mapping, natural-conditions, underground-water
If you are in a desert climate, you may be able to do something similar on a smaller scale. Under a calm clear sky, you can often get frost on the side of an insulator facing the dark sky at night. Modifying this idea, create a large bottom ins... | {
"domain": "earthscience.stackexchange",
"id": 2755,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "geology, geothermal-heat, mapping, natural-conditions, underground-water",
"... |
non-locality, information-theory, foundations
Title: What is the difference between no signaling and non locality at operational and ontological level? I understand the basic definitions. Locality means Alice's measurements do not affect Bob's and system and that no-signalling means a party can't send information fast... | {
"domain": "quantumcomputing.stackexchange",
"id": 2032,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "non-locality, information-theory, foundations",
"url": null
} |
c, primes, sieve-of-eratosthenes
int main(int argc, char **argv) {
/* it's technically possible that argc == 0 */
char *program_name = (argc > 0 ? argv[0] : "sieve");
if (argc != 2) {
fprintf(stderr, "Usage: %s <max>\n"
"\tmax: number to find primes up to\n",
progra... | {
"domain": "codereview.stackexchange",
"id": 28188,
"lm_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, primes, sieve-of-eratosthenes",
"url": null
} |
genetics, botany, reproduction, dendrology
So why I don't get the apple-tree of the scion kind if I plant the seeds from an apple which has grown on such a tree? I would expect that the genes in the apple seeds must be the same. However if I plant the seeds, I have to graft the new seedling again. The reason most appl... | {
"domain": "biology.stackexchange",
"id": 4590,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "genetics, botany, reproduction, dendrology",
"url": null
} |
ros2
Originally posted by William with karma: 17335 on 2017-07-19
This answer was ACCEPTED on the original site
Post score: 2
Original comments
Comment by Andre Volk on 2017-07-19:
Thanks for the quick answer. I assumed, that the beta release version might have gotten fixes. But I understand the problem. Maybe I shou... | {
"domain": "robotics.stackexchange",
"id": 28383,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2",
"url": null
} |
general-relativity, black-holes, acceleration, observers, time-dilation
Remember that the equivalence principle applies "locally". The word "locally" in this context means that it applies within a region of spacetime that is small enough that you cannot detect tidal effects.
So when you say:
according to the clock of... | {
"domain": "physics.stackexchange",
"id": 95600,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, black-holes, acceleration, observers, time-dilation",
"url":... |
javascript, html
Title: Will this test to check if an element has an attribute work? Here is my code:
hasAttr = new function(tag, attrName) {
return (tag.attrName)
}
Will this code work? I can't test it now because I cannot acces jsfiddle and jsbin but Down For Everyone or Just Me? says something else.
jsFiddle ... | {
"domain": "codereview.stackexchange",
"id": 1491,
"lm_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, html",
"url": null
} |
performance, hash-map, android, error-handling, kotlin
Title: Processing charge current error messages with HashMap<> I have certain error states that I am displaying in my Android TextView but only one message is displayed at a time and if all values are set to 0, no message is displayed. So, I check all the values w... | {
"domain": "codereview.stackexchange",
"id": 43748,
"lm_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, hash-map, android, error-handling, kotlin",
"url": null
} |
javascript, jquery, html, css
I had the most trouble with getting the white selection boxes (that appear when you hover over each of the nav-links) to cover the entire height of the navbar and the entire width of the nav-item in each responsive size, and with the position of the text in each size. (There are basically... | {
"domain": "codereview.stackexchange",
"id": 40967,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, html, css",
"url": null
} |
python, algorithm
to a more efficient and more concise :
data_sorted = sorted(zip(data_item, data_weight, data_value), key=lambda (i,w,v):v//w, reverse=True)
You could them split this into 3 arrays but I am not sure it is worth the pain.
Indeed, a few things can be done in a more concise way now like :
for i, (item, ... | {
"domain": "codereview.stackexchange",
"id": 14274,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, algorithm",
"url": null
} |
homework-and-exercises, quantum-field-theory, dirac-matrices, trace
$$
\text{Tr}\big[\gamma^{\alpha} \gamma^0 (-\gamma^0 \gamma^{\beta} + 2g^{0 \beta})\big]
$$
to
$$
-\text{Tr}\big[\gamma^{\alpha} \gamma^{\beta}\big] + 2 \text{Tr}\big[\gamma^{\alpha} \gamma^{\beta}\big]
$$
but this is wrong. The correct result is
$$
\... | {
"domain": "physics.stackexchange",
"id": 29366,
"lm_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, quantum-field-theory, dirac-matrices, trace",
"url": nul... |
schroedinger-equation, group-theory
The proof is better written as
$$ H (R \psi) = R (H \psi) = R (E \psi) = E (R \psi), $$
where we use invariance, the eigenvalue equation for $\psi$, and the commutivity of operators with scalars, respectively. Without invariance, the first equality of mine wouldn't necessarily hold.... | {
"domain": "physics.stackexchange",
"id": 25022,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "schroedinger-equation, group-theory",
"url": null
} |
java, beginner, object-oriented, chess
The method signature already clearly states what it returns. A PlayerType. There's no reason to specify this 3 times.
The only reason to ever do this is when your employer tells you to.
//Integer.signum(a) provides the sign of a number 1 if positive and -1 if negative.
... | {
"domain": "codereview.stackexchange",
"id": 30698,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, object-oriented, chess",
"url": null
} |
ros, phidgets
Title: how can i install phidgets_ros package in groovy?
Hi, i need to read the data from a 3M Model 800 RFID reader. From this page:http://wiki.ros.org/phidgets_ros/Tutorials/Testing%20a%20Phidget%20RFID%20Reader
it is stated that i would need RFIDscan.py from phidgets_ros package. But i can't find a p... | {
"domain": "robotics.stackexchange",
"id": 16607,
"lm_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, phidgets",
"url": null
} |
machine-learning, reinforcement-learning, comparison, definitions, stationary-policy
If those can affect the future state transitions and rewards yes. If they generally do not, then you would usually exclude them from the state description.
If so, the policy is not stationary anymore I guess.
What you are proposing ... | {
"domain": "ai.stackexchange",
"id": 1410,
"lm_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, reinforcement-learning, comparison, definitions, stationary-policy",
... |
javascript, google-apps-script, encryption
I suspect steps 3 and 4 are overdoing, but before the addition of encryption that is how the script was doing an simple integrity test (with SHA1).
function encryptBackup_ (backup, passphrase) {
const string = JSON.stringify(backup);
const webSafeCode = Utilities.base64En... | {
"domain": "codereview.stackexchange",
"id": 40494,
"lm_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, google-apps-script, encryption",
"url": null
} |
unitarity, no-cloning-theorem
I am not getting how it can be written in such a way, unitary matrix $U$ will operate on $|\psi\rangle_A$ only I think, how it can copy it to second $|0\rangle$ state?
Secondly, why we are making the assumption that, "if such unitary matrix exists then that will be a unique unitary matrix... | {
"domain": "quantumcomputing.stackexchange",
"id": 373,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "unitarity, no-cloning-theorem",
"url": null
} |
general-relativity, gravity, velocity, satellites, frame-dragging
Title: Does Earth's rotation affect the orbital velocity of its satellites? We all know about the spin of black holes. That spin and of course it's gravity determines the minimum distance a star can orbit the black hole with a min orbital velocity.
Do w... | {
"domain": "physics.stackexchange",
"id": 82384,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, gravity, velocity, satellites, frame-dragging",
"url": null
... |
cryptography, encryption, digital-preservation
Title: Is it possible to create a "Time Capsule" using encryption? I want to create a digital time capsule which will remain unreadable for some period of time and then become readable. I do not want to rely on any outside service to, for instance, keep the key secret and... | {
"domain": "cs.stackexchange",
"id": 10214,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cryptography, encryption, digital-preservation",
"url": null
} |
game-ai, game-theory, decision-trees, tree-search
Title: Find the expected reward in an expectimax-based dice rolling game? I have this question that I'm kinda stuck on.
It's a game scenario in which we set up an expectimax tree. In the game, you have 3 dice with sides 1-4 that you roll at the beginning. Then, dependi... | {
"domain": "ai.stackexchange",
"id": 2659,
"lm_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-ai, game-theory, decision-trees, tree-search",
"url": null
} |
Previous | Next --- Slide 22 of 70
Back to Lecture Thumbnails
kayvonf
Question: What would the reconstructed signal look like if I instead used a Gaussian reconstruction filter?
aznshodan
Gaussian reconstruction filter will make the reconstructed signal smoother than the triangle(tent) filter. This is because Gaussi... | {
"domain": "cmu.edu",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9597620562254526,
"lm_q1q2_score": 0.8119034568072615,
"lm_q2_score": 0.8459424411924673,
"openwebmath_perplexity": 1938.4509133603453,
"openwebmath_score": 0.8195844888687134,
"tags": n... |
gazebo
Title: How to reduce CPU usage
Hi,
Is normal to have a CPU usage of 85% when I am simulating the "empty.world" file?
And, if it is normal how can I reduce it?
I tried with the "update_rate" param but nothing changed
I have a:
Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz
ATi Radeon HD 4350
Thanks
Originally... | {
"domain": "robotics.stackexchange",
"id": 3036,
"lm_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",
"url": null
} |
that. For example, the Schrodinger equation, which has to do with dynamics in quantum systems and predates quantum computation by decades, is written using bra-ket notation. This, too, turns out to come down to some other properties of addition. Given any region R, then the area, A(R) is a real number; Â Â Â Â Â A(R) Â... | {
"domain": "amicidellacattolica.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850832642354,
"lm_q1q2_score": 0.8642760855900652,
"lm_q2_score": 0.8791467801752451,
"openwebmath_perplexity": 745.3356280199723,
"openwebmath_score": 0.8859736919403076,
... |
cosmology, speed-of-light, astronomy, redshift
Title: Cosmological redshift due to recession speed or expansion of space? I am somewhat confused regarding the factors that cause cosmological redshift.
This wiki states that the amound of cosmological redshift coming from let’s say, a star, is calculated by
$$z=\frac{H_... | {
"domain": "physics.stackexchange",
"id": 76122,
"lm_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, speed-of-light, astronomy, redshift",
"url": null
} |
ros
# find currentAngle of robot (equivalent to yaw)
# now that you have yaw, the robot's pose is completely defined by (currentX, currentY, currentAngle)
currentAngle = yaw
d_x = goalX - currentX
d_y = goalY - currentY
# calculate bearing difference with bot and goal
... | {
"domain": "robotics.stackexchange",
"id": 25840,
"lm_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
} |
Fine a vector length $2\sqrt{6}$ anti-parallel to $d = (-1,2,-1)$.
I thought that maybe the vector product would be the way forward but no idea where to start.
Any help would be greatly appreciated.
Thanks
Craig
Any vector parallel to (-1, 2, -1) must be of the form a(-1, 2, -1)= (-a, 2a, -a). Any vector anti-paral... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718480899426,
"lm_q1q2_score": 0.8351792237964584,
"lm_q2_score": 0.8438951005915208,
"openwebmath_perplexity": 549.4558468547315,
"openwebmath_score": 0.9053481817245483,
... |
shortest-path
Had we expanded $b$ first, the exact same thing would have happened and we would have had to expand $a$ as well unless $h(b)$ was $0$. In other words, taking the lowest $h$-value first has no influence on the number of nodes expanded unless it is the case that $h(x) = 0$, in which case it does make sense... | {
"domain": "cs.stackexchange",
"id": 11513,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "shortest-path",
"url": null
} |
c, linked-list, posix
memcpy(new->data, data, size);
new->prev = ref->prev;
new->next = ref;
ref->prev->next = new;
ref->prev = new;
(list->nmemb)++;
return 0;
err:
free(new);
return -ENOMEM;
}
int alx_llist_insert_after (struct Alx_LinkedList *list,
... | {
"domain": "codereview.stackexchange",
"id": 36852,
"lm_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, linked-list, posix",
"url": null
} |
electrons, charge, conventions, si-units, metrology
EDIT for clarifiaction:
This is the historical process that led to the definition of one coulomb of charge.
The Ampere definition has recently been modified.
This answer explains the process for which:
1) The formula of the magnetic force between two straight current... | {
"domain": "physics.stackexchange",
"id": 58723,
"lm_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, charge, conventions, si-units, metrology",
"url": null
} |
algorithms
Title: Bellman-Ford algorithm and nodes that not appear on negative cycle Given directed graph $G=(V,E,\omega,s,t)$ that $\omega:E\to \mathbb{R}$ is the weight function on $E$, and we want to find shortest path from $s$ to $t$. First, we run the Bellman-Ford algorithm to finding the shortest path from $s$... | {
"domain": "cs.stackexchange",
"id": 18663,
"lm_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, condensed-matter, quantum-information, bose-einstein-condensate
Title: What is "quantum gas"? I could not find a satisfying definition of this term from anywhere. Also, Can you please give some introductory level references to understand quantum gas? To put it simply, a quantum gas (or quantum fluid... | {
"domain": "physics.stackexchange",
"id": 49311,
"lm_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, condensed-matter, quantum-information, bose-einstein-condensate... |
python, python-3.x
signal.signal(signal.SIGUSR1, lambda *_: run_main())
while True:
time.sleep(60)
run_main()
Does that make sense?
Any potential problems I might run into with this?
Is there a simpler way to do this? Your basic code looks fine, but you may encounter one issue if you start doing more complex... | {
"domain": "codereview.stackexchange",
"id": 41914,
"lm_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
} |
(...)
Let $C^{\prime }$ be the intersection of $(SP)$ and $(VW)$, and $D^{\prime }$ the intersection of $(TU)$ and $(QR)$. (...)
One still has to show that $C^{\prime }=C$ and $D^{\prime }=D$."
I have agreed with these objections.
Until now no proof has been posted. The author considers that the "proof is not quite... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471642306267,
"lm_q1q2_score": 0.8177177245328676,
"lm_q2_score": 0.8311430415844385,
"openwebmath_perplexity": 366.83868913884396,
"openwebmath_score": 0.8936517834663391,
"ta... |
quantum-mechanics, path-integral
Title: Path Integral in QM with a position-dependent kinetic energy I'm studying p. 160 in Ryder's book of QFT and there is an example where the standard path integral equation is not valid
$$\langle q_ft_f|q_it_i\rangle = N \int Dq \exp \left( \frac{i}{\hbar}S \right) \tag{5.15} $$... | {
"domain": "physics.stackexchange",
"id": 64615,
"lm_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, path-integral",
"url": null
} |
moveit, collision, gazebo7, ros-kinetic, gripper
When the object is actually in place in gazebo, the pick operation failed as shown in the video below.
IMAGE ALT TEXT HERE http://img.youtube.com/vi/EhhIjNf34As/0.jpg
Here is the main logging:
[ INFO] [1586814556.588570711, 20.136000000]: Planning attempt 1 of at most 1... | {
"domain": "robotics.stackexchange",
"id": 34761,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "moveit, collision, gazebo7, ros-kinetic, gripper",
"url": null
} |
In general the law of cosines gives unambiguous results, since arccos is single valued for angles 0 to 180. Arcsin is double valued over this range.
So this is one special case where ambiguous results might happen?
In general, one doesn't have the luxury of being able to choose which method to use.
But theorethically ... | {
"domain": "mymathforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138141360855,
"lm_q1q2_score": 0.8348822928104258,
"lm_q2_score": 0.8539127510928476,
"openwebmath_perplexity": 685.6160609721503,
"openwebmath_score": 0.8832516074180603,
"tags"... |
energy, molecular-orbital-theory, orbitals
Title: Molecular orbital diagram for nitrogen monoxide, the nitrosyl cation and the nitrosyl anion As I understand it, all of them should have same order of energy of molecular orbitals as a model for $\ce{NO}$ should withstand ionization and adding an electron.
JD Lee Pg 109... | {
"domain": "chemistry.stackexchange",
"id": 7255,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "energy, molecular-orbital-theory, orbitals",
"url": null
} |
+0
# how many solutions does this linear system have?
0
503
6
2x + 3y = 20
6x - y = 20
Aug 3, 2017
#1
+1
Solve the following system:
{2 x + 3 y = 20 | (equation 1)
6 x - y = 20 | (equation 2)
Swap equation 1 with equation 2:
{6 x - y = 20 | (equation 1)
2 x + 3 y = 20 | (equation 2)
Subtract 1/3 × (equation 1) f... | {
"domain": "0calc.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9863631639168357,
"lm_q1q2_score": 0.8154380524244308,
"lm_q2_score": 0.8267117855317474,
"openwebmath_perplexity": 2394.017152942412,
"openwebmath_score": 0.8780180215835571,
"tags": null... |
javascript, php, jquery, ajax, codeigniter
$('#search_text').keyup(function(){
var search = $(this).val();
if( search != "" ){
$.ajax({
type:"POST",
url:"<?php echo base_url(); ?>admin/costumer/search",
data:'search='+$('#search_text').val(),
... | {
"domain": "codereview.stackexchange",
"id": 32486,
"lm_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, php, jquery, ajax, codeigniter",
"url": null
} |
python, visualization, matplotlib
# prepare models
models = []
models.append(('LR', LogisticRegression()))
models.append(('SVM', SVC()))
models.append(('Linear SVC', LinearSVC()))
models.append(('ADABOOST', AdaBoostClassifier()))
models.append(('DT', DecisionTreeClassifier()))
names =... | {
"domain": "datascience.stackexchange",
"id": 8949,
"lm_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, visualization, matplotlib",
"url": null
} |
ros2
It seems that the internal templates do not allow some of these patterns. Is it possible with the current design to perhaps extend subscription callback signatures so that it can accept some of the above signatures?
Originally posted by eric1221bday on ROS Answers with karma: 245 on 2019-09-19
Post score: 3
At ... | {
"domain": "robotics.stackexchange",
"id": 33794,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2",
"url": null
} |
Translating the word problems in to algebraic expressions, Remainder when 2 power 256 is divided by 17, Remainder when 17 power 23 is divided by 16, Sum of all three digit numbers divisible by 6, Sum of all three digit numbers divisible by 7, Sum of all three digit numbers divisible by 8, Sum of all three digit numbers... | {
"domain": "tokyotattoostyle.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9702399043329856,
"lm_q1q2_score": 0.8167728373795338,
"lm_q2_score": 0.8418256492357358,
"openwebmath_perplexity": 1187.2232176970197,
"openwebmath_score": 0.4046316146850586,
... |
cell-biology, terminology, fluorescent-microscopy
Title: In fluorescence microscopy images what is meant by the term "puncta"? I am reading papers where confocal fluorescence microscopy images were analysed. In many of the papers I see the term "puncta" being used when researchers analyse the colocalisation between 2 ... | {
"domain": "biology.stackexchange",
"id": 11469,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cell-biology, terminology, fluorescent-microscopy",
"url": null
} |
java, multithreading, networking, javafx, chat
Instead of extends Thread for ClientHandler, maybe you can also consider implements Runnable as well... Of course, you will have to replace new ClientHandler(socket).start() with new Thread(new ClientHandler(socket)).start() too.
private static void messageAll(String... m... | {
"domain": "codereview.stackexchange",
"id": 15767,
"lm_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, multithreading, networking, javafx, chat",
"url": null
} |
I have (what I think) is the right drawing of the situation. (f*f) creates a triangle from -2 to 2 on x. Then we have a box going through it in three cases.
This gets increasingly messy as you take more convolutions. Instead, I prefer to use transform methods. First, lets translate from ##f(x)= 1\{-1 \leq x \leq 1\}##... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.966914020657881,
"lm_q1q2_score": 0.8199119090689286,
"lm_q2_score": 0.8479677526147223,
"openwebmath_perplexity": 1211.2164344738276,
"openwebmath_score": 0.9488039612770081,
... |
This suggests that we construct our bijection in such a way that $\sigma(i)+1=\sigma(i+1)$ if and only if $\tau(i)=i$. The former equation can be rewritten as $i=\sigma^{-1} (\sigma(i+1)-1)$. So if we define our bijection by taking $\sigma$ to the permutation satisfying $$\tau(i)=\sigma^{-1}\left(\sigma(i+1)-1\right),$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936064221572,
"lm_q1q2_score": 0.8496581562953932,
"lm_q2_score": 0.863391602943619,
"openwebmath_perplexity": 160.4422754281705,
"openwebmath_score": 0.9476654529571533,
"tags... |
javascript, typescript, iteration
Title: flatten API response, and renaming prop - is there a solution by iterating key/value pair? I want to sum up and flatten the structure of an API response. Since I didn't succeed by iterating over the key/value pairs of input.statistic I came up with another solution which does t... | {
"domain": "codereview.stackexchange",
"id": 43146,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, typescript, iteration",
"url": null
} |
Note however that this example will typically exhibit a significant intercept in the model with intercept.
n <- 100
mu <- 10
y <- rnorm(n, mean=mu)
x <- runif(n)
plot(x, y, ylim=c(0, mu+3))
abline(v=0, lty=2)
abline(h=0, lty=2)
abline(lm(y~x), col="lightblue", lwd=2)
abline(lm(y~x-1), col="purple", lwd=2)
abline(h... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.975576912076157,
"lm_q1q2_score": 0.8086935608609279,
"lm_q2_score": 0.8289388062084421,
"openwebmath_perplexity": 1159.3836831854644,
"openwebmath_score": 0.7346858382225037,
"tag... |
fft, python
# axs[1].set_xscale("symlog")
axs[0].set_xlim(0, f_sig * 4)
axs[0].legend(loc='upper right', shadow=True, fontsize='x-small')
axs[0].set_ylabel('Magnitude')
axs[0].set_xlabel('Frequency [Hz]')
time_vec = np.arange(N) * T_s * 1e6
axs[1].plot(time_vec[0 : 10*M-1], test_signal[0 : 10*M-1], label='Test Signal... | {
"domain": "dsp.stackexchange",
"id": 11732,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fft, python",
"url": null
} |
quantum-mechanics, operators, notation
Title: Is H=H* sloppy notation or really just incorrect, for Hermitian operators? I saw it in this pdf, where they state that
$P=P^\dagger$ and thus $P$ is hermitian.
I find this notation confusing, because an operator A is Hermitian if
$\langle \Psi | A \Psi \rangle=\langle A \... | {
"domain": "physics.stackexchange",
"id": 5649,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, operators, notation",
"url": null
} |
fft, python
print(20.0 *np.log10(rms_flat(y)))
def fft(samples):
yf = np.abs(np.fft.fft(samples * np.hanning(len(samples))))
xf = np.linspace(0.0, 1 / (2.0 * Ts), Fs / 2)
plt.subplot(322)
plt.title("Abs Pos Spectrum")
plt.ylabel("Amplitude")
plt.xlabel("Frequency")
plt.plot(xf, 2.0/A * yf[... | {
"domain": "dsp.stackexchange",
"id": 5046,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fft, python",
"url": null
} |
java, stream, lazy
@Override
public StreamLinesOverInternet<T> sorted()
{
return this.continueStreamSafely(Stream::sorted);
}
@Override
public StreamLinesOverInternet<T> distinct()
{
return this.continueStreamSafely(Stream::distinct);
}
@Override
public DoubleVe... | {
"domain": "codereview.stackexchange",
"id": 45492,
"lm_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, stream, lazy",
"url": null
} |
javascript, jquery, html, validation
} else {
//console.log(value);
$('#warning').addClass('label-danger').text('Warning! You have selected more than one players from the same nation (' + value + ')');
}
});
}; You didn't incude it in your post, but I'm... | {
"domain": "codereview.stackexchange",
"id": 8318,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, html, validation",
"url": null
} |
homework-and-exercises, kinematics
(Usually, it must be stated that for example $t\in[0;2\pi]$ - otherwise it could just as well have been a half-circle e.g. - but we'll assume that this is a full circle in your case.)
The value of $q$ in your given expression doesn't matter. It just causes the circle to be drawn "mo... | {
"domain": "physics.stackexchange",
"id": 41409,
"lm_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, kinematics",
"url": null
} |
python
def whatever(data, size):
EMPTY = object()
for items in nth_wise(data, n=size, fillvalue=EMPTY):
yield tuple(item in item in items if item is not EMPTY)
This produces the items:
>>> list(whatever('abcde', 3))
[
('a', 'b', 'c'),
('b', 'c', 'd'),
('c', 'd', 'e'),
('d', 'e'),
(... | {
"domain": "codereview.stackexchange",
"id": 28215,
"lm_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",
"url": null
} |
organic-chemistry, rearrangements
(apologies for hand-drawing - doing this on my phone)
You need to consider the chair conformations of both stereoisomers, in both possible ring-flip forms. For the cis stereoisomer, you would expect roughly a 1:1 mixture of ring-flip forms. When the $\ce{OH}$ is axial, the group anti ... | {
"domain": "chemistry.stackexchange",
"id": 12115,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "organic-chemistry, rearrangements",
"url": null
} |
quantum-mechanics, general-relativity, time
Title: Flow of time in Quantum Mechanics vs General Relativity I was reading a Wikipedia article about the Problem of time, which states:
quantum mechanics regards the flow of time as universal and absolute, whereas general relativity regards the flow of time as malleable a... | {
"domain": "physics.stackexchange",
"id": 89696,
"lm_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, general-relativity, time",
"url": null
} |
gazebo
Title: gazebo physics:: member function not found
I was following velodyne control plugin tutorial but as i try to build the velodyne_plugin.cc file get this error:
/home/rob/velodyne_plugin/velodyne_plugin.cc:42:42: error: ‘class gazebo::physics::JointController’ has no member named ‘SetVelocityPID’
th... | {
"domain": "robotics.stackexchange",
"id": 3978,
"lm_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",
"url": null
} |
genetics, human-genetics, allele
But some illnesses are carried by dominant alleles (from the same article):
Other disorders, such as Huntington disease, occur when an individual inherits only one dominant allele.
My questions are:
How does harm from alleles correlate with their recessiveness? Generally speaking, ... | {
"domain": "biology.stackexchange",
"id": 3980,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "genetics, human-genetics, allele",
"url": null
} |
molecular-biology, cell-biology, immunology
Title: MHC restricted peptide What is an MHC restricted peptide?
I got this definition from wikipaedia, but cannot exactly extract what the phrase MHC restricted peptide means.
MHC-restricted antigen recognition, or MHC restriction, refers to the fact that a given T cell w... | {
"domain": "biology.stackexchange",
"id": 3651,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, cell-biology, immunology",
"url": null
} |
java, programming-challenge
@Benchmark
@Warmup(iterations = 5)
public int withCharsNumericalCharAt(BenchmarkState x) {
String num = x.multiple.toString();
int len = num.length();
int result = 0;
for(int i = 0; i < len; i++) {
result += Character.getNumericValue(num.c... | {
"domain": "codereview.stackexchange",
"id": 35912,
"lm_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, programming-challenge",
"url": null
} |
quantum-mechanics, vectors, operators, hilbert-space
The context: Dirac is proving that an eigenvalue $\xi'$ of $\xi$ must satisfy $\phi(\xi')=0$ if $\phi(\xi)=0$.
Oh (no need to answer this if you don't want), and is there any reason for Dirac introducing the confusing notation that eigen-whatevers of an operator sho... | {
"domain": "physics.stackexchange",
"id": 2432,
"lm_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, vectors, operators, hilbert-space",
"url": null
} |
python, strings, comparative-review, natural-language-processing
EMPEREURS = EMPER
CONFRERIE = CONFRER
SOUTENUE = SOUTENU
LISTE = LIST
ELECTION = ELECT
ELECTORALE = ELECT
FINANCEMENT = FINANC
CATHOLIQUE = CATHO
HARMONIE = HARMO
DEBOUT = DEBOU
VENT = VENT
CERCLE = CERCL
FOOTBALL = FOOT
IMPROVISATION = IMPROV
POPULAIRE ... | {
"domain": "codereview.stackexchange",
"id": 32750,
"lm_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, strings, comparative-review, natural-language-processing",
"url": nul... |
newtonian-mechanics, collision, simulations
That is all you need to analyze the motion of the objects, but if you are really interested in the Force of the collision, then you need to identify a time $\Delta t$ over which the collision takes place, and the force of collision is then $F=\frac{m_1(v_1-u_1)}{\Delta t}=\f... | {
"domain": "physics.stackexchange",
"id": 76106,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, collision, simulations",
"url": null
} |
computational-physics, mathematics, approximations, models, computer
Title: Can artificial neural networks be effective theories? Wikipedia describes "effective theories" as follows.
In science, an effective theory is a scientific theory which proposes to describe a certain set of observations, but explicitly without... | {
"domain": "physics.stackexchange",
"id": 83359,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computational-physics, mathematics, approximations, models, computer",
"url": nu... |
arduino, serial
Title: how to read and write data with pyserial at same time How can i make pyserial read and write at same time or at same program? Right now i only know how to either write or to read but not both simultaneiously. So how can i do it? I tried this simple code:
int incomingByte = 0;
void setup() {
Se... | {
"domain": "robotics.stackexchange",
"id": 1308,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "arduino, serial",
"url": null
} |
special-relativity
Title: Understanding the time dilation calculation in Brian Cox's Doctor Who lecture Background
My son has just watched Brian Cox's fascinating "The Science of Doctor Who" lecture on space-time and was particularly intrigued by the part (at 22m:22s) where he said:
Let us say that we catapult Jim of... | {
"domain": "physics.stackexchange",
"id": 96675,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "special-relativity",
"url": null
} |
java, tree, console, library, ascii-art
return siblingSpace;
}
}
You can find the entire project containing a funky demo program here: https://github.com/coderodde/BinaryTreePrinter
Using it, you may get something like:
+----+
+------------------|1000|-----+... | {
"domain": "codereview.stackexchange",
"id": 29313,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, tree, console, library, ascii-art",
"url": null
} |
bash
# Run an se helper function over selected projects
function se_loop_projects
{
local helper_function_name=$(declare -F $1)
if [[ ! ${helper_function_name} =~ ^_se_* ]]
then
echo_error "'$1' is not in the list of available se helper functions: $(declare -F | cut -d' ' -f3 | grep '^_se_*' | xarg... | {
"domain": "codereview.stackexchange",
"id": 23504,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "bash",
"url": null
} |
machine-learning, logistic-regression
In your case, unless you pick a silly normalization factor like zero, your two loss functions have the same parameters that optimize them, so it does not matter which we optimize. Dividing by some factor can keep the numbers from getting too large, though, especially if you're add... | {
"domain": "datascience.stackexchange",
"id": 10098,
"lm_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, logistic-regression",
"url": null
} |
validation, error-handling, scala, asynchronous
Notice that at this point we have lost a bit of precision since I don't distinguish between the two errors anymore. The information is still there, captured in the errors of the JsResult. You could use pattern matching or even a cast to get a JsError out of the JsResult ... | {
"domain": "codereview.stackexchange",
"id": 19730,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "validation, error-handling, scala, asynchronous",
"url": null
} |
c#, xamarin
Title: Xamarin.Forms request / Failed request function I've wrote a little iPad app with Xamarin.Forms. What I'm trying to do here is send some support tickets via a request to my server. I'm also keeping the "Failed" tickets in a collection so that I can try to send them in an other thread at app start. C... | {
"domain": "codereview.stackexchange",
"id": 21948,
"lm_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#, xamarin",
"url": null
} |
• 目录 1. 简介 2.... 4.1 使用 qreg 的简单条件分位数回归 4.2 使用 bsqreg 估计 4.3 使用 qrprocess 估计 4.4 使用 qreg2 估计 4.5 使用 ivqreg2 估计 4.6 使用 xtqreq
• 分位数 定义:对随机变量X和给定的α\alphaα ,(0&amp;lt;α\alphaα&amp;lt;1),若存在
• 那么在一亿美元金额下投资组合的损失为 将损失从大排到小,数第5个(1%),或从小到大排取第496个 也可以出简单历史模拟法的损失分布,视觉上更为直观。 改良历史模拟法: 1.时间加权 在上述历史模拟法中,每笔...
• #分位数图t分布密度带p值... | {
"domain": "csdn.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982013790564298,
"lm_q1q2_score": 0.8028694038880951,
"lm_q2_score": 0.8175744695262777,
"openwebmath_perplexity": 2820.1698591354916,
"openwebmath_score": 0.6368178129196167,
"tags": null,... |
fluid-dynamics
Title: Centripetal forces acting on fluid flow in a bent pipe? Yesterday I answered this question, using analysis of forces from this web page.
But today I started having doubts regarding the completeness of this analysis. It occurred to me this approach does not take into account any centripetal forces... | {
"domain": "physics.stackexchange",
"id": 25007,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics",
"url": null
} |
$Re[f(i)]=0\mbox{ and }Im[f(i)]=1$
Hope you can continue with the rest of the problem.
For i we have f(i)=(1+i)/(1-i) since i(depending on the power) can be i,-i,1,-1=>0, (1+i)/(1-i),(1-i)/(1+i)
This is wrong. $$i=\sqrt{-1}$$
For 1 − i we have 1,-3,(2-i)/i,(2+i)/i.
Not sure about the second part..
...
#### Hallsof... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534392852383,
"lm_q1q2_score": 0.817869284016044,
"lm_q2_score": 0.8333245891029456,
"openwebmath_perplexity": 2427.3510879878922,
"openwebmath_score": 0.9134299159049988,
... |
php, object-oriented, parsing, reinventing-the-wheel
I'm looking to get some feedback specifically on formatting, documentation, my idea for the extended Exception class, and ways I could improve on writing these classes. I do already have a couple ideas for additional functionality I could add (Such as $parKey being ... | {
"domain": "codereview.stackexchange",
"id": 26037,
"lm_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, parsing, reinventing-the-wheel",
"url": null
} |
gas in reservoirs, to optimize the performance of wells and pumps that get the oil and gas to the surface, to improve the quality of the fossil fuel projects, and to minimize tanker transportation and final delivery costs. You can either use an established mnemonic device or you can create your own. , with value as the... | {
"domain": "podistiagnadello.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9702399026119352,
"lm_q1q2_score": 0.8167728340055909,
"lm_q2_score": 0.8418256472515683,
"openwebmath_perplexity": 2224.0756255834276,
"openwebmath_score": 0.6267150044441223,
"... |
Not sure this is the best method, but the way I would actually solve such a set of questions would be the following:
Use generating function methods for the second question. The explicit collection of submultisets of the six tiles is given by the terms of $(1+x)(1+y+y^2)(1+z+z^2+z^3)$ (the $x$ terms correspond to tile... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9458012701768144,
"lm_q1q2_score": 0.8165968780486386,
"lm_q2_score": 0.8633916064586998,
"openwebmath_perplexity": 243.81994413826246,
"openwebmath_score": 0.8353006839752197,
"ta... |
Thus the two assertions "if $p$ then $q$" and "if not $q$ then not $p$" hold in precisely the same cases.
Remark: The answer above is much too abstract. To understand what's going on, it is useful to examine a number of concrete cases. Suppose that we want to show that if $x^2=2$ then $x$ is not an ordinary fraction (... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850857421198,
"lm_q1q2_score": 0.8541306357960913,
"lm_q2_score": 0.8688267660487573,
"openwebmath_perplexity": 180.12692310658505,
"openwebmath_score": 0.889682412147522,
"tag... |
When I was your age (15 or so), I also played around with a very similar integral. My take was slightly different.
First of all, for suitable real numbers $$s$$ (say with positive real part) one actually has the sum
$$\sum_{-\infty}^\infty \binom{s}{k} = 2^s.$$
So a more natural integral to consider might be
$$I(s)... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9732407137099625,
"lm_q1q2_score": 0.8366597603472541,
"lm_q2_score": 0.8596637487122111,
"openwebmath_perplexity": 212.34798128269998,
"openwebmath_score": 0.9108378887176514,
"ta... |
electricity, electrical-resistance, electrical-engineering
Title: How do you model the resistance across a symmetric sheet of plastic, streched (think ceran wrap) between a circular anode and cathode? Here is the problem. You need to model the resistance across a circular sheet of polypropylene (plastic). The resist... | {
"domain": "physics.stackexchange",
"id": 23371,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electricity, electrical-resistance, electrical-engineering",
"url": null
} |
# Does there exist some $C$ independent of $n$ and $f$ such that $\|f''\|_p \geq Cn^2 \| f \|_p$, where $1 \leq p\leq \infty$?
Let $f$ be a trigonometric polynomial on the circle $\mathbb{T}$ with $\hat{f}(j) = 0$ for all $j \in \mathbb{Z}$ with $\lvert j \rvert < n$. Does there exist some $C$ independent of $n$ and $... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806472775278,
"lm_q1q2_score": 0.8448076968012495,
"lm_q2_score": 0.861538211208597,
"openwebmath_perplexity": 236.31530025529176,
"openwebmath_score": 0.9720077514648438,
"tags... |
quantum-mechanics, symmetry, hamiltonian, molecules
Title: Why do molecules lack the inversion symmetry of the full molecular Hamiltonian? The nonrelativistic molecular Hamiltonian has inversion symmetry, since the kinetic energy operator and the Coulomb operator have inversion symmetry,
$$\begin{aligned}
\hat p_i^2&\... | {
"domain": "physics.stackexchange",
"id": 99009,
"lm_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, symmetry, hamiltonian, molecules",
"url": null
} |
social, human-like, mythology-of-ai
In general, the underlying approach of actors seems to have been to show the androids being distinct from humans, drawing a clear, though sometimes subtle, contrast.
Actors portraying androids have typically utilized robotic mannerisms to convey an artificial entity. | {
"domain": "ai.stackexchange",
"id": 1493,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "social, human-like, mythology-of-ai",
"url": null
} |
c#, beginner, .net, matrix
public static int Precision {
get;
set;
}
static DMatrix() {
Precision = 2;
}
public DMatrix(int n) {
if (n < 1) {
throw new Exception($"Cannot create matrix," +
... | {
"domain": "codereview.stackexchange",
"id": 36209,
"lm_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, .net, matrix",
"url": null
} |
c++, c++11, compiler, webassembly, aec
// comparing pointers of different types.
else
strongerType =
getStrongerType(lineNumber, columnNumber, firstType, secondType);
AssemblyCode::AssemblyType assemblyType =
mappingOfAECTypesToWebAssemblyTypes.at(strongerType);
if (assemblyType == ... | {
"domain": "codereview.stackexchange",
"id": 43373,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11, compiler, webassembly, aec",
"url": null
} |
quantum-mechanics, quantum-field-theory, atomic-physics, hydrogen
Title: Transition $2p \rightarrow 1s$ of Hydrogen Atom I am reading Mukhanov and Winitzki's book Introduction to Quantum Effects in Gravity and in second paragraph of Sec. 1.4.2 they say that : The spontaneous emission by a hydrogen atom is the transiti... | {
"domain": "physics.stackexchange",
"id": 69696,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, quantum-field-theory, atomic-physics, hydrogen",
"url": null
... |
ros
Will we see the day when the universe lines up and all the devices JUST WORK? hehehe
Originally posted by Martin Peris on ROS Answers with karma: 5625 on 2014-01-23
Post score: 3
Original comments
Comment by Athoesen on 2014-01-24:
It could be because openni2_camera is explicitly made for this purpose.
http://wi... | {
"domain": "robotics.stackexchange",
"id": 16749,
"lm_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
} |
transformer, seq2seq
Title: Why is it called a Seq2Seq model if the output is just a number? Why is it called a Seq2Seq model if the output is just a number?
For example, if you are trying to predict a movie's recommendation, and you are inputting a sequence of users and their ratings, shouldn't it be a Seq2Number mod... | {
"domain": "ai.stackexchange",
"id": 3681,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "transformer, seq2seq",
"url": null
} |
mycology, microscopy, parasitology
Cross sections of leaves (hold between two thin pieces of polystyrene or cork and slice gently with a new single-edge razor blade or craft knife). . These will show the internal structure of the leaves - veins (xylem, phloem), cells etc. You can also use clear nailpolish to paint on ... | {
"domain": "biology.stackexchange",
"id": 12177,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mycology, microscopy, parasitology",
"url": null
} |
that satisfies the inequality. _________________ Manager Joined: 29 Sep 2008 Posts: 150 Followers: 3 Kudos [?]: 53 [10] , given: 1 Re: Inequalities trick [#permalink] 22 Oct 2010, 10:45 10 This post received KUDOS 8 This post was BOOKMARKED if = sign is included with < then <= will be there in solution like for (x+2)(x... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9653811611608241,
"lm_q1q2_score": 0.8534348638996897,
"lm_q2_score": 0.8840392771633079,
"openwebmath_perplexity": 2382.6171032034335,
"openwebmath_score": 0.5893213152885437,
"tags": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.