text
stringlengths
49
10.4k
source
dict
c#, algorithm, strings, search long i = 0; // index for source int j = 0; // index for pattern while (more) { more = FillBuffer( buffer, source, i, patternLength, ...
{ "domain": "codereview.stackexchange", "id": 33207, "lm_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, strings, search", "url": null }
c++, opencv, cv-bridge Title: Sensor msg to an opencv image I am attempting to convert a sensor_msgs/Image msg into something displayable in opencv. I am using cv_bridge to accomplish this conversion. When I catkin build, I get: CMakeFiles/image_reader_node.dir/src/image_reader_node.cpp.o: In function `call_back(boos...
{ "domain": "robotics.stackexchange", "id": 21899, "lm_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++, opencv, cv-bridge", "url": null }
ideal-gas, statistics $$ We can see that $\beta=\frac1{kT}$ and $\alpha=\frac32$. Your confusion may arise from the fact that besides parameters $\alpha,\beta$ (shape, rate) for gamma distribution, parameters $\alpha,\theta$ (shape,scale) are also widely used ($\theta=1/\beta$). What adds to the confusion, is that sca...
{ "domain": "physics.stackexchange", "id": 65190, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ideal-gas, statistics", "url": null }
quantum-mechanics, hilbert-space, operators, wavefunction, superposition Then the matrix form of the wave function is $$\begin{bmatrix} \psi_1 \\ \psi_2 \end{bmatrix} $$ the operator have infinite columns, so there is no operator can act on the wave function? or... is the matrix multiplication between infinite mat...
{ "domain": "physics.stackexchange", "id": 85683, "lm_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, hilbert-space, operators, wavefunction, superposition", "url"...
\displaystyle \begin{aligned} I_{1} & = \int\frac{t}{t(t^2-1)}\;{dt} \\& = \int\frac{1}{(t-1)(t+1)}\;{dt} \\ & = \frac{1}{2}\int \frac{(t+1)-(t-1)}{(t+1)(t-1)}\;{dt} \\& = \frac{1}{2}\int\frac{1}{t-1}\;{dt}-\frac{1}{2}\int\frac{1}{t+1}\;{dt} \\& = \frac{1}{2}\ln(t-1)-\frac{1}{2}\ln(t+1)+k \\ & = \frac{1}{2}\ln\left\{\f...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9752018398044144, "lm_q1q2_score": 0.8308259380731579, "lm_q2_score": 0.8519528000888386, "openwebmath_perplexity": 2719.043267199373, "openwebmath_score": 0.998645007610321, "tags...
newtonian-mechanics, newtonian-gravity, equivalence-principle It is important to notice that there are usually many ways one can describe a theory mathematically, but it does not mean all of them are simple, or convenient. For example, one could argue that the other planets orbit around the Earth, provided we include ...
{ "domain": "physics.stackexchange", "id": 83775, "lm_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, newtonian-gravity, equivalence-principle", "url": null }
matlab, fft, fourier-transform, sampling, ifft For $\omega$ continuous from $0$ to $2\pi$ (for unique span) Notice the two key differences: The time increment n in the DTFT extends to plus and minus infinity, and the frequency domain variable $\omega$ is a continuous function. As we add zeros to x[n] in the DFT, we ap...
{ "domain": "dsp.stackexchange", "id": 9955, "lm_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, fft, fourier-transform, sampling, ifft", "url": null }
gazebo, transforms rosrun tf view_frams gives the fowwing output: Warning: TF_OLD_DATA ignoring data from the past for frame burger_2/base_footprint at time 2.76477e+09 according to authority /gazebo Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained at line 277 in /tmp/binarydeb/ros-kin...
{ "domain": "robotics.stackexchange", "id": 4326, "lm_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, transforms", "url": null }
electromagnetism, fourier-transform, differentiation, plasmon, photonics which can be generalized for an arbitrary derivative by induction: $$\mathfrak{F}[{x}^{(n)}](\omega) = ( j \omega)^n \ \mathfrak {F}[x](\omega),$$ You can now use this property to derive your second equation. Take the Fourier transform of both si...
{ "domain": "physics.stackexchange", "id": 63210, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, fourier-transform, differentiation, plasmon, photonics", "url"...
python, regex (for PaymentBuilder) instead. You should also use a with statement to manage your files instead of manually closing them; which you forgot to do anyway… Lastly, the Person._set_extras method is never called and can be safely removed (especially since it uses an undefined variable). Stop writing classes T...
{ "domain": "codereview.stackexchange", "id": 29429, "lm_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, regex", "url": null }
(Here r and θ are polar coordinates in the plane. • Solution: We need to find two concentric circles with radii rmin and rmax such that r <˙ 0 on the outer circle. 4 The system shown in Figure 2. 5 Show that the systems are equivalent where x = r cos θ, y = r sin θ ( ( ṙ = r(1 − r2 ) ẋ = x − y − x(x2 + y 2 ) ẏ = x + y −...
{ "domain": "coopruah.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9869795102691454, "lm_q1q2_score": 0.8224743009762946, "lm_q2_score": 0.8333245953120233, "openwebmath_perplexity": 998.8626031836937, "openwebmath_score": 0.6888613104820251, "tags": nu...
c++, matrix, computational-geometry, graphics, c++17 MatrixToVectorContainer() : matrix() {} ~MatrixToVectorContainer() {} }; template <typename Type> struct MatrixToVectorContainer <3, 1, Type> { using MatCont = MatrixContainer<3, 1, Type, ((3 * 1) > MAX_MATRIX_SIZE)>; union { ...
{ "domain": "codereview.stackexchange", "id": 30704, "lm_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++, matrix, computational-geometry, graphics, c++17", "url": null }
homework-and-exercises, electromagnetism, magnetostatics Title: Cylindrical shell in magnetic field Exercise: 'Infinitely long cylindrical shell of inner radius a and outer radius b of material of magnetic susceptibility χ is placed in otherwise uniform magnetic $B_0$ perpendicular to cylinder's axis. What is the resu...
{ "domain": "physics.stackexchange", "id": 62801, "lm_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, electromagnetism, magnetostatics", "url": null }
c# Title: Saving settings in user.config This question came up today on StackOverflow. I find it more unfortunate than (as some others said) idiotic. And it recalled an old function I have which I just remembered. I have a user.config file which has some settings which can be updated through user action. My rationale ...
{ "domain": "codereview.stackexchange", "id": 1132, "lm_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 }
organic-chemistry, nmr-spectroscopy, mass-spectrometry Then, start training with simpler molecular structures in first place. You may use, for example, Field's training booklet from the shelves (either print or/and electronic resource) of your school's library. The obstacle here: for the majority of the sets, there ...
{ "domain": "chemistry.stackexchange", "id": 14820, "lm_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, nmr-spectroscopy, mass-spectrometry", "url": null }
physical-chemistry, thermodynamics, stability, solid-state-chemistry By definition a more stable compound decomposes less readily. Decomposition here refers to the reverse of reaction (1). When comparing the tabulated oxides, a more stable oxide has a more negative free energy of formation. Therefore $ \ce{ZnO(s)}$ is...
{ "domain": "chemistry.stackexchange", "id": 15107, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "physical-chemistry, thermodynamics, stability, solid-state-chemistry", "url": ...
slam, navigation, odometry, laser Title: Get an odom from scan Hi everyone, I look for a package that can compute an odometry based on laser (for a robot without odometry, of course) I have tested the odometry generated with hectorslam and it missed the Twist parameter within the odometry. Did I miss something ? Ori...
{ "domain": "robotics.stackexchange", "id": 22631, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "slam, navigation, odometry, laser", "url": null }
javascript, beginner, node.js, numerical-methods Secondly, the return function calculates: 2 * 2 ** 0.5 before returning... This is a bit of a waste, as the values are not dynamic- and so the result of that calculation could be inserted as a constant, so that those operations are not wasted at run time. Finally, and t...
{ "domain": "codereview.stackexchange", "id": 43297, "lm_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, beginner, node.js, numerical-methods", "url": null }
c, programming-challenge Now should the element type of square ever change you don't have to remember to also update all the malloc calls. This SO answer has the details of why this works. You do no free the memory allocated for square, transform and memSpace. Technically this is not a problem since the program is ver...
{ "domain": "codereview.stackexchange", "id": 18346, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c, programming-challenge", "url": null }
quantum-gate, matrix-representation, continuous-variable Title: Matrix representation of continuous-variable gates In the introduction to continuous-variable quantum computing by Strawberry Fields (Xanadu), it lists the primary CV gates (rotation, displacement, squeezing, beamsplitter, cubic phase) along with their un...
{ "domain": "quantumcomputing.stackexchange", "id": 311, "lm_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-gate, matrix-representation, continuous-variable", "url": null }
c++, monads template <typename Ret, typename Other> requires details::is_variant_v<std::remove_cvref_t<Other>> static auto united( Other&& other ) { return other.index() == 0 ? from_variant_t<Ret>( details::make_variant_index_t<Ret>::fromOther( 0, 0, std::forward<Other>( other )...
{ "domain": "codereview.stackexchange", "id": 43610, "lm_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++, monads", "url": null }
c++, c++11, linked-list The first one takes in a pointer and directly uses it. Any other nodes that are pointed to by the node will be added to the list, although not included in size, so will be output by your print method, however will be beyond the tail of the list. That sounds wrong. The second method only adds ...
{ "domain": "codereview.stackexchange", "id": 20635, "lm_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, linked-list", "url": null }
parsing, bash, linux, shell See How do I do string manipulations in bash? for more like this, or the POSIX parameter expansion reference. function keyword not necessary It's less portable and doesn't buy you anything, so just omit it. See difference between “function foo() {}” and “foo() {}” for more details. Variable...
{ "domain": "codereview.stackexchange", "id": 17866, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "parsing, bash, linux, shell", "url": null }
thermodynamics, differentiation, calculus The sum of the first two terms on the right is zero: $$T\sigma = \sum_k \delta Y_kdX_k \ge 0 \tag{5}$$ The left side of Eq. 5 is the dissipation that is never negative. Your question was to derive Eq. 6 taht you get by dividing both sides by $T$ $$\sigma = \frac{1}{T}\sum_k ...
{ "domain": "physics.stackexchange", "id": 95948, "lm_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, differentiation, calculus", "url": null }
machine-learning, neural-network, classification, deep-learning, keras After struggling for about one day finally I want to express my opinion about the problem. Depending on the problems, they may be solved using machine-learning or other techniques. Machine learning problems are those which you can not define an app...
{ "domain": "datascience.stackexchange", "id": 2369, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machine-learning, neural-network, classification, deep-learning, keras", "url...
atoms Title: Conversion atom to another One child has claimed to have find a solution to all physical problems. On asking for details, he said that all periodic elements has common components, i.e. electrons, protons, neutrons. The child has suggested a solution: convert atom to another by adding electron. This way on...
{ "domain": "chemistry.stackexchange", "id": 5541, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "atoms", "url": null }
sat Title: What is the k-SAT problem? First of all I am of course aware of the wikipedia article: http://en.wikipedia.org/wiki/Boolean_satisfiability_problem However I still do not understand exactly what the problem is. To demonstrate that I've tried, I think it is as follows but I am not sure: The problem of checki...
{ "domain": "cstheory.stackexchange", "id": 123, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "sat", "url": null }
ros NODES / camera_rgb_frame_tf (tf/static_transform_publisher) camera_rgb_optical_frame_tf (tf/static_transform_publisher) debayer (nodelet/nodelet) openni_driver (nodelet/nodelet) rgbd_image_proc (nodelet/nodelet) rgbd_manager (nodelet/nodelet) ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found pro...
{ "domain": "robotics.stackexchange", "id": 16334, "lm_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 }
signal-analysis, acoustics, beamforming, sensor, psychoacoustics Title: What is the driving Voltage? While I was looking into ultrasonic transducer in order to transmit and receive a beam, I came across specification of a transducer stating driving voltage as 20Vrms. I am not sure what actually does it mean and where ...
{ "domain": "dsp.stackexchange", "id": 9064, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "signal-analysis, acoustics, beamforming, sensor, psychoacoustics", "url": null }
electromagnetic-radiation, nuclear-physics, atomic-physics, gamma-rays Title: Gamma spectroscopy – What is this structure? What is this strange structure in the gamma spectrum between 450 and 550 keV (below) around the peak at 477 keV? The spectrum seems to rise to a plateau (almost like a small Compton plateau) aroun...
{ "domain": "physics.stackexchange", "id": 31383, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetic-radiation, nuclear-physics, atomic-physics, gamma-rays", "url": ...
mechanical-engineering, electrical-engineering Please help me understand how to estimate the amount of air entering the engine for combustion. An IC engine is (for these purposes) a pump. It moves a certain volume of gas through on each cycle (one revolution for a 2-stroke, two for a 4-stroke). That amount is reported...
{ "domain": "engineering.stackexchange", "id": 663, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "mechanical-engineering, electrical-engineering", "url": null }
computability, undecidability, halting-problem, nondeterminism The verifier will run $\mathsf{w}$ for exactly that many Turing machine iterations, see that $\mathsf{w}$ actually didn't halt, and reject. But what about its complement, $\mathsf{\text{NOT-HALT}}$? It is well-known that it is not in $\mathsf{RE}$. As suc...
{ "domain": "cs.stackexchange", "id": 19943, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "computability, undecidability, halting-problem, nondeterminism", "url": null }
What do these figures mean? For starting points near the origin, and small velocities, the pendulum goes into a stable limit cycle. For others, the trajectory appears to fly off into y1 space. Recall that y1 is an angle that has values from $$-\pi$$ to $$\pi$$. The y1 data in this case is not wrapped around to be in th...
{ "domain": "cmu.edu", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.977022625406662, "lm_q1q2_score": 0.807716123326219, "lm_q2_score": 0.8267117898012104, "openwebmath_perplexity": 1739.0459703522588, "openwebmath_score": 0.5162999629974365, "tags": null, ...
c++, c++11, reinventing-the-wheel, stl Title: STL List Implementation I've implemented a simple C++ STL like list. It's pretty simple, all the constructors and methods haven't been implemented here, but majors are. #ifndef list_H #define list_H #include <iostream> #include <stdexcept> template <typename T> class l...
{ "domain": "codereview.stackexchange", "id": 9237, "lm_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, reinventing-the-wheel, stl", "url": null }
c++, algorithm, c++11 The reversed algorithm can be written as template < typename I, typename T = value_type_t<I>, typename F = std::plus<>, typename P = std::less<> > constexpr std::pair<I, T> reverse_max_accumulation_not_empty( I first, I last, const T& init = T{}, F op = F{}, P pred = P{}) ...
{ "domain": "codereview.stackexchange", "id": 24572, "lm_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, c++11", "url": null }
n Hn ln(n) + 1/(2n) Error 1 1 0.5 0.5 2 1.5 0.943147181 0.556852819 3 1.833333333 1.265278955 0.568054378 4 2.083333333 1.511294361 0.572038972 5 2.283333333 1.709437912 0.573895421 6 2.45 1.875092803 0.574907197 7 2.592857143 2.01733872 0.575518422 8 2.717857143 2.141941542 0.575915601 9 2.828968254 2.252780133 0.5761...
{ "domain": "mathschallenge.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9883127420043056, "lm_q1q2_score": 0.8214292625598176, "lm_q2_score": 0.831143045767024, "openwebmath_perplexity": 949.6844634121494, "openwebmath_score": 0.8273628354072571, "tag...
organic-chemistry, solubility, melting-point Title: Why is the melting point of p-dichlorobenzene higher than those of o-dichlorobenzene and m-dichlorobenzene? I was going through alkyl and aryl halides and noted the following statement in my textbook: p-dichlorobenzene has higher melting point and solubility than th...
{ "domain": "chemistry.stackexchange", "id": 8174, "lm_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, solubility, melting-point", "url": null }
$\phantom{\rule{2em}{0ex}}\left[\begin{array}{ccc}\hfill 1& \hfill -2& \hfill 4\\ \hfill -4& \hfill -3& \hfill -3\\ \hfill -1& \hfill 13& \hfill 1\\ \hfill \end{array}\right]\begin{array}{c}\hfill \\ R2+4×R1\hfill \\ R3+1×R1\hfill \end{array}⇒\left[\begin{array}{ccc}\hfill 1& \hfill -2& \hfill 4\\ \hfill 0& \hfill -11&...
{ "domain": "github.io", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9840936092211993, "lm_q1q2_score": 0.8441241085254859, "lm_q2_score": 0.8577681031721325, "openwebmath_perplexity": 257.27628495573083, "openwebmath_score": 0.8317229151725769, "tags": nul...
python, python-2.x # Fabric connection settings env.host_string = base_url env.key_filename = [os.path.join(rds_basedir, '.ssh', 'rdsmanager_priv.openssh')] env.user = 'user' env.project_root = '/var/lib/tomcat7/webapps' logger.logger.info('Using URL: %s, user: %s, RDS-key: %s, Tomcat webapps: %s...
{ "domain": "codereview.stackexchange", "id": 14331, "lm_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", "url": null }
# Is this an automorphism over a cyclic group? Problem: If $a, b \in G$ are generators of a group $G$, then there is an automorphism $f:G\to G$ such that $f(a)=b$. Since $G=\langle a \rangle$ and $b\in G$, I proposed that $f$ be given by: $$f(g)=g^t, \text{where } t\in\mathbb{Z} \text{ is the integer such that }a^t=...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9748211575679041, "lm_q1q2_score": 0.8080670825015271, "lm_q2_score": 0.8289388019824947, "openwebmath_perplexity": 114.79278333134268, "openwebmath_score": 0.9732831120491028, "ta...
Back to tutorial index # The Runge phenomenon ## Introduction In this lab, we will investigate the Runge Phenomenon and see how we might be able to fix it by choosing interpolating points wisely. As a classic example of the Runge Phenomenon, we try to interpolate the function f(x) = 1/(1 + 25x^2) at equally spaced ...
{ "domain": "boisestate.edu", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9879462215484651, "lm_q1q2_score": 0.8337229721339351, "lm_q2_score": 0.8438950966654774, "openwebmath_perplexity": 3460.226335288083, "openwebmath_score": 0.6008418202400208, "tags":...
solid-state-physics, computational-physics, molecular-dynamics Title: Symmetry in program for ewald summation The formula for Ewald summation as given in Allen and Tildesley - $$ U = U^{(r)} + U^{(k)} + U^{(bc)} + U^{self} $$ where the k-space contribution of potential is given by $$ U^{(k)} = \frac{1}{\pi L^{3}}\sum...
{ "domain": "physics.stackexchange", "id": 24645, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "solid-state-physics, computational-physics, molecular-dynamics", "url": null }
classical-mechanics, elasticity, continuum-mechanics $$M(x) = -E\,I\,\frac{{\rm d}^2\, u(x)}{{\rm d}\,x^2}\tag{2}$$ Since your first equation is wrong, so is the second. Now, the fourth equation is correct as follows. As we have seen, the strain $\epsilon(x,\,y)$ an orthogonal distance $y$ from the neutral axis is $\f...
{ "domain": "physics.stackexchange", "id": 17401, "lm_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, elasticity, continuum-mechanics", "url": null }
java, algorithm, data-mining by: supportCountMap.put(tmp, supportCount.getOrDefault(tmp, 0)+1); Actually, I'm doing a project which includes Apriori algorithm. I've tried making one but I didn't really liked my code because it was not optimized and clean so I decided to search for Apriori codes to compare and learn f...
{ "domain": "codereview.stackexchange", "id": 17719, "lm_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, data-mining", "url": null }
ros, tutorial, node No Makefile in package rosunit [rosmake-0] Finished <<< rostime ROS_NOBUILD in package rostime No Makefile in package rostime [rosmake-0] Starting >>> roscpp_traits [ make ] ...
{ "domain": "robotics.stackexchange", "id": 18197, "lm_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, tutorial, node", "url": null }
ros-kinetic Originally posted by gvdhoorn with karma: 86574 on 2018-07-20 This answer was ACCEPTED on the original site Post score: 1 Original comments Comment by mherrmann on 2018-07-20: Good question, obviously I didn't knew that it was available, I did only check here: http://wiki.ros.org/image_common and started ...
{ "domain": "robotics.stackexchange", "id": 31309, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-kinetic", "url": null }
# Math Help - Finding roots 1. ## Finding roots Is there any way I can find the roots to these easily or is it just guessing and checking? $r^3 + r^2 - 2 = 0$ I also what to find the roots to: $r^3 + 3r^2 + 3r + 1 = 0$ Any help would be appreciated. 2. Originally Posted by DarK Is there any way I can find the roo...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9863631679255075, "lm_q1q2_score": 0.8132188732804532, "lm_q2_score": 0.8244619220634457, "openwebmath_perplexity": 282.91295593946177, "openwebmath_score": 0.8491646647453308, ...
performance, r 414280 574275 838357 336346 35990 473775 129153 663240 18251 639429 988747 901344 519596 265661 70433 788674 813646 999576 621160 180106 731990 307876 524949 115867 172937 704220 283646 432432 350521 626598 853350 666970 504578 96422 203563 903132 335734 990022 66...
{ "domain": "codereview.stackexchange", "id": 35824, "lm_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, r", "url": null }
zoology Title: What is the reason for cats not liking water? I have two cats myself, a Siberian and a Maine Coon, neither of which like water. In fact, they detest it - like most cats. I was wondering what the reason for this was and if any of you have any interesting theories as to why this is the case. Thanks in adv...
{ "domain": "biology.stackexchange", "id": 7561, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "zoology", "url": null }
# Evaluate Definite Integral Challenge #### anemone ##### MHB POTW Director Staff member Evaluate $$\displaystyle \int_0^{\pi} \frac{\cos 4x-\cos 4 \alpha}{\cos x-\cos \alpha} dx$$ #### Ackbach ##### Indicium Physicus Staff member I'm sure everyone here would consider it cheating, but my handy-dandy HP 50g yields $...
{ "domain": "mathhelpboards.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9852713852853137, "lm_q1q2_score": 0.8055327301640609, "lm_q2_score": 0.8175744695262775, "openwebmath_perplexity": 7480.950953789377, "openwebmath_score": 0.9633428454399109, "ta...
ros, kinect, moveit, ros-indigo NODES /move_group/camera/ camera_nodelet_manager (nodelet/nodelet) depth_metric (nodelet/nodelet) depth_metric_rect (nodelet/nodelet) depth_points (nodelet/nodelet) depth_rectify_depth (nodelet/nodelet) depth_registered_hw_metric_rect (nodelet/nodelet) dept...
{ "domain": "robotics.stackexchange", "id": 27933, "lm_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, moveit, ros-indigo", "url": null }
For every $N$, there exists $P$ such that if $n \geq N$, then $\varphi(n) \geq P$. (1 always works, for example.) Moreover, this set is finite since it is bounded above by $\varphi(N)+1$. Now let $P_N$ be the largest such $P$ for a given $N$. This gives a function $P : \mathbb{N} \rightarrow \mathbb{N}$ such that, if $...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9905874123575265, "lm_q1q2_score": 0.8028502049100867, "lm_q2_score": 0.8104789086703225, "openwebmath_perplexity": 122.45264547329877, "openwebmath_score": 0.9632298350334167, "tags":...
cc.complexity-theory, quantum-computing, separation For every $F\in\mathscr{F}$, $L(F)\in\mathsf{BQP}^F$. This is because to decide if $x\in L(F)$, we can first check if $x=0^n$ for some $n$, and if so, we apply Simon's algorithm to decide if $F_n$ is injective, with bounded error (Since the $\mathsf{BQP}$ machine has...
{ "domain": "cstheory.stackexchange", "id": 5534, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "cc.complexity-theory, quantum-computing, separation", "url": null }
c#, parsing, antlr, rubberduck _currentNode = CreateProcedureNode(context); _currentScope = _project + "." + _module + "." + ((ProcedureNode)_currentNode).Name; into a new method, like you have done with AddCurrentMember: private void CreateNodeFromContext(dynamic context){ var node = CreateProcedureNode(context)...
{ "domain": "codereview.stackexchange", "id": 11792, "lm_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#, parsing, antlr, rubberduck", "url": null }
Veritas Prep Reviews Math Expert Joined: 02 Sep 2009 Posts: 37109 Followers: 7252 Kudos [?]: 96499 [0], given: 10752 ### Show Tags 05 Jun 2013, 23:44 PKPKay wrote: Sarang wrote: For 1 hour- Machine A rate- 2000 envelopes Machine B+C rate- 2400 envelopes Since A + C = 3000 envelopes A's rate is 2000 envelopes as ab...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. Yes\n2. Yes\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 1, "lm_q1q2_score": 0.803173791645582, "lm_q2_score": 0.803173791645582, "openwebmath_perplexity": 5697.167211946864, "openwebmath_score": 0.6227170825004578, "tags": null, "url": "...
array, regex, console, reflection, phpunit /** * Sets color of theme selected for web design. * * @param array $color */ private function setHighlightTheme(array $color): void { ini_set("highlight.comment", 'rgb(' . $color[0] . '); background-color: rgb(' . $color[5] . ');'); ...
{ "domain": "codereview.stackexchange", "id": 40733, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "array, regex, console, reflection, phpunit", "url": null }
navigation, robot-localization, transform Title: How is the orientation of frame /odom initialized? What determines the orientation of the tf frame /odom when it is initialized? On the page for GPS integration, here. It says: "The odom and map frames are world-fixed frames and generally have their origins at the vehi...
{ "domain": "robotics.stackexchange", "id": 24732, "lm_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, robot-localization, transform", "url": null }
• The following seems a much simpler argument, is it incorrect? Let $p: Y\times S^1\to S^1$ be the projection, it follows from $\pi_1(X)$ finite that $(p\circ f)_*$ is constant and $p\circ f$ is null-homotop. If $h_t$ is the homotopy contracting the map, then $(f_Y, h_t)$ is a homotopy between $f=(f_Y,f_{S^1})$ and $g=...
{ "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.8175276498492596, "lm_q2_score": 0.8459424373085146, "openwebmath_perplexity": 118.7426049840826, "openwebmath_score": 0.9447600245475769, "tag...
organic-chemistry, stereochemistry, carbonyl-compounds Title: What is the reason for enantiomerically pure ketone reaction under acidic conditions giving a 1:1 mixture of diastereoisomers? (b) Treatment of the enantiomerically pure ketone C under acidic conditions leads to a 1:1 mixture of diastereomers My thinking ...
{ "domain": "chemistry.stackexchange", "id": 4794, "lm_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, stereochemistry, carbonyl-compounds", "url": null }
turing-machines Title: Turing Machine that triples a unary format number? I managed to figure out how to double a unary format number however I have had no such success in tripling it. An input tape would be of the following format Λ111Λ and the output would be like Λ111Λ111111111Λ with the tripled number coming direc...
{ "domain": "cs.stackexchange", "id": 18226, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "turing-machines", "url": null }
c++, multithreading, c++17 Title: LockedValue implementation I am working on class for simple sharing values between threads without race-conditions, which can't be a std::atomic (this means, no POD and no trivially-copyable types). The initial intention was to lock a std::function against writing while reading from a...
{ "domain": "codereview.stackexchange", "id": 28637, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, multithreading, c++17", "url": null }
classical-mechanics Title: Rotating disc problem This question comes into my mind this evening. Suppose I have a rotating disc whose maximum rotation speed is $500$ rpm (say). On this rotating disc I have placed another small rotating disc with same property and in such a way that both can rotate in this configuratio...
{ "domain": "physics.stackexchange", "id": 26279, "lm_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", "url": null }
More later, Nalin Pithwa # A good way to start mathematical studies … I would strongly suggest to read the book “Men of Mathematics” by E. T. Bell. It helps if you start at a young age. It doesn’t matter if you start later because time is relative!! 🙂 Well, I would recommend you start tinkering with mathematics by...
{ "domain": "madhavamathcompetition.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9766692305124306, "lm_q1q2_score": 0.8221852129404439, "lm_q2_score": 0.8418256532040707, "openwebmath_perplexity": 4471.615701938321, "openwebmath_score": 0.653332889080047...
gazebo y: -0.5880023016380882 z: 2.9400153496814232 } body_2_force { x: 0 y: 0 z: 0 } body_1_torque { x: 1.1760044496335631 y: -1.3792103043140376 z: -0.20320399391842819 } body_2_torque { x: 0 y: 0 z: 0 } } time { sec: 29 ...
{ "domain": "robotics.stackexchange", "id": 3050, "lm_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 }
gravity, black-holes, event-horizon, singularities, states-of-matter Title: Black-holes are in which state of matter? Wikipedia says, A black hole grows by absorbing everything nearby, during its life-cycle. By absorbing other stars, objects, and by merging with other black-holes, they could form supermassive Black-...
{ "domain": "physics.stackexchange", "id": 23772, "lm_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, black-holes, event-horizon, singularities, states-of-matter", "url": nu...
logic, first-order-logic, propositional-logic Title: Relations between statements involving universal quantifier, conditional and biconditional If we consider two predicates: $b(x)$: x is a boy $c(x)$: x is clever Then, there are four statements involving $∀, b(x), c(x), →$ and $↔$ . These are below along with my int...
{ "domain": "cs.stackexchange", "id": 5805, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "logic, first-order-logic, propositional-logic", "url": null }
ros-melodic fs["CameraMat"] >> CameraMat; fs["DistCoeff"] >> DistCoeff; fs["ImageSize"] >> ImageSize; fs["DistModel"] >> DistModel;
{ "domain": "robotics.stackexchange", "id": 33712, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-melodic", "url": null }
c#, image, wpf, weak-references private BitmapImage GetFromDisk(int id) { Uri uri = new Uri(Filepath + id + ".png"); return new BitmapImage(uri); } } I don't want to implement a singleton of that class but for now let's assume that my project always uses the same instance. Everywhere that I re...
{ "domain": "codereview.stackexchange", "id": 11630, "lm_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#, image, wpf, weak-references", "url": null }
homework-and-exercises, newtonian-mechanics, collision, projectile, free-fall Title: Simple mathematical model for a bouncing ball I started coding a physics program that simulates gravity - specifically a bouncing ball - and I've already learned a lot researching the topic but the bounce still doesn't look quite righ...
{ "domain": "physics.stackexchange", "id": 30921, "lm_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, collision, projectile, free-fall", ...
ruby, installer Cleaning up after service. -rwxr-xr-x 1 root root 935 Feb 12 13:38 /etc/init.d/consul File /etc/init.d/consul not found, skip -rw-r--r-- 1 root root 19883 Feb 15 15:55 /var/log/consul.log -rwxr-xr-x 1 root root 20417720 Jan 14 21:33 /usr/local/bin/consul Use Kernel#abort: puts "[#{$me}] ERROR: host t...
{ "domain": "codereview.stackexchange", "id": 18507, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ruby, installer", "url": null }
ros, catkin, gtest, unit-testing, ros-groovy Title: how to run gtest unit in groovy I have built laser_geometry with catkin, no error. as discription in ros wiki about gtest. It will generate a runable test. But there is nothing. How do I test the package? Someone has used this package? Help me please. Thanks a lot! ...
{ "domain": "robotics.stackexchange", "id": 13188, "lm_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, catkin, gtest, unit-testing, ros-groovy", "url": null }
filters, filter-design, infinite-impulse-response, digital-filters Title: Correcting Impulse Invariance Method I'm trying to find out if the correction (Jackson, Nelatury, Mecklenbräuker) could improve the (IIM based) filter response near Nyqvist. Here's my c++ routine (which is used for to calculate various RIAA and ...
{ "domain": "dsp.stackexchange", "id": 3638, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "filters, filter-design, infinite-impulse-response, digital-filters", "url": null }
javascript, jquery, portability, userscript, linkedin // Throttling adapted from https://developer.mozilla.org/en-US/docs/Web/Events/scroll (function() { var throttle = function(type, name, obj) { var obj = obj || window; var running = false; var func = function() { if (running)...
{ "domain": "codereview.stackexchange", "id": 15339, "lm_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, portability, userscript, linkedin", "url": null }
classical-mechanics, work, power Title: How Much Power Is Required to Hover? Suppose I have a spaceship that weighs 1,000 kilograms. I take it to the surface of the planet with a gravitational acceleration of 10 meters per second-squared. The planet has no atmosphere and I'm far enough off the surface that there are n...
{ "domain": "physics.stackexchange", "id": 61445, "lm_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, work, power", "url": null }
optics, waves, electric-fields, interference, diffraction Title: Does constructive interference automatically imply bright fringes at all times? Suppose two waves interfere constructively at some point, in a double slit experiment set-up. This essentially means that the two waves have their peaks and troughs in sync w...
{ "domain": "physics.stackexchange", "id": 85498, "lm_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, waves, electric-fields, interference, diffraction", "url": null }
image, makefile, make Title: Makefile for automatically processing image files I have a Makefile that is used to automatically process some image files. The basic idea behind this is copy everything from col-noborder and col-rewnew to col use ImageMagick convert to copy the files from col-addborder to col and add a p...
{ "domain": "codereview.stackexchange", "id": 8008, "lm_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, makefile, make", "url": null }
java, performance, multithreading, http, guava if (CollectionUtils.isEmpty(hostnames)) { Could be changed to if (hostnames.isEmpty()) { CollectionUtils checks nulls as well, but if it's a null you get a NullPointerException in the for loop earlier. Instead of StringUtils.isEmpty(hostname) I usually prefer StringUti...
{ "domain": "codereview.stackexchange", "id": 13361, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, performance, multithreading, http, guava", "url": null }
electromagnetism, electromagnetic-radiation, magnetic-fields, electric-circuits, electric-current Title: Biot - Savart Law and time - variable current Is the Biot Savart law valid also with currents which are functions of time (for instance a sine wave)? Strictly speaking, the Biot-Savart law is only valid in magnetos...
{ "domain": "physics.stackexchange", "id": 59498, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, electromagnetic-radiation, magnetic-fields, electric-circuits, e...
c++, multithreading, thread-safety, pthreads condition++; pthread_cond_signal (&conditionVariable); pthread_mutex_unlock (&demoMutex); } } int main () { checkServerExists (1, "anisha"); checkServerExists (2, "kaul"); checkServerExists (1, "sanjeev"); checkServerExists (2, "sharma")...
{ "domain": "codereview.stackexchange", "id": 1445, "lm_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, thread-safety, pthreads", "url": null }
ros, force, sensor Originally posted by lucasw with karma: 8729 on 2016-09-21 This answer was ACCEPTED on the original site Post score: 0 Original comments Comment by Masoud on 2016-09-21: Thanks lucas, but I want to know in which line of source code I should I insert my "for" loop, and and how I can publish the tota...
{ "domain": "robotics.stackexchange", "id": 25813, "lm_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, force, sensor", "url": null }
perturbation-theory Title: A question about first order perturbation in the Stark effect. Consider ground state of a hydrogen atom which influenced with external uniform weak electric field. What does mean the following statement? $$\left< 100|\quad Z\quad |100 \right> =\int { |{ \psi }_{ 100 }\quad(r)|^{ 2 } } Z\qu...
{ "domain": "physics.stackexchange", "id": 19072, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "perturbation-theory", "url": null }
laserscan, pointcloud, transform Title: transform LaserScan to /world_frame Hi all, I'm trying to transform a LaserScan(already transformed to PCL::PointCloud) from it's frame to the /world frame. What I'm doing right now is accumulate the pointcloud in the /world frame, while my robot moves(the information of the eg...
{ "domain": "robotics.stackexchange", "id": 8952, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "laserscan, pointcloud, transform", "url": null }
mechanical-engineering, cad, bearings, 3d-printing Title: Cad file for turnstile mechanism/ one-way clutch/ one-way rotation? I am writing my first 3D cad-file and I want to place into it a turnstile mechanism (a mechanism that allows a fixed axis to rotate only one way, and not in the opposite). Are there cad-templat...
{ "domain": "engineering.stackexchange", "id": 2688, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "mechanical-engineering, cad, bearings, 3d-printing", "url": null }
ros, include, library, beginner-tutorials Originally posted by ticotico with karma: 212 on 2021-01-02 This answer was ACCEPTED on the original site Post score: 0
{ "domain": "robotics.stackexchange", "id": 35903, "lm_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, include, library, beginner-tutorials", "url": null }
java, simulation, game-of-life for (int j = 0; j < rows.get(0).size()-1; j++){ Cell c=rows.get(i).get(j); if(e.getX()>=c.getTlx()&&e.getX()<c.getTlx()+c.getCellLength()&&e.getY()>= c.getTly()&&e.getY()<c.getTly()+c.getCellLength()) { for (int k = rows.ind...
{ "domain": "codereview.stackexchange", "id": 34468, "lm_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, simulation, game-of-life", "url": null }
general-relativity, geodesics Title: What are geodesic curves in static perfect fluid sphere? I have read that in perfect fluid only dust particles follow geodesics. If there is pressure in fluid, the particle trajectories are not geodesics [1]. My intention was to describe a static spacetime with perfect fluid sphere...
{ "domain": "physics.stackexchange", "id": 86950, "lm_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, geodesics", "url": null }
java, algorithm, computational-geometry The two statements events.add(new AlgEvent(l, true)); and events.add(new AlgEvent(l, false)); are being repeated 4 times here! Your line compare method here: static class LineComparator implements Comparator<Line2D> { public int compare(Line2D o1, Line2D o2) { if (o1...
{ "domain": "codereview.stackexchange", "id": 4535, "lm_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, computational-geometry", "url": null }
acid-base, redox, identification, salt Carbonic acid is unstable and releases gaseous oxid: $$\ce{H2CO3(aq) <=>> H2O + CO2(g)}$$ What remains in water are sodium and sulphate ions that eventually precipitates as sodium sulphate decahydrate: $$\ce{2 Na+(aq) + SO4^2-(aq) + 10 H2O <=> Na2SO4.10 H2O(s)}$$ The similar thin...
{ "domain": "chemistry.stackexchange", "id": 15032, "lm_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, redox, identification, salt", "url": null }
optics, electromagnetic-radiation Title: Clarification about Power Definition in Optics I wanted to clarify a concept about units of power used in optics, since I come from an electrical background. I am wondering if the number of photons produced by a light source depends on the wavelength of those photons. Let's say...
{ "domain": "physics.stackexchange", "id": 39374, "lm_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, electromagnetic-radiation", "url": null }
c++, asynchronous, socket, boost, client The read() command here doesn't know how large the response is, but you told it to transfer all data sent by the server. The only way to signal the end of all data is for the server to close the connection. If the server would support multiple requests on a connection, then you...
{ "domain": "codereview.stackexchange", "id": 39435, "lm_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++, asynchronous, socket, boost, client", "url": null }
fft, discrete-signals, fourier-transform, python If you wish, you can obtain the non-zero phase samples of the desired DFT $X[k]$ of $x[n]$, from the computed DFT $W[k]$ of $w[n]$, with the following: $$ X[k] = e^{j 4 \frac{2\pi}{N} k} W[k] ~~~~ ,~~\text{ for } k=0,1,...,N-1 \tag{3}$$ The following MATLAB code demonst...
{ "domain": "dsp.stackexchange", "id": 5800, "lm_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, fourier-transform, python", "url": null }
java, exception-handling When placing ships on board. this listens for mouse movement and should move ship image accordingly, but that happens only after the client and server are connected and there is an active ship that can be placed. If that's not the case, for example I haven't connected to the server yet, every ...
{ "domain": "codereview.stackexchange", "id": 7705, "lm_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, exception-handling", "url": null }
cosmology, metric-tensor, astrophysics, conventions Title: Common choice in FLRW between dimensionless of scale factor (and coordinates of r lenght dimension) or the contrary I have an old cosmology book in which the scale factor is expressed in the Roberston-Walker metric as: $\mathrm{d} s^2=c^2 \mathrm{~d} t^2-R(t)^...
{ "domain": "physics.stackexchange", "id": 95470, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "cosmology, metric-tensor, astrophysics, conventions", "url": null }
special-relativity, spacetime, metric-tensor, inertial-frames, observers On the other hand, suppose you have a spacelike interval, $\Delta s^2 < 0$. In this case, $\Delta x > c\Delta t$, so it is possible to get $c\Delta t' < 0$ for a specific velocity (namely $\beta > \frac{c\Delta t}{\Delta x}$). So if one observer ...
{ "domain": "physics.stackexchange", "id": 56962, "lm_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, spacetime, metric-tensor, inertial-frames, observers", "url"...
Hence $7^{25}-3^{25}$ ends in $64$ (since $807-443=364$) and $7^{25}+3^{25}$ ends in $250$ (since $807+443=1250$). The result follows since $1000$ divides $64 \times 250$. • 14 ends with 4 but 14×250 ends in 500. – user491874 Dec 2 '17 at 17:33 • @user8734617 edited: $64 \times 250 = 16000$ – TheSimpliFire Dec 2 '17 a...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9770226347732859, "lm_q1q2_score": 0.8010543451374333, "lm_q2_score": 0.8198933337131076, "openwebmath_perplexity": 504.68907404160444, "openwebmath_score": 0.9706442952156067, "ta...
rosjava Title: multibyte-character support for rosjava Java supports multi-byte character as the Japanese, Korean or Chinese. This means that length() method of java.lang.String class returns number of the character, not number of bytes. http://rosettacode.org/wiki/String_length#Java java.lang.String tmp1 = "robot"; ...
{ "domain": "robotics.stackexchange", "id": 6952, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rosjava", "url": null }
everyday-chemistry, thermodynamics The equation for the combustion reaction for cellulose is: $$\ce{(C6H10O5)}_n +6n\ce{O2->}+6n\ce{CO2}+5n\ce{H2O} $$ Since lignin is more complex, its combustion equation is more complex: $$2[\ce{(C9H10O2)}_x \cdot \ce{(C10H12O3)}_y \cdot \ce{(C11H14O4)}_z]+(21x+23y+25z)\ce{O2}\\ \ce{...
{ "domain": "chemistry.stackexchange", "id": 753, "lm_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, thermodynamics", "url": null }
mechanical-engineering, design, gears, pulleys Title: How to design a timer/timing pulley? I am asked to design a timing/timer pulley based on a timer belt which comes in standard size. How do I do the calculation to find the number of teeth, depth and width of groove etc? There are two aspects to this problem: mechan...
{ "domain": "engineering.stackexchange", "id": 865, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "mechanical-engineering, design, gears, pulleys", "url": null }
c++, pathfinding, breadth-first-search Title: Shortest path on a maze with keys and doors The locks of the doors present in the maze are of 7 types: A, B, C, D, E, F and G. There are also some copies of keys around the maze, which can be of types a, b, c, d, e, f or g. A key of type a opens a door of type A, a key of ...
{ "domain": "codereview.stackexchange", "id": 15965, "lm_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++, pathfinding, breadth-first-search", "url": null }
At the first workshop of the summer, I got to participate in an activity that used M&Ms to model exponential decay. Any situation in which the rate of growth is proportional to the amount present lends itself directly to an exponential model. Algebraically speaking, an exponential decay expression is any. 18 Linear Fun...
{ "domain": "clandiw.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9877587268703083, "lm_q1q2_score": 0.8335647540503551, "lm_q2_score": 0.8438951045175643, "openwebmath_perplexity": 1466.0538707893068, "openwebmath_score": 0.4987727105617523, "tags"...