text
stringlengths
49
10.4k
source
dict
ros, ros2, tf2, clock, transform Title: Time synchronization approaches I have a simple rover using ROS2 Foxy with a lidar running on Raspberry Pi and the rest of the stack running on Ubuntu PC (localization, navigation and odometry). AMCL is complaining about extrapolation into the future as soon as I turn on the Li...
{ "domain": "robotics.stackexchange", "id": 36500, "lm_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, tf2, clock, transform", "url": null }
lab-techniques, mutations, biostatistics, protein-engineering NNK = 32 combinations, 50 mutants (n=32, k=50): $p_{all}$ < 0.07% NNK = 32 combinations, 100 mutants (n=32, k=100): $p_{all}$ < 25.5% NNK = 32 combinations, 200 mutants (n=32, k=200): $p_{all}$ < 94.6% As you can see there's a sharp transition as the cover...
{ "domain": "biology.stackexchange", "id": 11251, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "lab-techniques, mutations, biostatistics, protein-engineering", "url": null }
ros, python, ros-kinetic I need it works like this code but using while loop, I don't know if it is possible or not in ROS? Here I put hs = 50 #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import absolute_import import rospy import cv2 from std_msgs.msg import String, Fl...
{ "domain": "robotics.stackexchange", "id": 36097, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, python, ros-kinetic", "url": null }
ros, roslaunch, rosparam, startup From roslaunch/XML/rosparam, section 1. <rosparam> tag: The load command is considered additive: if you declare a dictionary or namespace of parameters, those parameters will be added to any other parameters declared for that namespace. Similarly, load commands can override parameter...
{ "domain": "robotics.stackexchange", "id": 20349, "lm_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, roslaunch, rosparam, startup", "url": null }
the-sun, observational-astronomy The green line is the meridian, the orange(ish) lines are alt/az coordiantes, the blue line is the celestial equator, and the red line is the path of the ecliptic. Hopefully you can make this out sufficiently well.
{ "domain": "astronomy.stackexchange", "id": 171, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "the-sun, observational-astronomy", "url": null }
ros, slam, navigation, rosbag, winros Title: ROSBAG on Windows/WinROS Hello Guys, I recently used RGBD Slam for my project from my Ubuntu Machine and it did work great. Really Cool Stuff. However i have both the Kinect for XBox and Kinect for Windows. I want to use the Kinect for Windows as it has a Near Mode capabil...
{ "domain": "robotics.stackexchange", "id": 13915, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, slam, navigation, rosbag, winros", "url": null }
inorganic-chemistry, nomenclature, coordination-compounds $\ce{CaCl2.8NH3} \equiv \quad$ calcium chloride—ammonia (1/8) Therefore the systematic names for the compound $\ce{[Co(NH3)5Cl]Cl2.NH3}$ would be: pentaamminechloridocobalt(III) chloride—ammonia (1/1) pentaamminechloridocobalt(3+) chloride—ammonia (1/1) pent...
{ "domain": "chemistry.stackexchange", "id": 15566, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "inorganic-chemistry, nomenclature, coordination-compounds", "url": null }
# Functions continuous in each variable Suppose we have a map $f:X \times Y \rightarrow Z$, where $X,Y$, and $Z$ are topological spaces. Are there any conditions on $X$,$Y$, and $Z$ that would allow one to determine that $F$ is continuous if it was known that it was continuous in each variable? It seems like there sho...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9748211612253742, "lm_q1q2_score": 0.8452048045196542, "lm_q2_score": 0.8670357580842941, "openwebmath_perplexity": 279.1477123817055, "openwebmath_score": 0.9342783093452454, "tag...
- Yes I guess induction is the way. Thank you so much. –  TheNotMe Mar 10 '14 at 21:01 This is related to the subject of rearrangement inequalities. Suppose that we have real numbers $x_1,x_2,\ldots,x_k$, without loss of generality assume that $x_1\le x_2\le\cdots\le x_k$. Let $y_1,y_2,\ldots,y_k$ be real numbers. If...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9780517424466175, "lm_q1q2_score": 0.815034568420014, "lm_q2_score": 0.8333245911726382, "openwebmath_perplexity": 142.33064123896355, "openwebmath_score": 0.9235609173774719, "tag...
javascript, jquery, animation there's a light and a dark version of an image on mouse over the dark version should fade in on mouse out the dark version should fade out Now, my question is: What do you need all the JavaScript for? You can achieve this easily with CSS only - no need for jQuery or GSAP: .painpoint { ...
{ "domain": "codereview.stackexchange", "id": 29679, "lm_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, animation", "url": null }
fft, discrete-signals, sampling 0 ~~~~, ~~~ \text{otherwise} \tag{2}\\ \end{cases}$$ Now, we shall take every $M^{th}$ sample of $x_s[n]$ and discard the rest, which is called as the compression operation as graphically represented by: $$ x_s[n] \longrightarrow \boxed{\downarrow M} \longrightarrow x_s[Mn]=x[Mn]=x_M[n]...
{ "domain": "dsp.stackexchange", "id": 4001, "lm_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, discrete-signals, sampling", "url": null }
special-relativity, photons, speed-of-light Title: Relative speed between two photons Is it possible to fix an inertial frame to a photon moving in vacuum? If yes, what is the speed of another photon moving in vacuum with respect to this frame? What is the proper time measured by the second photon between two events? ...
{ "domain": "physics.stackexchange", "id": 94183, "lm_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, photons, speed-of-light", "url": null }
general-relativity, differential-geometry, metric-tensor, coordinate-systems $$ds^2 = f(r)~\left(dt^2 - dr^{*2}\right) - r^2~d\Omega^2$$ where $r^* = r+2M ~\ln~\left|\dfrac{r}{2GM}-1\right|$ in natural choice of units, $c=1$. [If you want to know that why we write $f(r) = \left(1-\dfrac{2GM}{r}\right)$ in terms of $r$...
{ "domain": "physics.stackexchange", "id": 92899, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "general-relativity, differential-geometry, metric-tensor, coordinate-systems", "...
• Even less work is needed: $$\pmatrix{3&1&2}\cdot H\cdot\pmatrix{0\\2\\1}.$$ 12 multiplications and 8 additions. Sep 6, 2018 at 15:40 • @celtschk You are totally right. I'll edit this Sep 6, 2018 at 15:58 • How are you counting to get the $12$ multiplications and $8$ additions? Sep 7, 2018 at 11:00 • Multiplying $H$ w...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.985718064816221, "lm_q1q2_score": 0.8277409435510963, "lm_q2_score": 0.8397339696776499, "openwebmath_perplexity": 455.53493761441376, "openwebmath_score": 0.842114269733429, "tags...
orbit, earth, climate Title: Why don't we have 2 Summers and 2 Winters? Due to Earth's elliptical orbit, its distance from Sun varies by almost 5 million Kilometers (147 million Kilometers at closest point & 152 million Kilometers at farthest point, i.e. almost 3% of the average distance). As evident from the fact tha...
{ "domain": "astronomy.stackexchange", "id": 471, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "orbit, earth, climate", "url": null }
-Dan 6. thank you as helped me a great deal 7. Originally Posted by topsquark $\int \frac{x^2}{x + 1} dx$ This is the simplest method $\int\frac{x^2}{x+1}\,dx=\int\frac{x^2-1}{x+1}\,dx+\int\frac1{x+1}\,dx=\int(x-1)\,dx+\int\frac1{x+1}\,dx$ Regards. K.
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9912886145128631, "lm_q1q2_score": 0.8150267283816104, "lm_q2_score": 0.8221891348788759, "openwebmath_perplexity": 2797.5241179054224, "openwebmath_score": 0.838803231716156, ...
python, python-2.x, file, io return content Using with is a good idea, but I'm not sure if you understood what it does. with automatically ensures that a file is always closed safely. So even if the script encounters an error then you'll close it. This means that you only need to catch an error if the file doesn't ex...
{ "domain": "codereview.stackexchange", "id": 16530, "lm_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-2.x, file, io", "url": null }
homework-and-exercises, newtonian-mechanics, forces, energy, work Title: A man carries an object in two different ways. In which will work done be greater? The man is carrying a mass of 15 kg over a distance of 2 meters. I think that in case(i) the work done would be greater as both the force applied and displacement ...
{ "domain": "physics.stackexchange", "id": 65712, "lm_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, energy, work", "url": null ...
newtonian-mechanics Title: A vehicle moves from rest to a certain distance. Would the distance time graph always be curved? A vehicle moves from rest to a certain distance. Would the distance time graph always be curved ? Why cannot it be a straight line ? For example, a car moving from rest to 100m, with a constant ...
{ "domain": "physics.stackexchange", "id": 15175, "lm_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", "url": null }
temperature, material-science, radiation No, the temperature doesn;t even get near 400x that of earth. Thankfully. As far as I know, no material would remain solid at such a temperature. I'm not sure what a death ray is Do you mean to ask why the water does not evaporate? I know nothing about the engineering design ...
{ "domain": "physics.stackexchange", "id": 84746, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "temperature, material-science, radiation", "url": null }
c# using (var db = new CMMSEntity()) { foreach (var a in db.sumvanta) { if (a.egkatastasi == egk && a.eidosSumvan == typosSumvan) { listaSumvantwn.Add(readFromTable(a)); ...
{ "domain": "codereview.stackexchange", "id": 15481, "lm_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#", "url": null }
### Show Tags 04 Jun 2009, 10:32 1 KUDOS bb wrote: Bump Can you make this post Sticky? _________________ Smiling wins more friends than frowning CEO Joined: 17 Nov 2007 Posts: 3580 Concentration: Entrepreneurship, Other Schools: Chicago (Booth) - Class of 2011 GMAT 1: 750 Q50 V40 Followers: 480 Kudos [?]: 2750 [0]...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9755769099458927, "lm_q1q2_score": 0.825281910876085, "lm_q2_score": 0.845942439250491, "openwebmath_perplexity": 8482.512840612635, "openwebmath_score": 0.3869166672229767, "tags": nul...
Polynomial coefficients and distribution of the sum of discrete uniform variables by Caiado, C.C.S. and Rathie, P.N. provides this definition and a recurrence relation to compute this number. As the title suggests, it also provides a direct solution to your probability problem. If $Y = \sum_{i=0}^n X_i$ where each $X_i...
{ "domain": "codidact.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9838471613889295, "lm_q1q2_score": 0.8155490872956171, "lm_q2_score": 0.8289388019824946, "openwebmath_perplexity": 392.51116231113696, "openwebmath_score": 0.838989794254303, "tags": n...
javascript, performance, algorithm, tree, json {"d":2,"t":"div","a":{"class":"ro di-2 a120 a220 a319 a419 a518 a618 a718 sq-1 r113"}}, {"d":3,"t":"h4","a":{"class":"ro s14 mv-3 fw-6 tx-1"},"x":" Finance"}, {"d":3,"t":"div","a":{"class":"ro a120 a220 a320 a420 a520 a620 a720 br-2"}}, ...
{ "domain": "codereview.stackexchange", "id": 33697, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, performance, algorithm, tree, json", "url": null }
optics, water, air, bubbles Title: Why are we able to see air bubbles under water? Title is self explanatory. I'm assuming both water and air are transparent. So, if they are true, how can I clearly distinguish an air bubble under water? Air and water are both transparent to a good enough approximation. However, ligh...
{ "domain": "physics.stackexchange", "id": 54352, "lm_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, water, air, bubbles", "url": null }
= \sqrt{\frac{1+0.999,465}{2}} \approx 0.999,866\\ \cos(0.46875^\circ) = \cos(\frac{0.9375^\circ}{2})=\sqrt{\frac{1+\cos(0.9375)}{2}} = \sqrt{\frac{1+0.999,866}{2}} \approx 0.999,966\\$$
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9748211575679041, "lm_q1q2_score": 0.8434387417333811, "lm_q2_score": 0.8652240825770432, "openwebmath_perplexity": 397.9166247620446, "openwebmath_score": 0.6502864956855774, ...
node.js, api, asynchronous, promise Title: Node.js package that retrieves data from an API, formats it and sends it out via email to a distribution list I've created a Node.js package that retrieves data from Icinga (a monitoring platform), formats it and passes it off to a class that generates some HTML and then send...
{ "domain": "codereview.stackexchange", "id": 39412, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "node.js, api, asynchronous, promise", "url": null }
game, objective-c, ios I don't understand these two public properties: @property BOOL isPaused; @property BOOL hasTowerChanged; The seem odd. First of all, isPaused straight up isn't used at all in the entire class. And it's fine for a property to not be used. Take the tag property of UIView for example. It's not ...
{ "domain": "codereview.stackexchange", "id": 6806, "lm_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, objective-c, ios", "url": null }
1. Find the exact rate of change function, $r_p(x)$, for each function $p(x)$ shown below. Check your derivation by graphing it along with the graph of p’s approximate rate function. 1. $p(x)=4(3x-8)^6+\sin(4\cos(x^5)+x^3-8)$ 2. $p(x)=\cos(-(\sin(x))^2-\cos(x))$ 3. $p(x)=\frac{1}{4}(\cos(x^2-4x+8))^8$ 2. Suppose yo...
{ "domain": "patthompson.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9899864276041908, "lm_q1q2_score": 0.822820336777314, "lm_q2_score": 0.8311430478583168, "openwebmath_perplexity": 486.6490195661937, "openwebmath_score": 0.9101719856262207, "tags":...
# DeMoivre's Theorem • December 25th 2010, 06:22 AM ironz DeMoivre's Theorem I need to find the real and imaginary values of z^5, when z = 2-2i I got r = 2 sqrt(2) and theta = -pi/4 However now I am stuck. I tried to put it into the form r^k e^(i k theta) and got (2 rt(2)) ^5 * e^(-5pi/4) but then I don't know what...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9693241956308278, "lm_q1q2_score": 0.8258184626615449, "lm_q2_score": 0.8519528000888386, "openwebmath_perplexity": 512.6315302996521, "openwebmath_score": 0.8884896636009216, "tag...
quantum-mechanics, newtonian-mechanics, forces, classical-mechanics Title: Does a particle exert force on itself? We all have elaborative discussion in physics about classical mechanics as well as interaction of particles through forces and certain laws which all particles obey. I want to ask,Does a particle exert a f...
{ "domain": "physics.stackexchange", "id": 58758, "lm_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, newtonian-mechanics, forces, classical-mechanics", "url": nul...
image-processing Title: How to detect, using matlab, the center of the biggest circle? The goal is to preprocess an image in a way that outside the circle isn't in the region-of-interest so set its value to 0 (black). That way the followed step of segmentation will be easier to analyze all the blobs that exists inside...
{ "domain": "dsp.stackexchange", "id": 1605, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "image-processing", "url": null }
electrochemistry, water, electrolysis To give the "method" you ask about some real world numbers, at the very end of the Wiki page the energy efficiency for industrial water electrolysis is cited as usually between 50 and 80 %. The paper then proposes to burn the gas in an internal combustion machine. As such a stati...
{ "domain": "chemistry.stackexchange", "id": 8959, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electrochemistry, water, electrolysis", "url": null }
ros, nav-msgs box_force_.force.x = u1; //u1_act*cos(psi); box_force_.force.y = 0; //u1_act*sin(psi); box_force_.torque.z = u2; //! Publish the message box_force_pub_.publish(box_force_); // out to screen //if (time < 10) std::cout << critic << " "...
{ "domain": "robotics.stackexchange", "id": 8528, "lm_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, nav-msgs", "url": null }
classification, neural-network, tensorflow Title: Is it possible using tensorflow to create a neural network that maps a certain input to a certain output? I am currently playing with tensorflow, but can't seem to get a hold whether it usefull for my problem? I need to create a neural network, that is capable of mappi...
{ "domain": "datascience.stackexchange", "id": 1161, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "classification, neural-network, tensorflow", "url": null }
How do I solve this improper integral: $\int_{-\infty}^\infty e^{-x^2-x}dx$? I'm trying to solve this integral: $$\int_{-\infty}^\infty e^{-x^2-x}dx$$ WolframAlpha shows this to be approximately $2.27588$. I tried to solve this by integration by parts, but I just couldn't get there. I'd be glad if someone could show m...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9843363485313248, "lm_q1q2_score": 0.8405373630345521, "lm_q2_score": 0.8539127548105611, "openwebmath_perplexity": 340.92706991712583, "openwebmath_score": 0.9612738490104675, "ta...
microcontroller, gazebo Title: Failed to load joint-controller Hi! Cannot load my new controller to gazebo model. RXCONSOLE shows this message: Node: /gazebo Time: 189.929000000 Severity: Error Location: /home/robot/peter_workspace/sandbox/controller/src/robocv_controller_file.cpp:MyControllerClass::init:16 Published...
{ "domain": "robotics.stackexchange", "id": 10806, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "microcontroller, gazebo", "url": null }
electrostatics Title: X-rays through a Gold Leaf Electroscope What will happen when X-rays are passed through a non-evacuated GLE? My teacher said that “The leaves would collapse due to ionization of air”. What does this mean? X-rays 'knock' one or more electrons from some of the air molecules, so the air is now partl...
{ "domain": "physics.stackexchange", "id": 45649, "lm_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", "url": null }
quantum-mechanics, density-operator, bloch-sphere Title: How to write an arbitrary qubit density operator? Physics noob here: I am reading the Wikipedia on Density Matrices (https://en.wikipedia.org/wiki/Density_matrix), and in the section labeled "Pure and mixed states", it states "An arbitrary state for a qubit can...
{ "domain": "physics.stackexchange", "id": 87757, "lm_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, density-operator, bloch-sphere", "url": null }
c++, linked-list This way a caller can simply instantiate a linked_list and start inserting nodes. Give Your Class Some Privacy You've done the right thing by making head and tail private. That prevents a user of this class from messing them up. It seems like insert_beginning(), insert_middle(), and insert_end() shoul...
{ "domain": "codereview.stackexchange", "id": 28230, "lm_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", "url": null }
ros, kinect, 3d-object-recognition, roboearth Title: roboearth: fails to detect object when receiving point cloud Hi, I'm using ros-electric-turtlebot running the roboearth. After building up a 3D model, I use the re_kinect_object_detector to detect the object. The first time the re_kinect_object_detector node receiv...
{ "domain": "robotics.stackexchange", "id": 8614, "lm_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, 3d-object-recognition, roboearth", "url": null }
objective-c NSLog(@"Error: %@ %@", error, [error userInfo]); } }]; [self.healthStore executeQuery:query]; dispatch_semaphore_wait(lock, DISPATCH_TIME_FOREVER); if (success) result = UIBackgroundFetchResultNewData; }; ...
{ "domain": "codereview.stackexchange", "id": 13678, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "objective-c", "url": null }
Recall also $\mathbb{CP}^1=\{[z:w]\mid z\neq 0\text{ or }w\neq 0\},$ with $[z:w]$ denoting the line through the origin and $(z,w)\in\mathbb{C}^2$. The typical charts are $(U_1,\psi_1)$ and $(U_2,\psi_2)$ where $U_1=\{[z:w]\mid z\neq 0\}$, $U_2=\{[z:w]\mid w\neq 0\}$, $$\psi_1[z:w]=wz^{-1}\in\mathbb{C}\cong\mathbb{R}^2\...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9845754465603678, "lm_q1q2_score": 0.8204709294457676, "lm_q2_score": 0.8333245891029456, "openwebmath_perplexity": 130.59513571849922, "openwebmath_score": 0.9690307378768921, "ta...
equinox Now, this was all calculated with the mean sun. One needs the true Sun position for the sub-solar point. This is expressed by the equation of time which varies over the course of the year by several minutes and is visible by the analemma if you take a combined photo of the Sun at always exactly the same time-o...
{ "domain": "astronomy.stackexchange", "id": 7026, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "equinox", "url": null }
I don't know if the factor of $W$ can be eliminated. If $W$ is large, this can be improved to $O(nm \lg W)$ time. The basic primitive we need is: Given an array $B[1..m]$ and $W$, preprocess $B$ so that we can efficiently answer queries "compute $\min\{B[i],B[i+2],\dots,B[i+W-1]\}$". Here's how to do that. Assume fi...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9719924802053235, "lm_q1q2_score": 0.8141603115397673, "lm_q2_score": 0.8376199694135332, "openwebmath_perplexity": 296.2057247831685, "openwebmath_score": 0.7918407320976257, "tag...
ros, rosout, ros-info, logging imu.orientation_covariance[0] = -1; // orientation data is on a separate topic imu.linear_acceleration.x = data.accel[0] * kEarthGravity; imu.linear_acceleration.y = data.accel[1] * kEarthGravity; imu.linear_acceleration.z = data.accel[2] * kEarthGravity; imu.angular_velo...
{ "domain": "robotics.stackexchange", "id": 27815, "lm_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, rosout, ros-info, logging", "url": null }
java, minesweeper // display all lines for (int i = 0; i < maxLength; i++) { if (i < 10) { System.out.print(i + " "); } else { System.out.print(i + " "); } for(int j = 0; j < maxLength; j++) { System.out.print...
{ "domain": "codereview.stackexchange", "id": 29580, "lm_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, minesweeper", "url": null }
c++, algorithm, object-oriented, c++11, interview-questions While that may look pretty to some people, and perhaps you use an IDE or other code formatter that does that automatically, in my experience, it simply creates a maintenance headache because another programmer (who perhaps is not using your same tools) who mo...
{ "domain": "codereview.stackexchange", "id": 24853, "lm_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, object-oriented, c++11, interview-questions", "url": null }
species-identification, arachnology Title: What is the identity of this spider from India? I came across this strange guy today at my classroom in Tamil Nadu, India. It is a spider which is not very much bigger than an ant but with an artistic body. He has 8 legs, but the two on the front are raised above his head, j...
{ "domain": "biology.stackexchange", "id": 7848, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "species-identification, arachnology", "url": null }
We begin with the product representations $${2n\choose n}{1\over 2^{2n}}={1\over 2n}\prod_{j=1}^{n-1}\left(1+{1\over 2j}\right)=\prod_{j=1}^n\left(1-{1\over2j}\right),\quad n\geq1.$$ From $$\prod_{j=1}^{n-1}\left(1+{1\over 2j}\right)^{\!\!2}=\prod_{j=1}^{n-1}\left(1+{1\over j}+{1\over 4j^2}\right)\geq \prod_{j=1}^{n-1...
{ "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.832480242977309, "lm_q2_score": 0.8479677622198946, "openwebmath_perplexity": 604.4829443165287, "openwebmath_score": 0.9760469198226929, "tags...
c++, game // find the player auto player_room{ std::find_if(rooms.begin(), rooms.end(), [](const Room &r) { return r.has_player; }) }; for (auto& x : player_room->neighbors) { if (x->room_number == target_room_number) { if (x->has_wumpus) { std::cout <<...
{ "domain": "codereview.stackexchange", "id": 31439, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, game", "url": null }
c#, design-patterns, unit-testing Title: Abstracting an Email Notification Service & testing the the logic of the used abstract factory In my application I have an Interface IEmailNotification that represents an Email and the concrete implementations have nothing to do with MailMessage class so to be able to send it t...
{ "domain": "codereview.stackexchange", "id": 35255, "lm_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#, design-patterns, unit-testing", "url": null }
php, regex, formatting This is the original post: I'm working on making syntax highlighting on my blog, and I created a regex to match strings and comments (I'm going to make a callback function to format each differently) Here's my regex: (?>(")(?>[^"]|(?>(?<=\\)"))*")|(?>(')(?>[^']|(?<=\\)')*')|(?>((?>\/\/|#))[^\n\r...
{ "domain": "codereview.stackexchange", "id": 34158, "lm_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, regex, formatting", "url": null }
matlab, machine-learning, vectorization % type = 1 : Train set. type = 2 : Test set assert( (type == 1) | (type == 2), 'Type = 1 or Type = 2'); if type == 1 Labels = ReadLabelsMNIST('train-labels.idx1-ubyte'); filename = 'train-images.idx3-ubyte'; else Labels = ReadLabelsMNIST('t10k-labels.idx1-ubyte'); ...
{ "domain": "codereview.stackexchange", "id": 20518, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "matlab, machine-learning, vectorization", "url": null }
javascript, angular.js, animation, ecmascript-6, canvas shuffle.filter.js (function () { 'use strict'; angular.module('app') .filter('shuffle', shuffle); function shuffle() { return function (a) { for (let i = a.length; i; i--) { let j = Math.floor(Math.random()...
{ "domain": "codereview.stackexchange", "id": 25946, "lm_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, angular.js, animation, ecmascript-6, canvas", "url": null }
algorithm, c, linked-list, matrix /*********************************************** * Returns the number of columns in the matrix. * ***********************************************/ size_t rotable_char_matrix_columns(rotable_char_matrix* matrix) { return matrix->cols; } /*******************************************...
{ "domain": "codereview.stackexchange", "id": 29489, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "algorithm, c, linked-list, matrix", "url": null }
air, flow Title: Air nozzle outlet profile efficiency, concave/convex I need to design a contracting nozzle for air. The application is quite simple, consider it like an hair dryer but the flow speed is even lower. So the Mach number is very low and the flow laminar. If I wanted the highest efficiency, which is the be...
{ "domain": "physics.stackexchange", "id": 20651, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "air, flow", "url": null }
distributed-systems, synchronization Title: How are lamport clocks implemented in real world distributed systems? Can anyone explain, how lamport clocks implementations are used in modern distributed systems? Can you name an open source package which implements this algorithm? Amazon's Dynamo [1] is a distributed stor...
{ "domain": "cs.stackexchange", "id": 3305, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "distributed-systems, synchronization", "url": null }
observational-astronomy, flux Title: Determining needed exposure time given SNR I need help on how to estimate an exposure time for a desirable signal to noise ratio (SNR). For example, given the magnitude and a desired SNR of a star we want to achieve, how long should the exposure time be? We may assume that the nois...
{ "domain": "astronomy.stackexchange", "id": 4854, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "observational-astronomy, flux", "url": null }
(3, 2), (2, 3)}. Hence, Reflexive or Symmetric are Equivalence Relation but transitive may or may not be an equivalence relation. Show that the distinct equivalence classes in example … For any equivalence relation on a set $$A,$$ the set of all its equivalence classes is a partition of $$A.$$, The converse is also tru...
{ "domain": "spacebd.biz", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9637799399736476, "lm_q1q2_score": 0.8373578084299698, "lm_q2_score": 0.8688267660487573, "openwebmath_perplexity": 526.3073391422087, "openwebmath_score": 0.5353816151618958, "tags"...
quantum-mechanics, operators, mathematical-physics, group-theory, lie-algebra Although the study of central extensions of groups and algebras is relevant in physics because of the connection to representation theory, such central extensions can be studied purely on their own, without any mention of representations. Th...
{ "domain": "physics.stackexchange", "id": 96345, "lm_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, mathematical-physics, group-theory, lie-algebra", ...
matching Title: Problem with understanding two sided Matching Algorithm: maximium cardinality I am trying to understand the maximum cardinality problem in the context of stable matching algorithm. I am reading the following article at the link: A Two-Sided Matching Decision Model Based on Uncertain Preference Sequence...
{ "domain": "cs.stackexchange", "id": 15425, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "matching", "url": null }
graphing logarithmic functions Popular Tutorials in Graphing Logarithmic Functions What Does the Constant 'k' Do to the Graph of f(x)=log(x)+k? Translating a logarithmic function vertically can be fun, especially when you know how it's done! You can use a TI-83 Plus graphing calculator to look at the graph of two other...
{ "domain": "autoverhuur-guusbaggen.nl", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9921841107484891, "lm_q1q2_score": 0.8331707039596543, "lm_q2_score": 0.8397339716830605, "openwebmath_perplexity": 725.7880205007357, "openwebmath_score": 0.6196134090423584...
python, python-3.x, bitwise, bitset self._value = value self._size = size Since instances of Bits are ints, you should have: def __int__(self): return self._value __index__ = __int__ You may want to provide an __iter__ method rather than relying on __len__ + __getitem__ to enable the iteration protocol. It a...
{ "domain": "codereview.stackexchange", "id": 23909, "lm_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, bitwise, bitset", "url": null }
$X,Y$ are independent of each other, so $e^{tX}$ and $e^{tY}$ are independent of each other. This gives $M(t) = E[e^{tX}] = E[e^{tY}]$ Moreover, $M(t) = E[e^{tX}]$ and $M(-t) = E[e^{-tY}]$ are independent of each other, this gives $$E\left[\frac{e^{tX}}{e^{tY}}\right] = E[e^{tX} \cdot e^{-tY}] = E[e^{tX}] \cdot E[e^{-t...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9793540698633748, "lm_q1q2_score": 0.8324227338687381, "lm_q2_score": 0.8499711794579723, "openwebmath_perplexity": 181.4668155222771, "openwebmath_score": 0.8756843209266663, "tag...
Calculate the angular acceleration of the cylinder if a mass of 0. Moment of Inertia and Radius of Gyration Moment of Inertia Moment of inertia, also called the second moment of area, is the product of area and the square of its moment arm about a reference axis. In particular, the same object can have different moment...
{ "domain": "safoo.de", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9919380089483865, "lm_q1q2_score": 0.8470285215101608, "lm_q2_score": 0.8539127585282744, "openwebmath_perplexity": 205.88164116530058, "openwebmath_score": 0.7360675930976868, "tags": null...
6 Actually, for Mathematica 7 and later versions, you have the functions Identity[], DiscreteShift[], and DifferenceDelta[]: Identity[f[x]] f[x] DiscreteShift[f[x], x] f[1 + x] DifferenceDelta[f[x], x] -f[x] + f[1 + x] The backward difference needs a bit more work: DifferenceDelta[DiscreteShift[f[x], {x, 1, -1}], x] -...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9669140225647107, "lm_q1q2_score": 0.8275344698981385, "lm_q2_score": 0.8558511414521923, "openwebmath_perplexity": 641.9083904999511, "openwebmath_score": 0.9530885219573975, "tag...
everyday-chemistry, acid-base Edit: I would like to add a few details. Assume that the acid is not concentrated but of suitable molarity to just cut the paper. I mean, to pierce through it and burning its edges to just make a nice cut. Like a glowing incense stick makes when made to touch a paper. Also, the nip of the...
{ "domain": "chemistry.stackexchange", "id": 971, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "everyday-chemistry, acid-base", "url": null }
algorithms Is there a way to speed this shuffle up being that there are repeated ranks? For example, suppose we only had 2 ranks but still 52 cards, could that be sped up over 52 distinct cards? if so, then how can we speed up 13 different ranks with 4 of each rank as in this problem? It seems like the rank only deck ...
{ "domain": "cs.stackexchange", "id": 12379, "lm_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 }
classical-mechanics, forces, harmonic-oscillator, differential-equations In general this thing is a driven oscillator, where $\gamma(t)$ is the thing doing the driving. There is a lot of literature on driven oscillators, and some quite general solutions (they are terribly important in many fields of engineering), bu...
{ "domain": "physics.stackexchange", "id": 42261, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "classical-mechanics, forces, harmonic-oscillator, differential-equations", "url"...
c++, beginner, c++11, hash-map, homework if (covid_file.is_open()) { covid_file << std::flush; std::string const SPACE = " "; covid_file << "\n\n****************************** COIVD DATA LOG ******************************\n\n\n"; for (auto& vec : HashTable) { for (auto& entry : vec) { if...
{ "domain": "codereview.stackexchange", "id": 44705, "lm_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, c++11, hash-map, homework", "url": null }
java, sql-server /** * Encrypts password prior to storing in a ConnectionCredentials object * @param password * @return the encrypted password */ private byte[] encrypt(String password) { // Encryption code based on // http://stackoverflow.com/a/32583766/3626537 byte[] encrypted = {}; try { ...
{ "domain": "codereview.stackexchange", "id": 20615, "lm_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, sql-server", "url": null }
Theorem: $$1 < n < 25 \Rightarrow p < 2n, \, q < 3n$$ $$25 \leq n < 3275 \Rightarrow p < \frac{6}{5} n, \, q < \frac{36}{25} n$$ $$3275 \leq n < 89693 \Rightarrow p \leq (1+ \frac{1}{2 \ln^2 n}) n, \, q \leq (1+ \frac{1}{2 \ln^2 n})^2 n$$ $$89693 \leq n < 396738 \Rightarrow p \leq (1+ \frac{1}{\ln^3 n}) n, \, q \leq (1...
{ "domain": "mathoverflow.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9867771766922544, "lm_q1q2_score": 0.8244360838946939, "lm_q2_score": 0.8354835350552603, "openwebmath_perplexity": 6292.813649930426, "openwebmath_score": 1.0000096559524536, "tags...
turtlebot, ros-kinetic, qt args=args@entry=0x7fffffffb310) at dl-error.c:187 #6 0x00007ffff7debbd9 in _dl_open ( file=0x2b49180 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", mode=-2147483646, caller_dlopen=0x5231c3 <_PyImport_GetDynLoadFunc+243>, nsid=-2, argc=<optimized out>, argv=<optimized out>,...
{ "domain": "robotics.stackexchange", "id": 26811, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "turtlebot, ros-kinetic, qt", "url": null }
sampling, python, analog-to-digital, quantization Title: Analog to digital conversion using Python I'm a beginner. I try emulate analog signal conversion to digital (including sampling by time and quantizing by level) using Python. Here is my code: import numpy as np import matplotlib.pyplot as plt time_of_view ...
{ "domain": "dsp.stackexchange", "id": 4130, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "sampling, python, analog-to-digital, quantization", "url": null }
A subset of $\mathbb{R}^n$ (with the usual topology) is compact if and only if it is closed and bounded. vs. A subset of $\mathbb{R}^n$ (with the usual topology) is closed and bounded if and only if it is compact. They are both the same statement, but the purpose of the theorem is to characterize compactness, not to...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9441768604361742, "lm_q1q2_score": 0.8043941271259026, "lm_q2_score": 0.8519528076067261, "openwebmath_perplexity": 601.427394000177, "openwebmath_score": 0.7465322613716125, "tags...
c#, design-patterns, collections namespace SOTests { public abstract class Item { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } } public interface IUsable { void Use(Character target); } public class Ch...
{ "domain": "codereview.stackexchange", "id": 32882, "lm_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#, design-patterns, collections", "url": null }
- Just for clarification, if the center was at (5, 10) and radius was 12, what would that be –  Cool12309 Dec 26 '12 at 21:11 @Cool12309 $$y=10\pm \sqrt{12^2-(x-5)^2}$$ –  Henry Dec 27 '12 at 1:10 I think you are asking the wrong question. Instead of asking "What is the $y$ for specified $x$?", ask "What $(x, y)$ pair...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.960361158630024, "lm_q1q2_score": 0.8084566558645035, "lm_q2_score": 0.8418256492357359, "openwebmath_perplexity": 1132.1940536918053, "openwebmath_score": 0.7705685496330261, "tag...
javascript, performance, canvas for (c = 0; c < height; c++) { if (c % 2 === 0) { x0 = triangleWidth + 1; x1 = triangleWidth + 1; x2 = 1; } else { s = step / 2; x0 = 1 + s; x1 = 1 + s; x2 = triangleWidth + 1 + s; ...
{ "domain": "codereview.stackexchange", "id": 42021, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, performance, canvas", "url": null }
python, beginner, python-2.x, excel # Import the excel data # Create an index for the file paths to the excel files i_fp = 0 # Create a blank dictionary to add the imported excel data to all_dict = {} # test to make sure there's the correct number of files to avoid issues if len(fpath) == len(...
{ "domain": "codereview.stackexchange", "id": 13041, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, beginner, python-2.x, excel", "url": null }
javascript, random, statistics, revealing-module-pattern Title: Alea implementation The following is an implementation of the Alea random number generation approach by Johannes Baagøe, reworked from the rot.js implementation by dropping all the pesky underscore prefixes in the variables and making those variables trul...
{ "domain": "codereview.stackexchange", "id": 11167, "lm_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, random, statistics, revealing-module-pattern", "url": null }
noise, power-spectral-density, window-functions, spectrum-estimation, power-law window_1 = hanning_window window_2 = hanning_window fneghann = Q*(t+tau/2)*exp(-I*w*tau)*window_1.substitute(x=(t))*window_2.substitute(x=(t+tau)) fposhann = Q*(t-tau/2)*exp(-I*w*tau)*window_1.substitute(x=(t))*window_2.substitute(x=(t+ta...
{ "domain": "dsp.stackexchange", "id": 7579, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "noise, power-spectral-density, window-functions, spectrum-estimation, power-law", "ur...
c++, performance, algorithm, playing-cards inline bool operator<(HandType hero, HandType vill) { return static_cast<int>(hero) < static_cast<int>(vill); } inline bool operator>(HandType hero, HandType vill) { return vill < hero; } inline bool operator==(HandType hero, HandType vill) { return !(hero < vill) && ...
{ "domain": "codereview.stackexchange", "id": 41153, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, performance, algorithm, playing-cards", "url": null }
gazebo Title: Baxter_Gazebo: can't get current joint states Hi, Installed Baxter Simulator as per the instructions. When I run any of the python programs to allow the robot to do anything, I get something like the example below: $ rrun baxter_examples joint_position_waypoints.py -l right Initializing node... Traceba...
{ "domain": "robotics.stackexchange", "id": 4255, "lm_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 }
square could be proved to be a parallelogram then... One of its diagonals trademarks and copyrights are the midpoints of the legs of quadrilateral! Vertices a, B, and a quadrilateral with four congruent _____ as the polygon has.! The polygon has sides _____ units that exactly cover a closed plane,... And congruent with...
{ "domain": "80port.info", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9732407168145569, "lm_q1q2_score": 0.8023999162130441, "lm_q2_score": 0.8244619263765707, "openwebmath_perplexity": 796.2912575936527, "openwebmath_score": 0.771286129951477, "tags": nul...
php, object-oriented, parsing, reinventing-the-wheel // Return the value return $this->iniDataArray[$parSection][$parKey]; } /** * Reads the INI file and stores the contents into memory as a multi-layered array. * * Any 'unsaved changes' to the INI data in memory are lost. * *...
{ "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 }
gravity Title: How Big/Low would an artificial satellite have be to change the pull of the tides? I learned that passing airplanes pull the tides in a similar style to the moon, but are too small to make a drastic change. How big would an artificial satellite have to be to make a measureable change? After all, it is c...
{ "domain": "physics.stackexchange", "id": 90085, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "gravity", "url": null }
ros-kinetic, ubuntu Title: Other Linux Distros For ROS Kinetic I know - and I tell others - to just use Ubuntu 16.04. That is what is supported and anything even slightly different risks problems which might be hard to diagnose. That being said, I do sometimes have older or lower end computers and Ubuntu 16.04 can b...
{ "domain": "robotics.stackexchange", "id": 31698, "lm_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, ubuntu", "url": null }
c#, formatting, api [Test] public void FormatAngle() { var angle = Angle.FromDegrees(1.2); using (Thread.CurrentThread.UsingTempCulture(CultureInfo.InvariantCulture)) { Assert.AreEqual("0.020943951023932\u00A0rad", angle.ToString()); Assert.AreEqual("1.200°", angle.ToString("F3°")); ...
{ "domain": "codereview.stackexchange", "id": 17000, "lm_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#, formatting, api", "url": null }
java, beginner, adventure-game public boolean shouldUpLevel(){ if(getXp()>=nextLevel()){ return true; } return false; } public int nextLevel(){ int ret = 0; int currentLevel = getLevel()+1; ret = (int)(5 * (Math.pow(currentLevel, 2)) - (5*currentLeve...
{ "domain": "codereview.stackexchange", "id": 41301, "lm_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, adventure-game", "url": null }
fft, noise, frequency Title: How does SC-FDE modifies $E_b$ (in AWGN function) In lot of matlab scripts of SC-FDE simulations I see $E_b = N$ (being $N$ the length of the block to be transmitted through the channel and Eb energy per bit) to generate the AWGN. I would like to understand why is that, and more specifical...
{ "domain": "dsp.stackexchange", "id": 4229, "lm_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, noise, frequency", "url": null }
power-spectral-density, autocorrelation, random-process &= \sum_{k=-\infty}^\infty E[\mathcal B_k]E\left[p\left({t - \mathcal T -kT}\right)\right]\\ &= 0 &\text{since} ~E[\mathcal B_k]=0. \end{align} To answer another follow-up question from the OP in the comments below, note that it doesn't matter diddlysquat what t...
{ "domain": "dsp.stackexchange", "id": 10972, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "power-spectral-density, autocorrelation, random-process", "url": null }
# HP Forums Full Version: Triangular number AND sum of first m factorials You're currently viewing a stripped down version of our content. View the full version with proper formatting. 153 (my favorite number) is both a triangular number (the sum of the integers 1 through $$n$$; in this case $$n=17$$) as well as the s...
{ "domain": "hpmuseum.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9783846703886662, "lm_q1q2_score": 0.8021710776702253, "lm_q2_score": 0.8198933425148214, "openwebmath_perplexity": 1779.9743707023933, "openwebmath_score": 0.38969600200653076, "tags":...
organic-chemistry, intermolecular-forces Possible mechanisms for the entropy increase include: (i) the attraction between discrete oppositely-charged areas, releasing counterions; (ii) the release of loosely-bound water molecules from the inter-membrane gap; (iii) the increased orientational freedom of previously-alig...
{ "domain": "chemistry.stackexchange", "id": 8642, "lm_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, intermolecular-forces", "url": null }
experimental-physics, measurements, medical-physics Thus, my measurement setup was as follows: I prepared a 7.5 liter water jug just like they did in the video. I used coarse 1 liter steps for the first 5 liters, then made 0.1 liter tick marks until I reached 6.5 liters, and I ignored the rest. I put the jug upside do...
{ "domain": "physics.stackexchange", "id": 56987, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "experimental-physics, measurements, medical-physics", "url": null }
ros, motoman-driver, ros-kinetic Title: motoman_driver compatibility (only Kinetic)? hello, motoman_driver can only work with kinetic version of Moveit!; ROS right? Thanks. Originally posted by nd on ROS Answers with karma: 80 on 2019-02-26 Post score: 0 Afaik (and afaict) the motoman_driver package can both be bui...
{ "domain": "robotics.stackexchange", "id": 32532, "lm_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, motoman-driver, ros-kinetic", "url": null }
And the same idea applies to the general equation $Ax+Bx+C=0$. Lines Common point. Suppose you have two straight lines with equations $$Ax+By+C=0$$ $$A^{\prime }x+B^{\prime }y+C^{\prime }=0.$$ They are not parallel if and only if $AB^{\prime }-A^{\prime }B\neq 0$ (or equivalently $\frac{B^{\prime }}{B}\neq \frac{A^...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9766692345869641, "lm_q1q2_score": 0.8159910606916501, "lm_q2_score": 0.8354835309589073, "openwebmath_perplexity": 331.8416883614523, "openwebmath_score": 0.8982788920402527, "tag...
magnetic-monopoles Title: Dirac's quantization of electric charge I was following Nakahara's book Geometry, Topology and Physics, specifically subsection 10.5.2. I do understand how he obtains the equality, $$ \Delta \varphi = \int \mathrm d\varphi = \int \limits^{2\pi}_{0} 2g \, \mathrm d\phi = 4\pi g$$ and that ther...
{ "domain": "physics.stackexchange", "id": 52370, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "magnetic-monopoles", "url": null }
performance, clojure, sieve-of-eratosthenes (defn naive-primes [n] (->> n (range 2) (filterv naive-prime?))) Runtime Complexity: I wrote up a testing function to automate timing with the help of Criterium for benchmarking: (defn test-times [start-n end-n step-factor] (->> (iterate #(* step-factor %)...
{ "domain": "codereview.stackexchange", "id": 33475, "lm_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, clojure, sieve-of-eratosthenes", "url": null }
python, object-oriented, python-3.x, pathfinding, a-star Title: Python A Star with fewest turns and shortest path variations I had a lot of fun writing these. I haven't seen a version minimizing turns, so that was a neat challenge. Any suggestions are very welcome. Is there anything to gain by making more method vari...
{ "domain": "codereview.stackexchange", "id": 32701, "lm_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, pathfinding, a-star", "url": null }