text
stringlengths
1
1.11k
source
dict
homework-and-exercises, general-relativity, differential-geometry, tensor-calculus, vector-fields \begin{align} d(g^{\flat}(F)) &= \left(\frac{\partial f^r}{\partial r}\,dr+\frac{\partial f^r}{\partial \theta}\,d\theta\right)\wedge dr + \left(\frac{\partial (rf^{\theta})}{\partial r}\,dr+\frac{\partial (r f^{\theta})}...
{ "domain": "physics.stackexchange", "id": 81979, "lm_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, general-relativity, differential-geometry, tensor-calculus...
python, algorithm, graph Another example of this is if you wanted to obtain all the routes from from FRA -> MAD. And so you'd return the flights from FRA -> MAD and FRA -> CPH -> MAD. The first algorithm would still visit all \$6\$ airports, as you want to check if there are any three flights that can get to the desir...
{ "domain": "codereview.stackexchange", "id": 24743, "lm_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, graph", "url": null }
qiskit, ibm-q-experience from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, execute, Aer # Define the Quantum and Classical Registers q = QuantumRegister(1) c = ClassicalRegister(1) # Build the circuits circuits = [] middle = QuantumCircuit(q, c) meas = QuantumCircuit(q, c) meas.barrier() meas.me...
{ "domain": "quantumcomputing.stackexchange", "id": 1148, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "qiskit, ibm-q-experience", "url": null }
python, python-3.x TASK 3 – Identify the break-even point or profit that will be made on the outing. Show whether the outing has made a profit or has broken even using the estimated cost from TASK 1 and the money collected from TASK 2. And my code: seniors = int(input("Please enter the amount of senior citizens going:...
{ "domain": "codereview.stackexchange", "id": 29882, "lm_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 }
python, programming-challenge #to break ties, we compare highest card for both hands and move to next card in event of a tie #for hands with flushes, straights and high card, we should sort according to numeric_value #for pairs, etc, we should place the pairs in front def break_tie(hand1, hand2): ranking = getrank...
{ "domain": "codereview.stackexchange", "id": 19874, "lm_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, programming-challenge", "url": null }
hadamard $$H^{\otimes k} \left| 0 \right>^{\otimes k} = \frac{1}{\sqrt{2^k}} \sum_{i=0}^{2^k -1} \left| i \right>$$ (note the appropriate normalization factor). Now, you have to consider $H^{\otimes k+1} \left| 0 \right>^{\otimes k+1}$: $$H^{\otimes k+1} \left| 0 \right>^{\otimes k+1} = \big( H^{\otimes k} \left| 0 \...
{ "domain": "quantumcomputing.stackexchange", "id": 960, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "hadamard", "url": null }
java, algorithm, comparative-review, tree, trie assertEquals(3, strings.size()); assertEquals("bbbb", strings.get(0)); assertEquals("bbda", strings.get(1)); assertEquals("bbxs", strings.get(2)); pt.clear(); pt.add("aaa"); strings = pt.autocomplete("aaab...
{ "domain": "codereview.stackexchange", "id": 42798, "lm_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, algorithm, comparative-review, tree, trie", "url": null }
newtonian-mechanics, forces, definition, si-units, metrology Title: Is there a "standard" Newton? Basic SI units have definitions through experiments that seems to imply a pretty obvious setup. Is there a standard experiment for calibrating Newtons? The definition is the force needed to cause a 1m/s² acceleration of a...
{ "domain": "physics.stackexchange", "id": 54142, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "newtonian-mechanics, forces, definition, si-units, metrology", "url": null }
ros, ros2, jointstate or even separate msgs for JointPositionCommand.msg JointVelocityCommand.msg JointAccelerationCommand.msg and JointEffortCommand.msg . I also think that such msgs should be part of std_msgs, rather than control_msgs if possible. Perhaps this should be moved to a Discourse discussion rather than a ...
{ "domain": "robotics.stackexchange", "id": 36948, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, ros2, jointstate", "url": null }
machining Title: Visible markings for plasma cutting? I'm new to plasma cutting with a hand-held plasma cutter (as opposed to CNC). Its straightforward to cut with a fence/guide and I am getting good results that way. However, when I want to freehand a rough shape without setting up a complicated jig, I can't figure ...
{ "domain": "engineering.stackexchange", "id": 2607, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machining", "url": null }
light, dark-matter Check out the video, and it more explains my understanding of things... Why I don't accept answer below: Can you provide sources for your claims? Also I didn't say you can't have DARK MATTER without Light , I said you can't have Dark, as in Darkness. I think you're getting hung up on Dark Matter whi...
{ "domain": "astronomy.stackexchange", "id": 808, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "light, dark-matter", "url": null }
statistical-mechanics, temperature, soft-question, statics A one dimensional chain is hung on a ceiling. One of its extremes is fixed, while the other holds a mass $M$. Gravity is acting along the negative $z$ direction. The chain is formed by two kinds of distinguishable rings: they are ellipses with the major axis o...
{ "domain": "physics.stackexchange", "id": 50310, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "statistical-mechanics, temperature, soft-question, statics", "url": null }
(A) 3,806 (B) 5,190 (C) 9,134 (D) 9,515 (E) 11,194 We can let attendance on the final day = n and create the equation: 11,418 = 1.2n 9,515 = n _________________ Jeffery Miller Head of GMAT Instruction GMAT Quant Self-Study Course 500+ lessons 3000+ practice problems 800+ HD solutions Intern Joined: 26 Jan 2016 P...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. Yes\n2. Yes\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9788748093366113, "lm_q1q2_score": 0.8025729371766088, "lm_q2_score": 0.819893340314393, "openwebmath_perplexity": 9937.758574228475, "openwebmath_score": 0.39081957936286926, "tags":...
ros, communication, xml, master, subscribe Originally posted by Lorenz with karma: 22731 on 2012-09-03 This answer was ACCEPTED on the original site Post score: 2 Original comments Comment by cyborg-x1 on 2012-09-03: Is there a documentation for the direct XML format like below (captured by wireshark): 1 Unregistere...
{ "domain": "robotics.stackexchange", "id": 10871, "lm_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, communication, xml, master, subscribe", "url": null }
\le p < 2007$. Considering $p$ from just $44^2 \le p \le 1980$, we see that all of these values have $b(p)=44$. Because there are $45$ values of $p$ in that range, the sum of $b(p)$ in that range is $45\cdot44=1980$. Adding this to $56760$ we get $58740$ or $740$ mod $1000$. Now, take the range $1980 < p \le 2007$. The...
{ "domain": "artofproblemsolving.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.993096162133108, "lm_q1q2_score": 0.8441031049209832, "lm_q2_score": 0.84997116805678, "openwebmath_perplexity": 2239.1963320211557, "openwebmath_score": 0.855088472366333, "...
13, 2015 The Markov chain existence theorem states that given the above three attributes a sequence of random variables can be generated. Writing code in comment? Markov chain is a model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous ev...
{ "domain": "absfinishers.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9632305339244014, "lm_q1q2_score": 0.8128655245372721, "lm_q2_score": 0.8438950966654774, "openwebmath_perplexity": 721.1337116187764, "openwebmath_score": 0.6366798877716064, "tags...
9 Unless we can derive bounds during presolving, the standard way is to set a default variable range instead (e.g. $\pm1.e16$) so that we can generate the McCormick constraints. There are numerical & convergence issues to consider depending on the number that is chosen, so setting smaller bounds might be preferable if...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9553191271831558, "lm_q1q2_score": 0.8061891346818576, "lm_q2_score": 0.8438951045175643, "openwebmath_perplexity": 458.46102491533725, "openwebmath_score": 0.7797496318817139, "ta...
%3D - Using the general form of a polar equation: we find that the value of is and the value of is .. Example 10: Rewriting a Polar Equation in Cartesian Form Z = 4 + j 5 0 Comments. The formulas for converting rectangular to polar are given as: Pay very close attention to the units used when evaluating tan -1 (y/x) to...
{ "domain": "oceansport.es", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9706877700966099, "lm_q1q2_score": 0.802479025826872, "lm_q2_score": 0.826711791935942, "openwebmath_perplexity": 851.6437884177781, "openwebmath_score": 0.893791139125824, "tags":...
$\displaystyle \varphi(n) = n \prod_{p|n} \left(1-\frac{1}{p}\right),$ where the product is made over all primes dividing ${n}$. If you have to compute ${\varphi(n)}$ for all numbers less than a threshold then another property could be useful: ${\varphi}$ is arithmetic, that is, ${\varphi(mn) = \varphi(m)\varphi(n)}$...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9921841100551559, "lm_q1q2_score": 0.806514029594715, "lm_q2_score": 0.8128673110375457, "openwebmath_perplexity": 814.9972035398341, "openwebmath_score": 0.9984534382820129, "tags": n...
#### SageB.Bases. Every vector space in Sage has a basis — you can obtain this with the vector space method .basis(), and the result is a list of vectors. Another method for a vector space is .basis_matrix()which outputs a matrix whose rows are the vectors of a basis. Sometimes one form is more convenient than the oth...
{ "domain": "runestone.academy", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9908743631497862, "lm_q1q2_score": 0.8006930924813145, "lm_q2_score": 0.8080672204860316, "openwebmath_perplexity": 365.6440636151513, "openwebmath_score": 0.9681013226509094, "tag...
ros, subscribe, topic geometry_msgs::PoseStamped [] msgs_vector In ur code write the subscriber like this void callback(const package_name::geometry_msgs_vector::ConstPtr &msg) { } To access the vector use "msg.msgs_vector" Hope this works PS:Dont forget to include this msg header file "package_name/geometry_msgs_v...
{ "domain": "robotics.stackexchange", "id": 14467, "lm_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, subscribe, topic", "url": null }
distribution with mean. Marginal and conditional distributions of multivariate normal distribution Assume an n-dimensional random vector has a normal distribution with where and are two subvectors of respective dimensions and with. Bayesian update of a prior normal distribution with new sample information. 92 and 202-2...
{ "domain": "heimambiente.de", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9843363549643401, "lm_q1q2_score": 0.8093106582622971, "lm_q2_score": 0.8221891370573388, "openwebmath_perplexity": 532.9972113997312, "openwebmath_score": 0.7368945479393005, "tags"...
waves, non-linear-systems, superposition $$ \psi_{(a\otimes1)\oplus(b\otimes2)}(t) \equiv a \sin(\omega_1 t) + b \sin(\omega_2 t) = a \psi_1(t) + b \psi_2(t). $$ Here I am using the symbol "$\otimes$" to mean "physically scaled by the preceding factor" and "$\oplus$" to mean "combined physically." In this particular c...
{ "domain": "physics.stackexchange", "id": 8556, "lm_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, non-linear-systems, superposition", "url": null }
qiskit Title: UCCSD in qiskit deprecated? Is this now deprecated or moved? I've been looking for it. It was in from qiskit.chemistry.aqua_extensions.components.variational_forms import UCCSD No, it wasn't removed, it's here: https://github.com/Qiskit/qiskit-aqua/blob/master/qiskit/chemistry/components/variational_for...
{ "domain": "quantumcomputing.stackexchange", "id": 1228, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "qiskit", "url": null }
c++, object-oriented, classes } else if(board[i][j] == 10) getkingmoves(true,i,j); } } return pseudomoves; for(long unsigned int i = 0;i < pseudomoves.size();i++){ original = perform(pseudomoves[i]); ...
{ "domain": "codereview.stackexchange", "id": 39176, "lm_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, classes", "url": null }
performance, vba, excel Gmax = Worksheets("pool").Range("A:A").Cells.SpecialCells(xlCellTypeConstants).Count Sheets("results").UsedRange.ClearContents Do While j <= Gmax - 5 Do While k <= Gmax - 4 Do While l <= Gmax - 3 Do While m <= Gmax - 2 Do While n ...
{ "domain": "codereview.stackexchange", "id": 20563, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "performance, vba, excel", "url": null }
quantum-field-theory, statistical-mechanics, terminology, soft-question, partition-function Similarly, you can think of $Z[J]$ as a partition function for a thermodynamic system in a fixed external field, so $Z[J]$ can be called both names. Your last question is primarily opinion-based, but my experience has been tha...
{ "domain": "physics.stackexchange", "id": 49015, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-field-theory, statistical-mechanics, terminology, soft-question, partition...
java, hash-map public void setValue(V value) { this.value = value; } } Please add null check for 'keys' I am assuming you are getting a NPE, if key==null. If key == null, then hashcode is 0. In the while loop in 'get' method, I am struggling to understand, where you are advancing to next entry in the same...
{ "domain": "codereview.stackexchange", "id": 29205, "lm_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, hash-map", "url": null }
ros, ros-melodic, messages, msg Original answer: tl;dr: no, I don't believe this is supported. Longer: looking at the genmsg_py.py script's help, this could be possible: $ ./genmsg_py.py --help Usage: genmsg_py.py file Options: -h, --help show this help message and exit --initpy -p PACKAGE ...
{ "domain": "robotics.stackexchange", "id": 36499, "lm_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, messages, msg", "url": null }
beginner, c, homework, combinatorics, finance // Greedy Algorithm for Dollars for (int i = 0;i < DIM(billDenominations);i++) numBillsAndCoins += makeChange(&remainingDollars, billDenominations[i]); // Greedy Algorithm for Cents for (int i = 0;i < DIM(coinDenominations);i++) numBillsAndCoin...
{ "domain": "codereview.stackexchange", "id": 14120, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "beginner, c, homework, combinatorics, finance", "url": null }
electric-current, integration Title: Average value of alternating current for a long period I came across the following in my physics text-book while reading alternating currents: Average value of current is given by: $$I_{av}=\frac{\int_{t_1}^{t_2}{I(t)dt}}{t_2-t_1}$$ Over a long period of time, the denominator tend...
{ "domain": "physics.stackexchange", "id": 70075, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electric-current, integration", "url": null }
php, object-oriented class IntRange implements Range{ private $bounds, $rangeType, $range; public function __construct(string $range) { $this->range = $range; $this->getType(); $this->getBounds(); } private function boundsToInt(){ for($i = 0; $i <...
{ "domain": "codereview.stackexchange", "id": 26406, "lm_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", "url": null }
redshift, doppler-effect In summary, while we cannot directly observe the original wavelength emitted by a star, by analyzing the Doppler shift in its spectrum and comparing it to known spectral lines, astronomers can infer the star's speed. This technique has been crucial in understanding the motion and dynamics of c...
{ "domain": "astronomy.stackexchange", "id": 6957, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "redshift, doppler-effect", "url": null }
algorithms, binary-search, convex-hull How would one do the binary search (assuming the convex hull's vertices are given in counter-clockwise order)? So, the situation is that you have the vertices $\mathbf{v}_i$ of a polygon that defines a convex hull and a point $\mathbf{O}$ inside this polygon. Furthermore you have...
{ "domain": "cs.stackexchange", "id": 9576, "lm_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, binary-search, convex-hull", "url": null }
organic-chemistry, acid-base, biochemistry, enzymes, medicinal-chemistry Betaine hydrochloride is also used to treat abnormally low levels of potassium (hypokalemia), hay fever, “tired blood” (anemia), asthma, “hardening of the arteries” (atherosclerosis), yeast infections, diarrhea, food allergies, gallstones, ...
{ "domain": "chemistry.stackexchange", "id": 8125, "lm_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, acid-base, biochemistry, enzymes, medicinal-chemistry", "url...
general-relativity, spacetime, metric-tensor, coordinate-systems In special relativity how the different sign is related to physical difference between time and space. In general relativity what happens if the time (or space) component change sign? What is the physical meaning of this? I know that the change of sign o...
{ "domain": "physics.stackexchange", "id": 31033, "lm_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, metric-tensor, coordinate-systems", "url": null }
php, unit-testing, bdd You only have a few cases where you validate data passed to your class setters. Generally, it is a good idea to type hint and/or validate (when type hinting can not be performed) all values passed to public class methods before working with them in your classes. I would strongly suggest you get...
{ "domain": "codereview.stackexchange", "id": 24584, "lm_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, unit-testing, bdd", "url": null }
formal-languages, regular-languages, regular-expressions Right now, I'm thinking that I could build a tree (or graph) from the expression and then a DFS or BFS can do the job. Any comments or document/article references would be helpful to me. There is a standard construction for converting regular expressions into fi...
{ "domain": "cs.stackexchange", "id": 2570, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "formal-languages, regular-languages, regular-expressions", "url": null }
ros, installation Originally posted by Jong H Kim on ROS Answers with karma: 17 on 2012-05-09 Post score: 0 You can install warehousewg package. This provides monodb and a ros wrapper over it. Other errors refer to missing packages. You can search in ros repository for each of them. After install them, laser_slam sh...
{ "domain": "robotics.stackexchange", "id": 9324, "lm_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, installation", "url": null }
(ii) We look for a particular solution of the shape $a4^n+b$. Plugging in we get $a4^n+b-2a4^{n-1}-2b-3a4^{n-2}-3b=4^n+6$. Now we can find $a$ and $b$. (iii) Finally, the general solution is $P(-1)^n+Q3^n+a4^n+b$ where $a$ and $b$ are known. Now choose $P$ and $Q$ so the initial conditions are satisfied. Yet another...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9814534360303622, "lm_q1q2_score": 0.8135648437597525, "lm_q2_score": 0.8289388104343893, "openwebmath_perplexity": 132.08823467245494, "openwebmath_score": 0.9990332126617432, "ta...
c++, mergesort You pass in an array but you return a pointer. Is this a pointer to the input array or are you returning dynamically allocated memory or is it some internal array. Am I supposed to free the returned pointer. I have no idea. We have objects that will do this for you. Not only that they will copy the cont...
{ "domain": "codereview.stackexchange", "id": 16798, "lm_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++, mergesort", "url": null }
quantum-mechanics, quantum-field-theory, symmetry, regularization, quantum-anomalies $$[K_i, P_j] =-i \delta_{ij}m$$ , is realized. ($K_i$ are boosts and $P_i$ are translations $m$ is the mass). This extension was discovered by Bargmann, and sometimes it is called the Bargmann group. A second example, is the realizati...
{ "domain": "physics.stackexchange", "id": 4183, "lm_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, symmetry, regularization, quantum-anomalie...
javascript, html, array, ecmascript-6, lodash.js Title: Generating an HTML table with colspan and rowspan from a one-dimensional array I will be given the following input: const input = [ { value: "a1", colspan: 1, rowspan: 1 }, { value: "a2", colspan: 1, rowspan: 1 }, { value: "a3", colspan: 1, rowspan: 3 }, ...
{ "domain": "codereview.stackexchange", "id": 19966, "lm_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, array, ecmascript-6, lodash.js", "url": null }
quantum-mechanics, energy, operators, wavefunction, schroedinger-equation You can easily calculate $(\frac{\partial \psi(x)}{\partial x})^2$ in these intervals. After integrating, you should get $\frac{\hbar^2 k^2}{mb}$. Plugging the value of $k$ that you got from normalization, you should get the desired expression. ...
{ "domain": "physics.stackexchange", "id": 83706, "lm_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, energy, operators, wavefunction, schroedinger-equation", "url...
complexity-theory, turing-machines, np As an example of how this can be applied to solve an actual problem, consider a NTM solving a SAT problem. A NTM can simply read the logical statement and assign both true and false values to each variable in a separate branch. Finally, every branch can simply read their version ...
{ "domain": "cs.stackexchange", "id": 20144, "lm_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, turing-machines, np", "url": null }
I'm not really sure what to put for this part of the question. It seems like nothing conclusive can be written. Does anyone have any ideas? I hope this helps. Set $\displaystyle f_{n}(\lambda):=\lambda a_{n}+(1-\lambda)b_{n}$ for $\displaystyle \lambda\in[0,1]$, then $\displaystyle f_{n}$ is nondecreasing if $\display...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9626731105140616, "lm_q1q2_score": 0.8123951308827573, "lm_q2_score": 0.8438951104066293, "openwebmath_perplexity": 210.59323617765958, "openwebmath_score": 0.9663999676704407, "ta...
P ( E 1 | S ) = 0 . 95 P ( E 1 | S c ) = 0 . 05 P ( E 2 | S ) = 0 . 90 P ( E 2 | S c ) = 0 . 10 P ( E 1 | S ) = 0 . 95 P ( E 1 | S c ) = 0 . 05 P ( E 2 | S ) = 0 . 90 P ( E 2 | S c ) = 0 . 10 (35) Determine the posterior odds P(H|E1E2)P(Hc|E1E2)P(H|E1E2)P(Hc|E1E2). Should the well be drilled? ### Solution P ( H | E ...
{ "domain": "cnx.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9822877002595527, "lm_q1q2_score": 0.8120688290720511, "lm_q2_score": 0.8267117962054048, "openwebmath_perplexity": 844.3397732013248, "openwebmath_score": 0.4866207242012024, "tags": null, ...
for typical cross section profiles. The formulas are for the rotation angle and deflection at the tip of a cantilever beam 1 under the three loading conditions given in the drawing: a concentrated bending moment at the free end, a concentrated force at the free end, and a uniformly distributed force along the length of...
{ "domain": "on50mm.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9861513873424044, "lm_q1q2_score": 0.8062522083374559, "lm_q2_score": 0.8175744806385542, "openwebmath_perplexity": 989.1310041200337, "openwebmath_score": 0.6327506303787231, "tags": null...
special-relativity, statistical-mechanics, faster-than-light, kinetic-theory Could one strengthen this statement as follows? Even relativistic statistical mechanics (e.g., statistical mechanics which accounts for general relativity) technically allows particles to surpass the speed of light, albeit with vanishing pro...
{ "domain": "physics.stackexchange", "id": 63032, "lm_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, statistical-mechanics, faster-than-light, kinetic-theory", "...
optics, visible-light, interference, diffraction, vision (But of course here we don't have screen but our prying eye) Maybe I'm misunderstanding your question, but the distance $a$ doesn't matter in the sense that if you move the light source farther away, you would still look in the exact same direction to see the di...
{ "domain": "physics.stackexchange", "id": 98601, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "optics, visible-light, interference, diffraction, vision", "url": null }
rviz, xacro Title: Importing mesh .dae file in ros noetic Hello everyone. I am trying to import a mesh(.dae) file into .xacro in (ROS noetic): <geometry> <mesh filename="package://ros_robotics/meshes/l_finger.dae"/> </geometry> but when I want to view model in rviz it gives this error : ERROR 1626525294.722785369: ...
{ "domain": "robotics.stackexchange", "id": 36723, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rviz, xacro", "url": null }
Thus, your question translates to "can one find a function which is weekly continuous on every ball but not weekly continuous". Here is an example: $$\ell^2\to \mathbb{R},\quad (a_n)_{n=1}^\infty \mapsto -\sum_{n=1}^\infty \min\{n-\sum_{k=1}^n |a_k|^2,0\}.$$ Note that on every ball this sum is finite, hence the restric...
{ "domain": "mathoverflow.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9865717442709833, "lm_q1q2_score": 0.8111485646196838, "lm_q2_score": 0.8221891305219504, "openwebmath_perplexity": 71.7338080791856, "openwebmath_score": 0.9610317945480347, "tags"...
\frac{17}{12}\right)$$ Notice that $J_{6}^{1}(20)$ provides a symmetric cover of length $1$ (the length of $I_{6}(20)\,)$ for the 1st $\frac{1}{6}$-portion of $(0,1),$ namely the interval $\left(0, \, \frac{1}{6}\right].$ Also, $J_{6}^{5}(20)$ provides a symmetric cover of length $1$ for the 5th $\frac{1}{6}$-portion o...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9817357216481429, "lm_q1q2_score": 0.8071724308295269, "lm_q2_score": 0.822189121808099, "openwebmath_perplexity": 286.41070740779213, "openwebmath_score": 0.8610159754753113, "tag...
4. ### statistics a bag contains 4 blue marbles,6 red marbles, 10 yellow marbles and 6 green marbles.What is the probability of not drawing a red marble? 1. ### Stat A bag contains 5 red marbles, 9 white marbles, and 5 blue marbles. You draw 4 marbles out at random, without replacement. What is the probability that ...
{ "domain": "jiskha.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9597620596782468, "lm_q1q2_score": 0.803915863181571, "lm_q2_score": 0.8376199653600372, "openwebmath_perplexity": 354.6891216606236, "openwebmath_score": 0.8723703026771545, "tags": null...
quantum-mechanics, wavefunction, atomic-physics, dirac-equation, hydrogen $$ where $$ M=m_{\text{e}}+m_{\text{P}} \ \ \ , \ \ \ \mu=\frac{m_{\text{e}}m_{\text{P}}}{m_{\text{e}}+m_{\text{P}}} $$ are the total and reduced masses, respectively, and $$ f(p,q;x,y)=\left(1+\frac{x^2}{\left(\sqrt{q^2-y^2}+p-|q|\right)^2}\ri...
{ "domain": "physics.stackexchange", "id": 97618, "lm_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, dirac-equation, hydrogen", "url...
c++, c, portability, utf-8 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, ...
{ "domain": "codereview.stackexchange", "id": 216, "lm_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, portability, utf-8", "url": null }
nuclear-physics, neutrons, weak-interaction, protons, electroweak You can see this in the publicly-accessible cross-section data: below the energy of the first nuclear resonance, neutron capture cross sections are proportional to $1/\sqrt E = 1/v$, which means the probability of capture is proportional to the neutron'...
{ "domain": "physics.stackexchange", "id": 40168, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "nuclear-physics, neutrons, weak-interaction, protons, electroweak", "url": null ...
gazebo, ros-fuerte I can't see the object. I tried to select it from the side column "Models". I see where it is... And the I tried to move it. However, when I pulled it up, it just floated in the air and never dropped down. Appreciation for any help Originally posted by Albert K on ROS Answers with karma: 301 on 201...
{ "domain": "robotics.stackexchange", "id": 9495, "lm_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, ros-fuerte", "url": null }
beginner, ruby, programming-challenge, converting Title: Binary convert to string in Ruby This was a challenge for reddit #202 Easy /u/learnprogramming ...I wish that someone reviews my code and let me know your opinion about my way of thinking beacause I am a total beginner in Ruby: class BinaryChar attr_accessor :...
{ "domain": "codereview.stackexchange", "id": 12220, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "beginner, ruby, programming-challenge, converting", "url": null }
ros, kinect, transforms, transform The trouble I am having is figuring out how to modify the pr2_head_action code to account for the fact that the Kinect's RGB frame is well above (and slightly offset from) the pan and tilt servos. For example, suppose I want the Kinect's RGB camera to look straight at a point 1 mete...
{ "domain": "robotics.stackexchange", "id": 5283, "lm_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, kinect, transforms, transform", "url": null }
python player = 'X' if i % 2 == 1 else 'O' ordinates = input() if make_move(field, ordinates, player): # Only change player if a move was successful i += 1 if field.get_state() not in ['Game not finished', 'Impossible']: print(field) print(field.get_state()) break
{ "domain": "codereview.stackexchange", "id": 38359, "lm_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 }
c++, algorithm, a-star Title: A* implementation I wrote a little A* implementation by my own and would like to have some feedback ;) The code is in OOP way, thus we can use an other pathfinding algorithm easily. The "Base" is just the interface class, thus is should not matter here. Before we look at the code, let me ...
{ "domain": "codereview.stackexchange", "id": 18288, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, algorithm, a-star", "url": null }
audio, sound, signal-synthesis Title: Controlling one signal with another one (Rocket engine effect - Subtractive synthesis of sound) I am programming some sound effects in Java and exporting them into .wav files. Currently, I am trying to program a rocket engine sound effect. I want to do it in the following way: The...
{ "domain": "dsp.stackexchange", "id": 2762, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "audio, sound, signal-synthesis", "url": null }
python, algorithm print('iterations: ', iterations) print('been in deadend: ', in_deadend ) pixels[0, random.randrange(1, width-1, 2)] = 255 pixels[height-1, random.randrange(1, width-1, 2)] = 255 print("\ncreated in %.5f" % (time.time() - start)) size = int(width * 10), int(height * 10)
{ "domain": "codereview.stackexchange", "id": 43674, "lm_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 }
acceleration Title: Calculate distance to start deceleration to stop at a point I am trying to program a game where I want an object to accelerate up to a point and the start decelerating so that it comes to a stop at point 0. Given that I know the Velocity and Position, Acceleration is constant(acceleration and decel...
{ "domain": "physics.stackexchange", "id": 45472, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "acceleration", "url": null }
### Show Tags 04 Mar 2018, 05:52 What indicates that the worker made 17 trips while carrying just 4 jugs? The question only specifies that he made 17 trips while carrying them in cartons. Posted from my mobile device Intern Joined: 15 Oct 2016 Posts: 28 Re: A worker carries jugs of liquid soap from a production line ...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. Yes\n2. Yes\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9556514186046016, "lm_q1q2_score": 0.800472700400398, "lm_q2_score": 0.8376199572530448, "openwebmath_perplexity": 7971.284180571158, "openwebmath_score": 0.6637788414955139, "tags": ...
tree of G, whose largest edge weight is minimum over all spanning trees of G.We say that the value of the bottleneck spanning tree is the weight of the maximum-weight edge in T – A MST (minimum spanning tree) is necessarily a MBST, but a MBST is not necessarily a MST. Even if Democrats have control of the senate, won't...
{ "domain": "com.br", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9755769106559808, "lm_q1q2_score": 0.8150784460331487, "lm_q2_score": 0.8354835350552603, "openwebmath_perplexity": 940.2938443740902, "openwebmath_score": 0.3927384912967682, "tags": nul...
html, css body { background-color: #444; } #main { color: #efefef; display: flex; flex-direction: column; align-items: center; margin: 0px 5%; } #img-div { background-color: #ff3c00; display: flex; flex-direction: column; justify-conent: flex-end; align-items: center; padding: 0px 0px 0px; } ...
{ "domain": "codereview.stackexchange", "id": 45552, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "html, css", "url": null }
ros-kinetic The following packages have unmet dependencies: ros-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed Depends: ros-kinetic-perception but it is not going to be installed Depends: ros-kinetic-simulators but it is ...
{ "domain": "robotics.stackexchange", "id": 31887, "lm_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 }
discrete-signals, z-transform, transfer-function, control-systems, stability Title: Transient response of system with single pole $0 \le p < 1$ $G(z) = \frac{1-p}{z-p}$ If the value of p satisfies $ 0 \leq p < 1$ there are no oscillations in the transient response. Why is that $\uparrow$ true? I know roughly what ...
{ "domain": "dsp.stackexchange", "id": 5928, "lm_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, z-transform, transfer-function, control-systems, stability", "url":...
quantum-field-theory, renormalization Also I've seen the contraction of fields talked about with regards to integrating out, what is the role of these contractions when integrating out? Contracting fields seems the best means of making a particular field disappear from the equations we consider! The "integration" we r...
{ "domain": "physics.stackexchange", "id": 7267, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-field-theory, renormalization", "url": null }
strings, ruby, datetime the else returns an empty string, why? it's better if it returns nil. Check String#squish. To sum it up, I'd write the first method like this: def date_string(options = {}) format = ["%B %e", *(", %Y" if options[:year])].join date.strftime(format).squish end Just as a side note: does it m...
{ "domain": "codereview.stackexchange", "id": 2874, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "strings, ruby, datetime", "url": null }
c++, multithreading, c++11, primes, sieve-of-eratosthenes I was pretty sure that I would get some problems due to parallelism, but for some reason, it seems to work. I got the expected results in the right order. Just to be sure, I would like to know whether my program is or correct or whether it has some threading is...
{ "domain": "codereview.stackexchange", "id": 7037, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, multithreading, c++11, primes, sieve-of-eratosthenes", "url": null }
2 0.1746 3 0.2532 4 0.3099 5 0.3459 6 0.3581 7 0.3856 8 0.3927 9 0.3866 10 0.3717 11 0.366 12 0.3382 13 0.3227 14 0.2918 15 0.263 16 0.2228 17 0.1908 18 0.149 19 0.0969 20 0.0474 These are the fraction of times the best partner is selected out of 10000 simulations for each $r$ from 2 to 20. You will notice that the f...
{ "domain": "blogspot.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9546474155747541, "lm_q1q2_score": 0.8114227879685589, "lm_q2_score": 0.8499711775577735, "openwebmath_perplexity": 392.9481583328906, "openwebmath_score": 0.8286980986595154, "tags": n...
java, beginner, object-oriented, console, dice Title: Simple console dice game, trying to roll two of the same number I'm a young and beginner Java programmer and I'm starting to learn again Java (used it in the past years at school) since I want to enter a competition and (hope to) win for getting a job. I wanted to ...
{ "domain": "codereview.stackexchange", "id": 29004, "lm_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, console, dice", "url": null }
c, linked-list, console, database, edit-distance size_t last_name_token_length; size_t first_name_token_length; size_t telephone_number_token_length; size_t telephone_contact_id_length; output_table_strings* output_table; /* The format string used to output the actual telephone book records. */ ...
{ "domain": "codereview.stackexchange", "id": 22265, "lm_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, console, database, edit-distance", "url": null }
functional-programming, compilers, encoding, church-turing-thesis We need a way of describing machines that is as simple as possible. Here Gödel's idea was important: he showed some years before Turing that all sorts of things in logic (formulas, proofs) could be encoded with numbers, and then manipulated within arith...
{ "domain": "cstheory.stackexchange", "id": 3604, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "functional-programming, compilers, encoding, church-turing-thesis", "url": null ...
c++, template-meta-programming, c++17 template<std::size_t... I> constexpr auto tuple_of_sequence(std::index_sequence<I...>) { return std::make_tuple(I...); } template<std::size_t rows, std::size_t cols, class Func> constexpr auto make_array_alternative(Func&& func) { using result_array = std::array<std::invo...
{ "domain": "codereview.stackexchange", "id": 28462, "lm_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++, template-meta-programming, c++17", "url": null }
python, json, file, csv line = tokenize(line) if len(line) != 5: return None full_name = (line[0], line[1]) if not is_name(full_name): return None entry = { "color": "", "firstname": "", "lastname": "", "phonenumber": "", "zipcode": ""} config = ["","","...
{ "domain": "codereview.stackexchange", "id": 25061, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, json, file, csv", "url": null }
c++, c++11, coordinate-system, clustering vector<Point> nearestN(const vector<Point>& points, int N) { if (points.size() == 0) { vector<Point> empty; return empty; } return nearestN(points, N, points[0], INFINITY); } vector<Point> nearestN(const vector<Point>& p...
{ "domain": "codereview.stackexchange", "id": 16357, "lm_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, coordinate-system, clustering", "url": null }
differentiation, fermions, grassmann-numbers, anticommutator, superalgebra We can correct eq. (3.197) in at least 2 ways:
{ "domain": "physics.stackexchange", "id": 76036, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "differentiation, fermions, grassmann-numbers, anticommutator, superalgebra", "ur...
radiation, vacuum, space, wavelength, radio Title: What's the maximum distance that a radio wave can travel at full power If the sun is eight minutes away if you are travelling at the speed of light, since that's how long it would take for people to notice if the sun had stopped shining, how far can a short-wave radio...
{ "domain": "physics.stackexchange", "id": 47171, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "radiation, vacuum, space, wavelength, radio", "url": null }
engineering-history, aerospace-engineering, aircraft-design Title: Did Otto Lilienthal ever experiment with non-human-powered aircraft? Otto Lilienthal, sometimes hailed as the first aviator, became famous for his many gliders, which pioneered new experiments in aeronautics. However, powered aircraft didn't take off -...
{ "domain": "engineering.stackexchange", "id": 30, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "engineering-history, aerospace-engineering, aircraft-design", "url": null }
ros, ros-melodic, ubuntu, std-msgs, rosserial Title: std_msgs types and 'normal' type Hi I want to display a variable on a topic. Therefore I need to transform my variable from an volatile unsigned long to an std_msgs type (for example UInt64). This gives following error: no match for 'operator=' (operand types are '...
{ "domain": "robotics.stackexchange", "id": 32150, "lm_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, ubuntu, std-msgs, rosserial", "url": null }
bond, isotope As stated earlier, we can also use $k_e$ as a measure for the bond strength. The larger the value of $k_e$, the steeper the harmonic part of the potential well and the more localized the nuclear wavefunctions will be. In other words, if we take $k_e$ as a measure of bond strength, then stronger bonds are...
{ "domain": "chemistry.stackexchange", "id": 8695, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "bond, isotope", "url": null }
python, python-3.x, time-limit-exceeded, numpy, clustering Code not shown (but available upon request): The task is to read the data into lists (list1 -> times in years, list2 -> times in months, ..., list8 -> observed speeds, ... ). Then, the data lists are sliced in the time region of interest. Then, all times are c...
{ "domain": "codereview.stackexchange", "id": 26027, "lm_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, time-limit-exceeded, numpy, clustering", "url": null }
waves, pressure, acoustics So yes, both barometers and microphones use displacements to measure pressures. But as sensors they have vastly different specifications. That said, since they're both pressure sensors, I'm sure technological developments in barometers have influenced microphone designs and vice-versa.
{ "domain": "physics.stackexchange", "id": 91306, "lm_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, pressure, acoustics", "url": null }
The help page states the following about the algorithm: Algorithms The [code ]fzero[/code] command is a function file. m Algorithm 4. Graphical method useful for getting an idea of what's going on in a problem, but depends on eyeball. You may not use MATLAB's built-in functions for finding roots -- instead, please impl...
{ "domain": "ac-immacolata.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9843363499098283, "lm_q1q2_score": 0.8516715152979666, "lm_q2_score": 0.8652240825770432, "openwebmath_perplexity": 622.7896160604779, "openwebmath_score": 0.4754257798194885, "tags...
an interesting paper on how some standard tests for chaos fail to distinguish chaos from stochasticity (Stochastic neural network…. A ''dynamical system'' consists of ''states'' and a ''rule'' giving the present state in terms of past states. See Strogatz, chapter 10, paragraphs 10. The auto-correlation function is one...
{ "domain": "eccellent.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9808759610129463, "lm_q1q2_score": 0.8042136637923, "lm_q2_score": 0.819893335913536, "openwebmath_perplexity": 1483.599632833718, "openwebmath_score": 0.6984260678291321, "tags": null,...
complexity-theory, logic, complexity-classes, randomized-algorithms, randomness What should Adleman's theorem have looked like if it indeed showed $BPP\subseteq NP$ and what should Sipser Gacs' theorem have looked like if it indeed showed $BPP\subseteq coNP/poly$? Adleman's theorem states that you can amplify the succ...
{ "domain": "cs.stackexchange", "id": 10459, "lm_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, logic, complexity-classes, randomized-algorithms, randomness", "ur...
python, object-oriented, python-3.x class ComparisonTest: COMPARATORS = { 'less': operator.lt, 'more': operator.gt, 'lesser': operator.le, 'greater': operator.ge, } def __init__(self, comparison, threshold): try: self._func = lambda n: self.COMPARATORS[c...
{ "domain": "codereview.stackexchange", "id": 32209, "lm_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, object-oriented, python-3.x", "url": null }
quantum-mechanics, terminology Title: Valley meaning explanation for foreigner English is not my native language and I have some hard time translating this word. I was searching in couple dictionaries(both paper and online) and could not find it. Could anyone provide me definition of word "Valley". example usage: Su...
{ "domain": "physics.stackexchange", "id": 12251, "lm_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, terminology", "url": null }
ros, moveit, moveit-setup-assistant The problem seems to be caused by certain .stl meshes that are used. These meshes can be used as collision link elements, but not as visual link elements. If these specific meshes are not loaded the error doesn't occur. Has someone experienced something similar? What might cause thi...
{ "domain": "robotics.stackexchange", "id": 25659, "lm_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, moveit, moveit-setup-assistant", "url": null }
optics, gravitational-waves, interferometry $$\Delta L \sim \frac{\lambda}{\sqrt{N}},$$ where $\lambda$ is the wavelength of the light and $N$ is the number of photons collected during one GW cycle. To get an intuitive feel why this is, lets think about why with one photon your resolution is about one wavelength. If y...
{ "domain": "physics.stackexchange", "id": 79155, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "optics, gravitational-waves, interferometry", "url": null }
"10th Grade Math MCQs: Multiple Choice Questions and Answers (Quiz & Tests with Answer Keys)" provides practice tests for competitive exams. If tan θ = √3. Multiple choice trivia questions are lined questions. Open Digital Education. Trigonometry Final Exam: Multiple Choice Practice Directions: Read each question caref...
{ "domain": "casaralli-allevamento.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9828232909876816, "lm_q1q2_score": 0.8211326754760375, "lm_q2_score": 0.8354835330070839, "openwebmath_perplexity": 1886.9795827056453, "openwebmath_score": 0.465090543031...
trees, recurrence-relation We can also find a function that decreases slower, for example $$f_2(n) = 2\sqrt{n} \geq \sqrt{n-1} + 2 = f(n) \quad \forall n \geq 4$$ Thus with $f_1(n) \leq f(n) \leq f_2(n)$ we can construct two other recurrences based on these new functions: $$\begin{align*} T_1(n) & = 2T_1(\sqrt{n}) + 1...
{ "domain": "cs.stackexchange", "id": 13650, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "trees, recurrence-relation", "url": null }
general-relativity, dark-matter, galaxies, galaxy-rotation-curve Title: Galaxy Rotation Speeds and General Relativity Is it true that the predictions from the General Theory of Relativity don’t match the observations of galaxy rotation speeds, and that this then started the search for dark matter? Is it only the rotat...
{ "domain": "physics.stackexchange", "id": 97433, "lm_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, dark-matter, galaxies, galaxy-rotation-curve", "url": null }
machine-learning, classification, data-mining, recommender-system, ranking Title: Calculate a ranking function from classification features I am using 3 features (x1, x2, x3) for binary classification. All my feature values are in 0 to 1 range (unit range). I obtained how important each feature was in classification a...
{ "domain": "datascience.stackexchange", "id": 6605, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machine-learning, classification, data-mining, recommender-system, ranking", ...
electrostatics, newtonian-gravity, electric-fields, charge, potential-energy Title: Potential energy in a field and potential energy between two objects? (Electrostatics and Gravitation) What is the difference between the electrostatic potential energy of a charge immersed in an electrostatic field and the potential e...
{ "domain": "physics.stackexchange", "id": 63842, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electrostatics, newtonian-gravity, electric-fields, charge, potential-energy", "...
java, performance, array, recursion I wrote this method and I'm trying to figure out the runtime for it but I'm not sure how to handle the loop and the recursion. Assume the length of array a is > 0. int numNegatives(int[] a){ if(a.length == 1){ if(a[0] < 0){ return 1; } else { return 0; } } ...
{ "domain": "codereview.stackexchange", "id": 31287, "lm_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, performance, array, recursion", "url": null }