text
stringlengths
49
10.4k
source
dict
ros, ros-kinetic ::NullType>&; T7 = const boost::shared_ptr<const message_filters::NullType>&; T8 = const boost::shared_ptr<const message_filters::NullType>&]’ /usr/include/boost/function/function_template.hpp:936:38: required from ‘void boost::function9<R, T1, T2, T3, T4, T5, T6, T7, T8, T9>::assign_to(Functor) [wi...
{ "domain": "robotics.stackexchange", "id": 31586, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, ros-kinetic", "url": null }
python, security, cryptography @param password: The secret value used as the basis for a key. This should be as long as varied as possible. Try to avoid common words. @param data: The data to be decrypted, typically as bytes. @return: The decrypted data, as bytes. If the original message was a str...
{ "domain": "codereview.stackexchange", "id": 2900, "lm_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, security, cryptography", "url": null }
php, pdo, mysqli, sql-injection Yes, definitely. This set of functions is just unacceptable, being so bad on so many levels. There will be dozens to hundreds connections made in your script, not just "2 connections" for starter, as your code will connect anew every time it executes a query. There is, as you rightfu...
{ "domain": "codereview.stackexchange", "id": 31948, "lm_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, pdo, mysqli, sql-injection", "url": null }
navigation Originally posted by Steven_Daniluk with karma: 606 on 2017-01-23 This answer was ACCEPTED on the original site Post score: 2 Original comments Comment by burf2000 on 2017-01-24: Thanks for the help, thats awesome! Comment by burf2000 on 2017-01-24: When you say power limited are you saying the motors are ...
{ "domain": "robotics.stackexchange", "id": 26807, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "navigation", "url": null }
c# if (s.IndexOf("vpc_SecureHash") == -1) { string vpcMessage = s.Split('=')[1]; switch (s.Split('=')[0]) { case "vpc_DRExists": exist = vpcMessage == "Y"; break; case "vpc_TxnResponseCode": ResponseCode = vpcMessage ...
{ "domain": "codereview.stackexchange", "id": 6951, "lm_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 }
ros Title: groovy error installation i'm installling ROS-G but when i run sudo rosdep init i get the next error: ERROR: cannot download default sources list from: https://raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down. Originally posted by monidiaz on ROS Answers with ...
{ "domain": "robotics.stackexchange", "id": 12835, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros", "url": null }
// a ')' and each '{' matching a '}'. Balanced parentheses means that each opening symbol has a corresponding closing symbol and the pairs of parentheses are properly nested. Given an expression as string comprising of opening and closing characters of parentheses - (), curly braces - {} and square brackets - [], we ne...
{ "domain": "concorsobabyliss.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9532750373915658, "lm_q1q2_score": 0.8315869872875561, "lm_q2_score": 0.8723473862936942, "openwebmath_perplexity": 1221.7287041669401, "openwebmath_score": 0.4182746708393097,...
special-relativity, metric-tensor, conventions, definition, clifford-algebra Title: Covariant gamma matrices Covariant gamma matrices are defined by $$\gamma_{\mu}=\eta_{\mu\nu}\gamma^{\nu}=\{\gamma^{0},-\gamma^{1},-\gamma^{2},-\gamma^{3}\}.$$ The gamma matrix $\gamma^{5}$ is defined by $$\gamma^{5}\equiv i\gamma^{0}...
{ "domain": "physics.stackexchange", "id": 66225, "lm_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, metric-tensor, conventions, definition, clifford-algebra", "...
c++, beginner, pokemon 23, Ekans, Poison, 15.2, 79, Male and Female, 0, 24, Arbok, Poison, 143.3, 138, Male and Female, 23, 25, Pikachu, Electric, 13.2, 16, Male and Female, 0, 26, Raichu, Electric, 66.1, 31, Male and Female, 25, 27, Sandshrew, Ground, 26.5, 24, Male and Female, 0, 28, Sandslash, Ground, 65, 39, Male ...
{ "domain": "codereview.stackexchange", "id": 24194, "lm_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, pokemon", "url": null }
c++, c++11, game, tetris void Tetris::userInput() { char key; key = _getch(); switch (key) { case 'd': if (!isCollide(x + 1, y)) { moveBlock(x + 1, y); } break; case 'a': if (!isCollide(x - 1, y)) ...
{ "domain": "codereview.stackexchange", "id": 11269, "lm_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, game, tetris", "url": null }
electricity, temperature, electric-current, electrical-resistance Title: Second-order equation for the resistance of a filament lamp I am trying to determine the initial resistance $ R_0 $ of a tungsten filament in a filament lamp, by quadratic approximation of the resistance $R(T) = R_0[1 + \alpha*T + \beta*T^2]$ but...
{ "domain": "physics.stackexchange", "id": 82407, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electricity, temperature, electric-current, electrical-resistance", "url": null ...
quantum-mechanics, homework-and-exercises, harmonic-oscillator Well this was all good until I checked the solution, where it has been claimed that the state of the quantum system right after the momentum is imparted is given by $$\vert p_0 \rangle = e^{-\frac{i}{\hbar}p_0x}\cdot \vert0\rangle$$ and they proceed with t...
{ "domain": "physics.stackexchange", "id": 71006, "lm_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, homework-and-exercises, harmonic-oscillator", "url": null }
soft-question, sat, terminology It is also worth reading the position paper of Garcia de la Banda, Stuckey, Van Hentenryck and Wallace, which paints a CP-centric vision of The Future of Optimization Technology, doi:10.1007/s10601-013-9149-z. As far as I can tell, much of the focus of recent SMT research seems to have ...
{ "domain": "cstheory.stackexchange", "id": 3076, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "soft-question, sat, terminology", "url": null }
recursion, loops, iteration Title: Arbitrary depth nested for-loops without recursion Suppose I have an array of n values I want to apply nested for-loops over to an arbitrary depth m. const array = [1, 2, 3]; // 2-depth for-loop for (const i of array) { for (const j of array) { // do the thing } } // 3-dept...
{ "domain": "cs.stackexchange", "id": 16375, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "recursion, loops, iteration", "url": null }
From here, we have a few basic geometric theorems we can use. Namely, if we allow $$\theta$$ to be the angle between the two $$L'$$ legs of our newly formed traingle, • $$A=R\theta$$ • $$D=2R\sin{(\frac{A}{2R})}$$ • $$P=R-\sqrt{R^2-(\frac{D}{2})^2}=R(1-\sqrt{1-(\frac{D}{2R})^2})$$ To start, we must make our first, mo...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9728307716151472, "lm_q1q2_score": 0.8399339192976796, "lm_q2_score": 0.8633916029436189, "openwebmath_perplexity": 287.77765260552144, "openwebmath_score": 0.8001608848571777, "ta...
inorganic-chemistry, aqueous-solution, theoretical-chemistry, separation-techniques $$ \begin{align} \ce{L_\mathrm{s} + M^+_\mathrm{s} &<=> LM^+_\mathrm{s}}\label{rxn:1}\tag{1}\\ \ce{\overline{\ce{L}} + M^+_\mathrm{w} + X^-_\mathrm{w} &<=> \overline{\ce{LMX}}}\tag{2} \end{align}$$ You would be correct if only \eqref{...
{ "domain": "chemistry.stackexchange", "id": 9452, "lm_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, aqueous-solution, theoretical-chemistry, separation-techniqu...
php, object-oriented public function get($varname){ switch($varname){ case 'teamid' : $return = $this->teamid; break; case 'name' : $return = $this->name; break; case 'urlname' : $return = $this->urlname; break; case 'mascot' : $return = $this->mascot; break; case 'city' ...
{ "domain": "codereview.stackexchange", "id": 2826, "lm_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 }
field-theory, variational-principle, action, bose-einstein-condensate, integrals-of-motion The Eq.(2) give the time derivative of the momentum of the box: \begin{align} \frac{d}{dt}m_0\dot{x}_0 & = \int d x \,|\psi(x,t)|^2 \frac{\partial}{\partial x} V(x-x_0(t))\\ \frac{d P_0}{dt} & = \langle \frac{\partial}{\par...
{ "domain": "physics.stackexchange", "id": 77547, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "field-theory, variational-principle, action, bose-einstein-condensate, integrals-o...
thermodynamics, electromagnetic-radiation, power Title: Why did the microwave oven only heat my coffee half as much as expected? A sticker on my microwave oven states its output effect to be $750\ \mathrm W$, which is $180$ calories per second. This means that heating $250\ \mathrm g$ of water by one degree Celsius wo...
{ "domain": "physics.stackexchange", "id": 30839, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics, electromagnetic-radiation, power", "url": null }
gazebo, macos, macos-lion, osx Title: Installing Gazebo on a mac (Lion OSX) Have anyone installed Gazebo in an iMac? I am trying to install it in Lion (mas OSX). I have downloaded the source code, tar it, use make, and then got stuck trying to use cmake. The problem seem to be that I don't have these packages: build-...
{ "domain": "robotics.stackexchange", "id": 8002, "lm_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, macos, macos-lion, osx", "url": null }
semiconductor-physics, electronics Title: Diffusion and Drift Current under no biasing of a PN junction Diode In a PN diode, I get the point that total current is zero due to drift and diffusion current contribution cancels their effect when depletion region is formed. My question is even though just for a moment supp...
{ "domain": "physics.stackexchange", "id": 80034, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "semiconductor-physics, electronics", "url": null }
astrophysics, orbital-elements, celestial-mechanics The sixth element is simply the location of the planet at time $t=0$. This is an angle in the orbital plane, and there are different ways to describe this angle. The simplest is the angle between the periapse direction and the planet. This is the True Anomaly $\nu$...
{ "domain": "astronomy.stackexchange", "id": 5420, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "astrophysics, orbital-elements, celestial-mechanics", "url": null }
astrophysics, stars, hydrogen, fusion, stellar-physics How big sphere do you need? If we start with hydrogen gas ($\mu=3.32\times 10 ^{-27}$ kg) at room temperature $T=300$ K and one atmosphere $\rho=0.0899$ kg/m$^3$ I get $\lambda_J=498,000$ km. That is however just 0.0000234 solar masses (about 7.8 earth masses), so...
{ "domain": "physics.stackexchange", "id": 48768, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "astrophysics, stars, hydrogen, fusion, stellar-physics", "url": null }
java, algorithm, combinatorics, minesweeper Title: Advanced and Detailed Minesweeper Probabilities In an earlier question, I showed my code for calculating the mine probability for each and every field in a Minesweeper board. But it doesn't stop there. In that very same Minesweeper Analyze project, there is also an al...
{ "domain": "codereview.stackexchange", "id": 11072, "lm_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, combinatorics, minesweeper", "url": null }
ros Title: Can you tell me how to use KITTI Dataset? I didn't find any rosbag or pcap dataset for velodyne in KITTI's website.I just found png dataset for a paper of Velodyne SLAM.Can you tell me where the dataset you have used. Originally posted by lowme on ROS Answers with karma: 16 on 2017-05-12 Post score: 0 Or...
{ "domain": "robotics.stackexchange", "id": 27878, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros", "url": null }
10. A $$2$$-foot brick border is constructed around a square cement slab. If the total area, including the border, is $$121$$ square feet, then what are the dimensions of the slab? 11. The area of a picture frame including a $$2$$-inch wide border is $$99$$ square inches. If the width of the inner area is $$2$$ inches...
{ "domain": "libretexts.org", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9907319871663824, "lm_q1q2_score": 0.8099971854558428, "lm_q2_score": 0.8175744761936437, "openwebmath_perplexity": 291.6287690985695, "openwebmath_score": 0.9642894268035889, "ta...
python return [] #return empty list, no path found def display(): display = pygame.display.set_mode(wndsize) display.fill(white) #print route lines if len(solution) > 0: for step in range(len(solution)-1): here = solution[step] there = solution[step+1] lin...
{ "domain": "codereview.stackexchange", "id": 41222, "lm_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++, c++20 You might also replace the special constructors with factory functions that return std::vector, since that is how you implement all the converting constructors anyway. If you intentionally don’t want to allow inserting items into a ConcreteData or RequestPayload instance after it is constructed, you can del...
{ "domain": "codereview.stackexchange", "id": 44922, "lm_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++20", "url": null }
c#, performance, interview-questions, hash-map Dictionary<string, int> CountTheOccurrences = new Dictionary<string, int>(); // Create a dictionary to keep track of each occurrence of the words in the string for (int i = 0; i < Value.Length; i++) // Loop the splited str...
{ "domain": "codereview.stackexchange", "id": 33939, "lm_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, interview-questions, hash-map", "url": null }
If we imagine an arbitrary line with length $2$ connecting two sides of the square, we can draw the rectangle formed by drawing a perpendicular from where that line touches the square. Drawing the other diagonal of the rectangle, it also has length two, and it bisects with the original line. Since their intersection i...
{ "domain": "artofproblemsolving.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9914225161069059, "lm_q1q2_score": 0.8035270366162821, "lm_q2_score": 0.8104789063814616, "openwebmath_perplexity": 117.74093975635384, "openwebmath_score": 0.9039100408554077,...
arduino, macos, rosserial, macos-lion, osx Am I missing a dependency? [UPDATE 2] I figured out I needed to do: pip install pyserial But now it fails with: [kevin@TARDIS rosserial]$ rosrun rosserial_python serial_node.py /dev/cu.usbserial-A4001lNd [INFO] [WallTime: 1330658506.244201] ROS Serial Python Node [INFO] [Wa...
{ "domain": "robotics.stackexchange", "id": 8425, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "arduino, macos, rosserial, macos-lion, osx", "url": null }
compressive-sensing Title: Compressive Sensing - Sparse in frequency example I am learning about compressed sensing. I have a question regarding a common MATLAB "sparse in frequency" example that can be find online, for example here and here. What confuses me in these examples is that they do not take the subset of ti...
{ "domain": "dsp.stackexchange", "id": 6219, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "compressive-sensing", "url": null }
newtonian-mechanics, conservation-laws, simulations Title: Physics simulator based on conservation laws? Reading the article: http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion#Relationship_to_the_conservation_laws there's a section stating that: In modern physics, the laws of conservation of momentum, energy, and...
{ "domain": "physics.stackexchange", "id": 20872, "lm_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, conservation-laws, simulations", "url": null }
python, snake-game def check_arrow_keys(self): old_settings = termios.tcgetattr(sys.stdin) try: tty.setcbreak(sys.stdin.fileno()) while 1: if self.__isData() or self.status: c = sys.stdin.read(3) if c == '\x1b[A': ...
{ "domain": "codereview.stackexchange", "id": 42251, "lm_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, snake-game", "url": null }
1 vote 1 If the trapezoidal method is used to evaluate the integral obtained $\int_{0}^{1} x^2dx$, then the value obtained is always > (1/3) is always < (1/3) is always = (1/3) may be greater or lesser than (1/3) 2 The trapezoidal method is used to evaluate the numerical value of $\int_{0}^{1}e^x dx$. Consider the foll...
{ "domain": "gateoverflow.in", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.98228770337066, "lm_q1q2_score": 0.8076262813162353, "lm_q2_score": 0.8221891392358015, "openwebmath_perplexity": 172.5172146260982, "openwebmath_score": 0.6121761202812195, "tags": ...
The main condition of matrix multiplication is that the number of columns of the 1st matrix must equal to the number of rows of the 2nd one. The dimensions of $B$ are $3\times 2$ and the dimensions of $A$ are $2\times 3$. The dot product involves multiplying the corresponding elements in the row of the first matrix, by...
{ "domain": "fileppi.com", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.990731985524492, "lm_q1q2_score": 0.9285247047465935, "lm_q2_score": 0.9372107878954105, "openwebmath_perplexity": 590.7593543781824, "openwebmath_score": 0.8542640209197998, "tags": nul...
gazebo Title: gazebo client on Debian crashes at startup I have compiled gazebo from source. When I try to lauch it, either as "gazebo" or as "gzclient", it crashes. Doesn't show any splash screen. The gzserver does not seem to crash. Backtrace obtained through gdb : Program received signal SIGSEGV, Segmentation faul...
{ "domain": "robotics.stackexchange", "id": 4045, "lm_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 }
quantum-mechanics, statistical-mechanics Title: Why is the expectation value calculated for the Einstein calculation of specific heat the same as the quantum expectation value of energy? In 29:22 here, the professor says that the expectation value calculated using the partition function when finding the specific heat ...
{ "domain": "physics.stackexchange", "id": 82292, "lm_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, statistical-mechanics", "url": null }
php, mysql, pdo $DB_R = []; $DB = []; $val = []; $prefix = ''; $cT = 0; if (USEPREFIX == True) { $prefix = DB_PRE; } $conn = new PDO("mysql:host=" . DB_HOST . ";dbname=" . $prefix . "" . DBSYS . "", DB_USER...
{ "domain": "codereview.stackexchange", "id": 34564, "lm_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, mysql, pdo", "url": null }
c#, performance Console.WriteLine("SByte test: {0}, {1}: {2}", bytes.ConvertTo1<sbyte>(), bytes.ConvertTo2<sbyte>(), bytes.ConvertTo1<sbyte>() == bytes.ConvertTo2<sbyte>()); Console.WriteLine("Byte test: {0}, {1}: {2}", bytes.ConvertTo1<byte>(), bytes.ConvertTo2<byte>(), bytes.ConvertTo1<byte>() == bytes.Conve...
{ "domain": "codereview.stackexchange", "id": 15367, "lm_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", "url": null }
general-relativity, coordinate-systems, kerr-metric, kerr-newman-metric Any help, resources or articles would be greatly appreciated as well any fundamental concepts I may not seem to have grasped yet (I won't mind if I have actually been doing everything incorrectly). Thank you very much for reading! P.S. when defini...
{ "domain": "physics.stackexchange", "id": 92050, "lm_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, coordinate-systems, kerr-metric, kerr-newman-metric", "url":...
navigation, ros-kinetic, robot-localization Originally posted by rukie on ROS Answers with karma: 71 on 2019-04-10 Post score: 0 Original comments Comment by rukie on 2019-04-11: I think part of what I should be doing, is broadcasting the bicycle publisher on frame id "odom" to child "bicycle". I should create a stat...
{ "domain": "robotics.stackexchange", "id": 32847, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "navigation, ros-kinetic, robot-localization", "url": null }
plate-tectonics, mountains, orogeny Just doing some quick googling, it sounds like Arizona also has both volcanic feature and eroded remnants of volcanic features. These kinds of mountains/hills are formed via a different method again, and their heights are controlled by their own method of formation. Volcanoes can va...
{ "domain": "earthscience.stackexchange", "id": 739, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "plate-tectonics, mountains, orogeny", "url": null }
homework-and-exercises, newtonian-mechanics, forces Title: Why might the normal force on a box not be equal to its weight? Very simple homework question which I managed to get wrong: "The weight of a box sitting on the floor points directly down. The normal force of the floor on the box points directly up. Need these...
{ "domain": "physics.stackexchange", "id": 5091, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "homework-and-exercises, newtonian-mechanics, forces", "url": null }
java, linked-list // Testing insertAtPos() IValueElement atPosN = new ValueElement("A-B", 99); list.insertAtPos(3, atPosN); // Testing insertAtTheEnd() IValueElement atTheEnd = new ValueElement("X-Y-Z", 100); list.insertAtTheEnd(atTheEnd); // Testing getElementAt() aft...
{ "domain": "codereview.stackexchange", "id": 23563, "lm_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, linked-list", "url": null }
acid-base, experimental-chemistry, analytical-chemistry, ph Initial volume (L) | 0,03 | 0,02 | 0,008 | 0 | 0,5614062187 | 0 | 0 | 0 | 0,6194062187 Solution concentration (mol/L) | 0 | 0,0711806976 | 0,0516623809 | 0 | 0,9063619346 | 0 | 0 | 0
{ "domain": "chemistry.stackexchange", "id": 9589, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "acid-base, experimental-chemistry, analytical-chemistry, ph", "url": null }
algorithm-analysis, data-structures, amortized-analysis, union-find Title: Height and depth of every node in Path Compression If we have an union-find(disjoint-set) data structure and we are doing an union by rank and path compression for a find operation, how would the depth and height of every node change after the ...
{ "domain": "cs.stackexchange", "id": 7458, "lm_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-analysis, data-structures, amortized-analysis, union-find", "url": null }
• "ggT" or "größte gemeinsame Teiler" mean gcd in German. – Orat Apr 2 '18 at 1:48
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9664104953173166, "lm_q1q2_score": 0.8325995694288951, "lm_q2_score": 0.861538211208597, "openwebmath_perplexity": 357.7875724019331, "openwebmath_score": 0.9616946578025818, "tags...
fft, algorithms, spectral-efficiency Title: FFT subset output yields computational efficiency The traditional FFT gives $N=2^k$ outputs for $N=2^k$ inputs (generally complex.) The time effort is $O(N \cdot \log(N))$. If all I want is a compact subset of $M \ll N$ output frequency points, is there some method to "dep...
{ "domain": "dsp.stackexchange", "id": 4945, "lm_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, algorithms, spectral-efficiency", "url": null }
rotational-kinematics, differentiation, angular-velocity, complex-numbers This should be equivalent to $$ \dot{q} = \frac{1}{2} \Omega q $$ Second Derivative $$ \dot{ {\boldsymbol \omega} } = {\rm J} \pmatrix{ \ddot{\theta}_1 \\ \ddot{\theta}_2 \\ \ddot{\theta}_3 } +\dot{\rm J} \pmatrix{ \dot{\theta}_1 \\ \dot{\theta}...
{ "domain": "physics.stackexchange", "id": 40410, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rotational-kinematics, differentiation, angular-velocity, complex-numbers", "url...
c, multithreading, concurrency case ERROR_FORP_SSCANF_FAIL: return "sscanf failed."; case ERROR_FORP_NO_MUTEX_INIT: return "Could not initialize a mutex."; case ERROR_FORP_NO_MUTEX_DESTROY: return "Could not destroy a mutex."; case ERROR_FORP_UNKNOWN_CORES...
{ "domain": "codereview.stackexchange", "id": 29105, "lm_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, concurrency", "url": null }
quantum-mechanics Is there any way to differentiate if they came from a Truly Random or from a formula/algorithm ? how? No, because one only ever has a finite amount of stream data to analyse, which can always be explained algorithmically (as discussed above). if there is no way to decide this, then, I can't find an...
{ "domain": "physics.stackexchange", "id": 783, "lm_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", "url": null }
From integration by parts/ other techniques, we have that $$\int_0^{\pi/2} \sin^{2k}(x) dx = \frac{2k-1}{2k}\frac{2k-3}{2k-2} \cdots \frac{1}{2} \frac{\pi}{2} = \dfrac{(2k)!}{4^k (k!)^2} \dfrac{\pi}2 = \dfrac{\Gamma(2k+1)}{4^k \Gamma^2(k+1)} \dfrac{\pi}2$$ Hence, a possible analytic extension to $\displaystyle \int_0^...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9752018441287091, "lm_q1q2_score": 0.8209499178296821, "lm_q2_score": 0.8418256412990657, "openwebmath_perplexity": 930.2606833873086, "openwebmath_score": 0.9999886751174927, "tag...
# sample and estimate, compute standard error samplemean_act <- mean( sample(0:1, prob = c(0.9, 0.1), replace = T, size = 100)) SE_samplemean <- sqrt(samplemean_act * (1 - samplemean_act) / 100) # null hypothesis mean_h0 <- 0.1 # compute the p-value pvalue <- 2 * pnorm(- abs(samplemean_act - mean_h0) / SE_samplemean...
{ "domain": "econometrics-with-r.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9911526443943917, "lm_q1q2_score": 0.8080198420668194, "lm_q2_score": 0.8152324938410783, "openwebmath_perplexity": 1156.0282167504754, "openwebmath_score": 0.9195926189422607,...
robotic-arm, matlab, dynamics, simulator q=[0 0 0] robot=SerialLink(L); This is not a great error message and it only happens if you are using the MATLAB rather than the (100x) faster MEX version of the dynamics. The error occurs because the motor inertias are not set, and they default to []. To fix this I ran this c...
{ "domain": "robotics.stackexchange", "id": 1948, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "robotic-arm, matlab, dynamics, simulator", "url": null }
ica, complex-random-variable I don't quite get how $E[\mathbf{s}\mathbf{s}^H]=\mathbf{I}_n$ and $E[\mathbf{s}\mathbf{s}^T]=\mathbf{0}_n$ come about from the conditions. We have the covariance matrix as \begin{align} \operatorname{cov}(\mathbf{s}) &= E[\mathbf{s}\mathbf{s}^H]-E[\mathbf{s}]E[\mathbf{s}^H] \\ &= E[\math...
{ "domain": "dsp.stackexchange", "id": 7086, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ica, complex-random-variable", "url": null }
performance, image, matlab, signal-processing end if (length(tempQD_LL) == p) timgD_LL(i,j) = sum(tempQD_LL); timgD_LH(i,j) = sum(tempQD_LH); timgD_HL(i,j) = sum(tempQD_HL); timgD_HH(i,j) = sum(tempQD_HH); end end end e...
{ "domain": "codereview.stackexchange", "id": 22080, "lm_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, image, matlab, signal-processing", "url": null }
• 1815: The number of (0,1)-sequences with 10 ones and 5 zeroes with two consecutive zeroes somewhere, and no three consecutive zeroes. Computed by the following: R2:=Filtered(S2,L->not ForAny([1..13],i->L[i]=0 and L[i+1]=0 and L[i+2]=0));; Size(R2); • 1320: The number of (0,1)-sequences with 10 ones and 5 zeroes wi...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9873750525759487, "lm_q1q2_score": 0.8411969482029183, "lm_q2_score": 0.8519528076067262, "openwebmath_perplexity": 312.6266949081531, "openwebmath_score": 0.8280385732650757, "tag...
quantum-state, mathematics, density-matrix, optimization Hence, the quantity we want to minimize is $$ \min_{\alpha} \left \{2 - 2(a \cos \alpha - b \sin \alpha) \right\}. $$ Take the derivative of $2 - 2(a \cos \alpha - b \sin \alpha)$ w.r.t. $\alpha$ and set it to zero. Then we have $$ a \sin \alpha = b \cos \alpha....
{ "domain": "quantumcomputing.stackexchange", "id": 4685, "lm_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-state, mathematics, density-matrix, optimization", "url": null }
regular-languages, context-free Title: Is the concatenation of a non-regular CFL and a complement of a regular upper-set always non-regular? Let $L_1$ be a non-regular CFL. Let $L_2$ be a regular language. Assume that $\left(L_1\right)^{*} \subseteq L_2$. I'm looking at $L_3 = \left( L_1 \right) ^{*} \circ \overline{L...
{ "domain": "cs.stackexchange", "id": 18448, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "regular-languages, context-free", "url": null }
molecular-biology, microbiology, terminology, protocol, growth-media Title: What is "bacto" peptone? Standard recipes for yeast medium often include "bacto-peptone". Is this the same as bacteriological peptone? Is there an authoritative source that spells it out? See here. Bacto is a brand which used to be marketed by...
{ "domain": "biology.stackexchange", "id": 2291, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "molecular-biology, microbiology, terminology, protocol, growth-media", "url": nul...
drugs, medicinal-chemistry Title: Why does the US not manufacture sodium thiopental themselves? A shortage of a given chemical (sodium thiopendal) has prompted Utah to allow firing squads for executions. This shortage is due to mostly European chemical factories refusing to export the drug to the US. I am against the ...
{ "domain": "chemistry.stackexchange", "id": 3030, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "drugs, medicinal-chemistry", "url": null }
thermodynamics, kinetic-theory Title: Why does the temperature of a gas inside a moving container not increase with velocity? A rectangular (simplified) container with rigid surfaces, has a certain mass of ideal gas within it, and it accelerates in free space, undergoing rectilinear motion. There are no dissipative ...
{ "domain": "physics.stackexchange", "id": 22334, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics, kinetic-theory", "url": null }
Since this value is greater than one, we see here that the first estimator is less efficient than the second estimator as $$n \rightarrow \infty$$. • Although you are bringing up material that I haven't seen yet, I absolutely love your use of the scaled chi-square distribution. Also, +1 for referencing that paper and ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9621075690244281, "lm_q1q2_score": 0.8079144024055342, "lm_q2_score": 0.839733963661418, "openwebmath_perplexity": 337.1374179168605, "openwebmath_score": 0.9999644756317139, "tags...
c#, entity-framework, wpf, mvvm Title: MVVM - ObservableCollection & Entity Framework DbContext I'm trying to catch WPF using MVVM pattern, where my set of models is implementing ObservableCollection as well as Entity Framework's DbContext. My project is quite simple movies database (looking for movies on disc, gettin...
{ "domain": "codereview.stackexchange", "id": 22487, "lm_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#, entity-framework, wpf, mvvm", "url": null }
java, beginner, game, template I don't see much need for your constants class so I have not included it in my suggested code. Your story class holds state (your placeholderIndex) that creates more problems than it solves. The class should be immutable: don't store information on where the iteration is currently. And t...
{ "domain": "codereview.stackexchange", "id": 43416, "lm_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, game, template", "url": null }
Now essentially, we want to know the change in the expected length between the perturbed and unperturbed case. Essentially we want to know, $$\delta E=\int_0^3 \cfrac{\delta E}{\delta p} \cdot \eta(x) \ dx=\cfrac{E(p_{\eta}(x))-E(p(x))}{\epsilon}=\cfrac{d}{d \epsilon} \left[ E(p_{\eta}(x)) \right]$$ Note that we take...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9799765563713599, "lm_q1q2_score": 0.8290037642143584, "lm_q2_score": 0.84594244507642, "openwebmath_perplexity": 585.4001319214722, "openwebmath_score": 0.8097679615020752, "tags"...
ros, bagfile, ros-kinetic Comment by Orhan on 2019-12-27: If you play those bags by hand or in an automated setup repeatedly, and if you don't want to waste 150 seconds for each, yes, you can write a node (or just a single launch file) that publishes those frames once after you play the bag file from the moment you wa...
{ "domain": "robotics.stackexchange", "id": 34198, "lm_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, bagfile, ros-kinetic", "url": null }
bond, orbitals, electronic-configuration, covalent-compounds You can see the $p$ orbitals on each oxygen, the node along the bond axis and the osmium $d$ orbital at the center taking part. Here is a purely $\sigma$ orbital: In this case, the Os $s$ orbital participates with the oxygen $p$ orbitals pointing towards th...
{ "domain": "chemistry.stackexchange", "id": 8322, "lm_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, orbitals, electronic-configuration, covalent-compounds", "url": null }
quantum-chemistry, spectroscopy, orbitals Title: Why is it possible to image LUMO if these orbitals are, by definition, unoccupied? LUMO stands for lowest unoccupied molecular orbital. If it's unoccupied, how is it possible to image it? See for example in this paper ("Pentacene imaged with STM and NC-AFM"). Why not? I...
{ "domain": "chemistry.stackexchange", "id": 4270, "lm_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-chemistry, spectroscopy, orbitals", "url": null }
Outputs the following lines: 9 486 1215 9720 Or, more directly, we can use this program: def get_frequency_atmost(max_freq, n): result = 0 for num in range(10**(n-1), 10**n): digit_freq = [0]*10 for digit in get_digits(num): digit_freq[digit] += 1 if max(digit_freq) > max_freq: result += 1 return 10**n - 10**(n-1) ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.975576914206421, "lm_q1q2_score": 0.831145492928036, "lm_q2_score": 0.851952809486198, "openwebmath_perplexity": 458.1934327865586, "openwebmath_score": 0.6265857815742493, "tags":...
P.S. Also, this is my first post to the community, so thanks for having me. • Welcome to the community. Nice first post. My strategy is probably not the one you want to hear. You just need to do a lot of practice to get the muscles strong. If you practice enough problems, the solutions will start to come to you natura...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9869795083542037, "lm_q1q2_score": 0.8224743034660147, "lm_q2_score": 0.8333245994514084, "openwebmath_perplexity": 203.8867899409166, "openwebmath_score": 0.8140684366226196, "tag...
ros, navigation, ros-kinetic, robot-localization Originally posted by Fetullah Atas with karma: 819 on 2021-08-17 This answer was ACCEPTED on the original site Post score: 0 Original comments Comment by Delbina on 2021-08-17: Dear @Fetullah Atas, thanks a lot for your answer, one more question, if I use slam as the p...
{ "domain": "robotics.stackexchange", "id": 36805, "lm_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, navigation, ros-kinetic, robot-localization", "url": null }
Since $g(\alpha)=0$ then $f(\alpha)$ is the same sign as $2003+182\alpha+18\alpha^2$ but this quadratic has no real root so it is always positive and $f(\alpha)>0$. You can eventually refine the interval for $\beta$ noticing $f(-2)=-4<0$ so $\beta\in]-2,-1[$. Just thought I'd give this as an answer, $$2(-x-1)^5 +3(-x...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9811668723123672, "lm_q1q2_score": 0.8133272896063451, "lm_q2_score": 0.8289387998695209, "openwebmath_perplexity": 158.22085034911794, "openwebmath_score": 0.9287394881248474, "ta...
javascript, jquery Title: First go at my own form validation, and suggestions? Well I just finished my first go at my own form validation (I always used validate plugin) for simple front end. It's definitely small potatoes as it's only meant for a form with 4 fields; 3 required text and one required e-mail. I'm new ...
{ "domain": "codereview.stackexchange", "id": 679, "lm_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", "url": null }
c++, c++14 bool is_Cell_type(const std::string& in) { const auto index = in.find_first_of("0123456789"); if (index == std::string::npos) return false; const auto row = in.substr(0, index); const auto col = in.substr(index); static const int Min = 1; static const int Max = 999999; static ...
{ "domain": "codereview.stackexchange", "id": 20586, "lm_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++14", "url": null }
We need to find a formula for the finite and infinite sums of a the terms of a geometric sequence which will be used to answer the questions in the examples below and write closed form formulas that are easy to use. The finite sum $S$ of the terms of a geometric sequence with first term $a _1$ and $n$th term $a_n = a_1...
{ "domain": "analyzemath.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9947798736874025, "lm_q1q2_score": 0.8133066363688108, "lm_q2_score": 0.8175744784160989, "openwebmath_perplexity": 285.15207501147177, "openwebmath_score": 0.895510196685791, "tags"...
bayesian-probability, expectation-maximization, bayesian-neural-networks Title: Why is the E step in expectation maximisation algorithm called so? The E step on the EM algorithm asks us to set the value of the variational lower bound to be equal to the posterior probability of the latent variable, given the data point...
{ "domain": "ai.stackexchange", "id": 2346, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "bayesian-probability, expectation-maximization, bayesian-neural-networks", "url": null...
ros, visual-odometry, ros-kinetic, realsense-camera Title: Visual Odometry with Realsense Camera I am trying to implement a visual odometry package with my Intel Realsense camera. Is there a way to implement stereo visual odometry with this camera since the depth is calculated with infrared sensors? I am using viso2_...
{ "domain": "robotics.stackexchange", "id": 30786, "lm_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, visual-odometry, ros-kinetic, realsense-camera", "url": null }
c++, performance, array static unsigned __freeId, __quantity; unsigned _id; T** _array; const size_t _n; void iterateAndApply( const VoidResultDelegate function, const BooleanResultDelegate shouldApply) { for(size_t i(0); i < length(); ++i) { (this->*function)(i, ...
{ "domain": "codereview.stackexchange", "id": 29993, "lm_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, array", "url": null }
r, statistics, data-science-model i.e. the dependencies and the goal is to draw from loans data and successfully sample means from population distributions, where I have done the following thus far: library(ggplot2) library(data.table) path <- "/Users/ben/Desktop/R_Data_Lives_Here" loans <- readr::read_csv(paste0(p...
{ "domain": "datascience.stackexchange", "id": 11937, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "r, statistics, data-science-model", "url": null }
vba, excel Next j i = i + 1 Wend End Sub Public Function NameIsInRange(ByVal searchName As String, ByRef range1 As Range, range2 As Range, range3 As Range) As Boolean Dim result As Boolean result = InStr(1, range1, searchName) Or InStr(1, range2, searchName) Or InStr(1, range3, searchName) ...
{ "domain": "codereview.stackexchange", "id": 19287, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "vba, excel", "url": null }
general-relativity, black-holes, energy-conservation, charge, reissner-nordstrom-metric Now we evaluate $\epsilon = (p_t - qA_t) = (p_t + \frac{qQ}{r}) = (f(r)p^t + \frac{qQ}{r})$, where we used $p_t = g_{tt}p^t = f(r)p^t$. Given $ds^2 = d\tau^2 = f(r)dt^2-f^{-1}(r)dr^2$ and $p^\mu \equiv \frac{dx^\mu}{d\tau}$, we can...
{ "domain": "physics.stackexchange", "id": 81779, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "general-relativity, black-holes, energy-conservation, charge, reissner-nordstrom-m...
data-structures, reference-request, database-theory, data-compression, storage The simplest (and likely the most common) realisation of this idea means that the index is only "fast" on the first 8kB of a string, and the index lookup devolves to some other algorithm (e.g. linear or binary search) if there are too many ...
{ "domain": "cs.stackexchange", "id": 18997, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "data-structures, reference-request, database-theory, data-compression, storage", "url...
newtonian-mechanics, forces, friction, work Title: Work done by friction Suppose we have a block of mass $M$ and we are moving it up a curve, very slowly ($a=0$). The surface is not smooth, and coefficient of friction is $\mu=\mu_s=\mu_k$. To move the block we apply a force $F$ to the block tangential to the surface(o...
{ "domain": "physics.stackexchange", "id": 7001, "lm_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, friction, work", "url": null }
gazebo, gazebo-plugin But I cant use the new plugin if I want to interface gazebo with ros and get the laser scan data on a ros topic (For example /base_scan). Does anyone have any insights into this? Any help will be appreciated. Thanks! Naman Originally posted by Naman91 on Gazebo Answers with karma: 13 on 2015-03-...
{ "domain": "robotics.stackexchange", "id": 3729, "lm_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, gazebo-plugin", "url": null }
ros, gdb, ros-kinetic Title: how should I debug using gdb? where to see the results? It might be very trivial but I have problem with gdb debugging. I don't know how should I see xterm window when I launch the nodes using gdb. Originally posted by b.slmn on ROS Answers with karma: 3 on 2018-09-16 Post score: 0 Orig...
{ "domain": "robotics.stackexchange", "id": 31776, "lm_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, gdb, ros-kinetic", "url": null }
human-biology, physiology Title: Ammonia smell after physical exercise? What is the explanation? After exercising vigorously one can sometimes smell ammonia and it feels like it's coming from within the nose actually. There is no indication that others can smell it when I do (i.e. seems to be internal rather than exte...
{ "domain": "biology.stackexchange", "id": 1055, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "human-biology, physiology", "url": null }
f4[n_] := Cases[FrobeniusSolve[{1, 1}, n], {__?PrimeQ}] f5[n_] := Select[FrobeniusSolve[{1, 1}, n], And @@ Map[PrimeQ, #] &] f6[n_] := Pick[#, And @@@ PrimeQ[#]] &[FrobeniusSolve[{1, 1}, n]] Pick is faster than Select, but the fastest formulation is f4[n] with Cases. The number of solutions is twice as large becaus...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9399133447766225, "lm_q1q2_score": 0.846419971495828, "lm_q2_score": 0.9005297947939936, "openwebmath_perplexity": 5281.959200685652, "openwebmath_score": 0.5743876695632935, "tags...
quantum-mechanics, statistical-mechanics, identical-particles \begin{align} P(a|\psi\rangle+b|\phi\rangle) &= aP|\psi\rangle + bP|\phi\rangle \\ &= a(\pm|\psi\rangle)+b(\pm|\phi\rangle) \\ &= \pm(a|\psi\rangle+b|\phi\rangle). \end{align} This shows that any linear combination of them has the property ...
{ "domain": "physics.stackexchange", "id": 15719, "lm_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, statistical-mechanics, identical-particles", "url": null }
python, beginner, console, csv, hash-map def main(): edit_dict() if __name__ == '__main__': main() Here's sample usage... Key Value gil 500 Specify change (yes/no/pop/display): yes Key to change/add: gil Specify gil: 0 Key Value gil ...
{ "domain": "codereview.stackexchange", "id": 9045, "lm_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, console, csv, hash-map", "url": null }
clustering, k-means, unsupervised-learning Title: What to do with stale centroids in K-means When I run Kmeans on my dataset, I notice that some centroids become stale in the they are no longer the closest centroid to any point after some iteration. Right now I am skipping these stale centroids in my next iteration be...
{ "domain": "datascience.stackexchange", "id": 627, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "clustering, k-means, unsupervised-learning", "url": null }
quantum-mechanics, lagrangian-formalism, differentiation, bose-einstein-condensate I don't know what to do with the second integral. Delta function should kill that integral and replace $\mathbf{r}'$ with $\mathbf{r}$, but function $\frac{1}{|\mathbf{r}-\mathbf{r}'|^{3}}$ whould then be '$\frac{1}{0}$'. Do you have an...
{ "domain": "physics.stackexchange", "id": 96574, "lm_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, lagrangian-formalism, differentiation, bose-einstein-condensate...
homework-and-exercises, newtonian-mechanics, acceleration Title: How do I find the angle given the mass, the acceleration and the force acted on a body? My Issue I have the mass, the horizontal acceleration and a force that acts on a body. The force forms an angle $\alpha$ of unknown degrees with the x-axis. I would l...
{ "domain": "physics.stackexchange", "id": 20160, "lm_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, acceleration", "url": null }
weather Yamana and Hayashi (2006) (3) explain that the SLCS are a result of regional atmospheric thermal instability, where the convective available potential energy (CAPE) is high (greater than 2000 Jkg$^{-1}$) and the shear is moderate (greater than 10 ms$^{-1}$, and that the phenomena also coincides with severe loc...
{ "domain": "earthscience.stackexchange", "id": 313, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "weather", "url": null }
c, sorting, quick-sort, radix-sort Title: Radix sort is deceiving I wanted to compare radix_sort to quick_sort for values limited to 0..127 so I implemented this : void bin_radix_sort(int *a, const size_t size, int digits) { assert(digits % 2 == 0); int *b = malloc(size * sizeof(int)); for (int exp = 0;...
{ "domain": "codereview.stackexchange", "id": 38081, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c, sorting, quick-sort, radix-sort", "url": null }
then the test is inconclusive, because there exist both convergent and divergent series that satisfy this case. The sums are heading towards a value (1 in this case), so this series is convergent. Series of Numbers 4. Includes the nth-Term, geometric series, p-Series, integral test, ratio test, comparison, nth-Root, an...
{ "domain": "casandrea.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9896718453483273, "lm_q1q2_score": 0.8351792253683175, "lm_q2_score": 0.8438951045175643, "openwebmath_perplexity": 379.3981477732795, "openwebmath_score": 0.89300936460495, "tags":...
c, beginner /* kinds of arguments and format strings * S#: register number, e.g. $123 * #: 8-bit unsigned, e.g. #1F * ##: the same, 16 Bit, e.g. #1337 * ###: the same, 24 Bit, e.g. #1F2E3D * F##: relative 16-bit adress, forwards, e.g.. @+4*#1234 * B##: the same, backwards, z.B. @-4*#1234 * F###, B###: the...
{ "domain": "codereview.stackexchange", "id": 855, "lm_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", "url": null }
- Hi @BrianFitzpatrick, really cool factorization :-). Can I ask you a naive follow-up question? Since $P$ and $Q$ are both invertible, why does determining the rank of $M$ just reduce to checking the rank of $M'$? The only rule / theorem that I know about rank is that rank (AB) = rank (BA), and then some rank inequali...
{ "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.8564145663751892, "lm_q2_score": 0.8723473614033683, "openwebmath_perplexity": 338.30605092368046, "openwebmath_score": 0.9768921732902527, "ta...
n}m(-1/2)}{2\sin\frac{\pi n}m}=0\end{align} If $$m$$ is a divisor of $$n$$, then $$\sum_{k=0}^{m-1}\cos\frac{2\pi nkh}{b-a}=\sum_{k=0}^{m-1}\cos\frac{2\pi nk}m=m$$ Since $$\cos\alpha\left(k+\frac12\right)-\cos\alpha\left(k-\frac12\right)=-2\sin\alpha k\sin\alpha/2$$, if $$m$$ is not a divisor of $$n$$, \begin{align}\su...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9857180681726682, "lm_q1q2_score": 0.8981663005391195, "lm_q2_score": 0.9111797069968974, "openwebmath_perplexity": 1170.837746442434, "openwebmath_score": 0.7842830419540405, "tag...