text
stringlengths
49
10.4k
source
dict
matlab, filters, wavelet, sound Title: fliter doesn't filter In this code I try to decompose music from singer sound with wfilters but when I hear it it is still mixed where Iam I wrong ? function s = scale3(q,n) p = length(q); if p==n s = q; else s = resample(q,n,p); end the program s = wavre...
{ "domain": "dsp.stackexchange", "id": 990, "lm_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, filters, wavelet, sound", "url": null }
rosjava, android I/dalvikvm( 3678): at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) I/dalvikvm( 3678): at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) I/dalvikvm( 3678): at org.jboss.netty.handler.codec.frame....
{ "domain": "robotics.stackexchange", "id": 8881, "lm_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, android", "url": null }
graph-theory, graph-algorithms, fl.formal-languages, grammars Title: What are graph grammars? I have found information on graph grammars and graph rewriting, but the papers that I find on it are a bit thick. Can someone give a quick overview of what graph grammars are, as well as an overview of the basic uses of them?...
{ "domain": "cstheory.stackexchange", "id": 4149, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "graph-theory, graph-algorithms, fl.formal-languages, grammars", "url": null }
javascript, html, css, calculator x = calculateAge(age); // calls the calculateAge function below, passes 'age' as an argument, assigns return value to x. y = calculateWeight(weightStone, weightLbs); // calls the calculateWeight function below, passes 'weightStone' & 'weightLbs' as args, assigns return value to y. z =...
{ "domain": "codereview.stackexchange", "id": 40599, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, html, css, calculator", "url": null }
# Proof that if $p \mid G$ and $G$ is finite abelian it has an element of order $p$ I want to prove the following lemma. Let $p$ be a prime number and $G$ a finite abelian group such that $p\mid\#G$, then $G$ has an element of order $p$. Here's the proof my professor presented. Let $|G|=pm$ for some $m\in\mathbb{N}...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9780517462851321, "lm_q1q2_score": 0.8370667142454822, "lm_q2_score": 0.8558511524823263, "openwebmath_perplexity": 72.1237576500912, "openwebmath_score": 0.9339741468429565, "tags...
Now integrate $(\clubsuit)$ and $(\spadesuit)$ to conclude what you want. Below are the details. Integrate $(\clubsuit)$. We then have \begin{align} \int_0^1\int_0^1 f(x,y) dx dy & = \int_0^1 \int_0^1 \sum_{k=1}^{\infty} x^{k-1} y^{2k-2} dx dy\\ & = \sum_{k=1}^{\infty}\int_0^1 \int_0^1 x^{k-1} y^{2k-2} dx dy\\ & = \su...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9817357179075084, "lm_q1q2_score": 0.8243968296040263, "lm_q2_score": 0.8397339676722393, "openwebmath_perplexity": 482.358792764763, "openwebmath_score": 0.9655860662460327, "tags...
## 2.8.4. Sinc Revisited¶ When we looked at the Example Control Constructs - sinc, we commented that it would be better to use vectors. Here it is with vectors. Notice the use of a logical vector. t = linspace(-4*pi,4*pi,101); t(t == 0) = eps; y = sin(t)./t; figure, plot(t, y) hold on plot([-4*pi 4*pi],[0 0], 'r') % ...
{ "domain": "k-state.edu", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9683812309063186, "lm_q1q2_score": 0.8172121781675818, "lm_q2_score": 0.8438951025545426, "openwebmath_perplexity": 1871.4259348575915, "openwebmath_score": 0.5257092118263245, "tags...
javascript, html, css itemName.addEventListener('keyup', () => { if (event.keyCode === 13) { if (!document.querySelector(`#${tmpName}`)) return; itemName.readOnly = true; document.querySelector(`#${tmpName}`).id = itemName.value; } }); }; // ####################################### // SET C...
{ "domain": "codereview.stackexchange", "id": 40430, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, html, css", "url": null }
electromagnetism, induction, electromagnetic-induction And sure, any loop based in time can have two contributions to the force per unit charge. One is the electric field. And around a closed loop that equals the flux of $\frac{\partial B}{\partial t}$ through the instantaneous position of the loop. The other is based...
{ "domain": "physics.stackexchange", "id": 28765, "lm_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, induction, electromagnetic-induction", "url": null }
polynomial-time, oracle-machines Title: Defining polynomial hierarchy with oracle machines and quantifiers While trying to understand the concept of polynomial hierarchy, I noticed that there are several ways to define it. And the most confusing thing about the situation is to see the equivalence between those definit...
{ "domain": "cs.stackexchange", "id": 11033, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "polynomial-time, oracle-machines", "url": null }
thermodynamics, electromagnetic-radiation Title: Would neutronium emit heat? Since accelerating a charge creates EM radiation, and there are no charges in neutrons to be accelerated, would that mean neutronium emits no radiation? Consequently, to preserve the second law of thermodynamics, would neutronium act as a per...
{ "domain": "physics.stackexchange", "id": 24530, "lm_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", "url": null }
algorithm-analysis, runtime-analysis, recurrence-relation, quicksort $$ C(n)=n-1+{\frac 1n}\sum_{i=0}^{n-1}(C(i)+C(n-i-1))=n-1+{\frac 2n}\sum _{i=0}^{n-1}C(i) $$ Please note that in the wikipedia item, $C(1)=1-1+0=0$, which say that we need no comparison to sort 1 item, which looks much more reasonable to me
{ "domain": "cs.stackexchange", "id": 11992, "lm_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, runtime-analysis, recurrence-relation, quicksort", "url": null }
• I was wondering - is $f(x)$ called the image? I've seen that word used but only know it to be synonymous with Range. Feb 22, 2013 at 23:15 • not $f(x)$ but $f(X)$ note the different as $X$ is a set but $x$ is an element Feb 22, 2013 at 23:19 • @agent154 You can say "$f(x)$ is the image of the element $x$ under the fu...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9658995742876885, "lm_q1q2_score": 0.8628471763868496, "lm_q2_score": 0.8933094074745443, "openwebmath_perplexity": 185.66567938001668, "openwebmath_score": 0.8944380283355713, "ta...
c#, mysql, asp.net-web-api, dapper, .net-5 `user` (`ID`, `UserName`, `pas`, `CollectionID`, `phonenumber`) `user_collection`(`ID`) Finally this is my sql query and the c# code : public Response<List<Shoping>> GetShop_GropID(string _CollectionID) { using (IDbConnection cnn = new MySqlConnection(...
{ "domain": "codereview.stackexchange", "id": 41173, "lm_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#, mysql, asp.net-web-api, dapper, .net-5", "url": null }
python, performance, numpy, pandas 'feature 16': 0.0, 'feature 17': 0.0}, {'category': 'category 2', 'item_title': 'item 14', 'feature 1': 0.0, 'feature 2': 0.0, 'feature 3': 0.0, 'feature 4': 110.0, 'feature 5': 0.0, 'feature 6': 0.0, 'feature 7': 0.0, 'feature 8': 0.0, 'feature 9': 0.0, 'fea...
{ "domain": "codereview.stackexchange", "id": 44861, "lm_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, performance, numpy, pandas", "url": null }
planet, orbit, solar-system, asteroids, mathematics Title: Simple mathematical models of solar systems I’m a hobbyist programmer with a profound love for procedural content generation. I’m working on a 2D space exploration game and while it’s not meant to simulate anything real, I’d like to give it a natural feel. I...
{ "domain": "astronomy.stackexchange", "id": 2994, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "planet, orbit, solar-system, asteroids, mathematics", "url": null }
rviz, yaml, macos, rosmake, macos-lion A macports patch might look something like this: diff -r 6d4935c374bf rosdep.yaml --- a/rosdep.yaml Wed Jul 27 18:19:09 2011 -0700 +++ b/rosdep.yaml Thu Aug 25 17:56:56 2011 -0500 @@ -38,6 +45,10 @@ uri: 'https://kforge.ros.org/rosrelease/viewvc/sourcedeps/yaml-cpp/yam...
{ "domain": "robotics.stackexchange", "id": 6408, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rviz, yaml, macos, rosmake, macos-lion", "url": null }
slam, navigation, rosbag, rtabmap-ros Record: $ rosbag record /odom /data_throttled_image/compressed /data_throttled_image_depth/compressedDepth /data_throttled_camera_info /tf -O kinect Tip 1 If you are using freenect_launch, it may be more efficient to set data_skip instead of using the data_throttle nodelet above:...
{ "domain": "robotics.stackexchange", "id": 26167, "lm_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, rosbag, rtabmap-ros", "url": null }
algorithms, graphs, trees Note that $T$ may have between $n$ and $n^2$ paths through $a$. To answer your question, just sum all the trees' number of paths. EDIT: small examples If the tree has 4 vertices called $a,b,c,d$, connected linearly like that $a-b-c-d$ with $a$ being the vertex of the given path. Then $a$ has ...
{ "domain": "cs.stackexchange", "id": 14125, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "algorithms, graphs, trees", "url": null }
human-biology, immunology, bacteriology, cellular-respiration Title: Selectivity of anti-bacterial affect of oxygen As far as I know, oxidizing agents (AKA reactive oxygen species or ROS) are potent antimicrobial agents that act on a broad range of bacteria and viruses, as well as inactivating certain toxins. Is this ...
{ "domain": "biology.stackexchange", "id": 5836, "lm_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, immunology, bacteriology, cellular-respiration", "url": null }
earth-rotation, seasons, time Title: Are the length of seasons the same globally? Is the length of time, say months, for each season the same all over the world or can it vary? As has been noted in a comment, it depends on how you define seasons (see https://earthscience.stackexchange.com/a/2603/111). If seasons are ...
{ "domain": "earthscience.stackexchange", "id": 884, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "earth-rotation, seasons, time", "url": null }
newtonian-mechanics, forces, reference-frames, vectors, terminology $\vec{f} = \vec{F}\delta^3(\vec{r}-\vec{r}_{0})$ When $r ≠ r_{0}$ then $\vec{f} = 0$ When $r = r_{0}$ then $\vec{f} = \infty$ Such that $\iiint \vec{f} dv = \vec{F}$ for any volume containing $\vec{r}_{0}$ Torque and point forces: Others have said th...
{ "domain": "physics.stackexchange", "id": 87694, "lm_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, reference-frames, vectors, terminology", "url": nul...
algorithm, sorting, recursion, swift There are more things which can be improved: In let workoutTimeInterval = Double((userWorkout.completionDate?.timeIntervalSinceNow)!) the conversion to Double is not needed. And what if completionDate is nil? Your code would crash in that case. But my main point of criticism is ho...
{ "domain": "codereview.stackexchange", "id": 26615, "lm_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, sorting, recursion, swift", "url": null }
quantum-mechanics, homework-and-exercises, hilbert-space, quantum-spin, eigenvalue has eigenvalues $\pm\sqrt{3}$, so in the uncoupled diagonal-basis $$H = \frac{3\alpha}{4}\begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}\otimes\begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}$$ which has eigenvectors $$\begin{pmatrix}1\\0\end{pmat...
{ "domain": "physics.stackexchange", "id": 66102, "lm_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, hilbert-space, quantum-spin, eigenvalue...
general-relativity Title: Small change in theta - polar coordinates I'm reading (I'm trying to read) Schutz's "A first course in general relativity" (1985). On page 126 he mentions that a small change in angle theta in polar coordinates is given by: I can't see why this is. Can anyone please explain. Thanks The polar...
{ "domain": "physics.stackexchange", "id": 1178, "lm_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", "url": null }
java, game private Player[] getPlayers(Scanner sc) { int numberOfPlayers = 4; Player[] players = new Player[numberOfPlayers]; String[] markers = { "\u2460", "\u2461", "\u2462", "\u2463" }; for (int i = 0; i < numberOfPlayers; i++) { System.out.print("Enter ...
{ "domain": "codereview.stackexchange", "id": 38126, "lm_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, game", "url": null }
c++, enum, c++20, constant-expression constexpr inline void operator^=(const EnumBitset<Bits>& b) noexcept { this->bits_ ^= b.bits_; } [[nodiscard]] constexpr inline bool operator==(const EnumBitset<Bits>& b) const noexcept { return this->bits_ == b.bits_; } [[nodiscard]] constexpr in...
{ "domain": "codereview.stackexchange", "id": 42036, "lm_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++, enum, c++20, constant-expression", "url": null }
fasta, python, genomics Title: How to find all variable-length seqs with an exact 5' and 3' match in a FASTA file Context I am interested in finding all of the promotors specific to a particular sigma factor. I have identified the -35 and -10 sites from the literature, bold denotes -10, -35, binding sites: -35 site...
{ "domain": "bioinformatics.stackexchange", "id": 812, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "fasta, python, genomics", "url": null }
xml Title: Preferred ROS XML parser/generator I would like to create a node/library that both reads in xml and writes xml with a well defined format (sort of like URDF). I know there are tons of libraries for doing this, but I want to know what are the preferred libraries to use with ROS in either C++ or Python? Or...
{ "domain": "robotics.stackexchange", "id": 13346, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "xml", "url": null }
quantum-mechanics, hilbert-space, operators, wavefunction Observables in QM each have an associated (Hermitian) linear operator, and their eigenvectors correspond to states of a definite value of that observable. For example, if $A$ is our operator corresponding to some observable (say, Energy), then the eigenstates $...
{ "domain": "physics.stackexchange", "id": 79711, "lm_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", "url": null }
Thus: $\phi(y) = cy + a$ and $\psi(y) = dy + b$ (**) where both of a and b are constant Combine (*) and (**): we have $u(x,y) = cyx + ax + dy +b$ as our general solution to this pde question Title: Re: Web Bonus Problem –– Week 1 Post by: Victor Ivrii on January 06, 2018, 06:40:52 PM Guys, there is already a perfect ...
{ "domain": "toronto.edu", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.974042647323258, "lm_q1q2_score": 0.8158775704842453, "lm_q2_score": 0.8376199673867852, "openwebmath_perplexity": 1337.1370880146567, "openwebmath_score": 0.853485107421875, "tags": nul...
rviz To a launch file that also launches the kinect driver. the 10 is the publishing frequency. The other numbers are: x y z roll pitch yaw. (If you pass 4 parameters for rotation it is interpreted as a quaternion) Originally posted by dornhege with karma: 31395 on 2011-07-05 This answer was ACCEPTED on the original...
{ "domain": "robotics.stackexchange", "id": 6029, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rviz", "url": null }
# tukeywin Tukey (tapered cosine) window ## Syntax ``w = tukeywin(L,r)`` ## Description example ````w = tukeywin(L,r)` returns an `L`-point Tukey window with cosine fraction `r`.``` ## Examples collapse all Compute 128-point Tukey windows with five different values of `r`, or "tapers." Display the results usin...
{ "domain": "mathworks.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9890130580170845, "lm_q1q2_score": 0.8085918262628794, "lm_q2_score": 0.8175744695262775, "openwebmath_perplexity": 7625.6609743041845, "openwebmath_score": 0.9700152277946472, "tags":...
This then simplifies to $P(C_3|M_2) = \frac{1}{P(M_2|C_1)+1}$ We can figure out $P(M_2|C_1)$ using the simple rules of the game – if we have selected door 1 and the prize is behind door 1, Monty must choose randomly between the other two doors. So $P(M_2|C_1)=P(M_3|C_1)=\frac{1}{2}$. Thus $P(C_3|M_2) = \frac{2}{3}$...
{ "domain": "theresearchkitchen.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9934102295074972, "lm_q1q2_score": 0.8256660100815145, "lm_q2_score": 0.8311430520409023, "openwebmath_perplexity": 474.5726135524922, "openwebmath_score": 0.7068590521812439, ...
Theorem of Calculus q Worksheet by Kuta Software LLC Do the graphs of absolute value functions always intersect the vertical axis? (x > 0 and y > 0). Our mission is to provide a free, world-class education to anyone, anywhere. Graph the absolute value function given below. Describe the transformation from the Absolute ...
{ "domain": "seowonstay.com", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9621075755433747, "lm_q1q2_score": 0.8505408988639315, "lm_q2_score": 0.8840392909114835, "openwebmath_perplexity": 718.7804924785548, "openwebmath_score": 0.49617087841033936, "tags"...
slam, navigation, ros-electric, ros-fuerte, rosmake misc.cpp:(.text+0x2062): undefined reference to `cv::SIFT::CommonParams::CommonParams()' misc.cpp:(.text+0x2080): undefined reference to `cv::SiftDescriptorExtractor::SiftDescriptorExtractor(cv::SIFT::DescriptorParams const&, cv::SIFT::CommonParams const&)' misc....
{ "domain": "robotics.stackexchange", "id": 12123, "lm_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, ros-electric, ros-fuerte, rosmake", "url": null }
elaine_lei: May 5, 2015, 3:58 p.m. I did the problem twice and got the same answer as @Cullen_Im TLindberg: May 5, 2015, 5:32 p.m. @Cullen_Im: When composing matrices together its similar to a composition of functions. Therefore, the identity matrix from gamma to beta goes on the right because it is the "first" matrix ...
{ "domain": "herokuapp.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9759464492044004, "lm_q1q2_score": 0.8352648879302103, "lm_q2_score": 0.8558511469672594, "openwebmath_perplexity": 388.79665395038523, "openwebmath_score": 0.9748695492744446, "tags":...
quantum-mechanics, schroedinger-equation Title: Finite square well I know how and why we use this form of stationary Schrödinger equation for finding $\psi$ outside the finite square potential well: $$\frac{d^2 \psi}{dx^2}=\kappa^2 \psi$$ I Also know that the general solution to this equation is: $$\psi = Ae^{\kappa\,...
{ "domain": "physics.stackexchange", "id": 7029, "lm_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, schroedinger-equation", "url": null }
Question # From a two digit number N, we subtract the number with the digits reversed and find that the result is a positive perfect cube. Then: A N cannot end in 5 B N can end in any digit other than 5 C N does not exist D there are exactly 7 values for N E there are exactly 10 values for N Solution ## The correct...
{ "domain": "byjus.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9921841093618227, "lm_q1q2_score": 0.8491619007040553, "lm_q2_score": 0.8558511396138365, "openwebmath_perplexity": 2329.4690990149556, "openwebmath_score": 0.395782470703125, "tags": null...
algorithms, correctness-proof, check-my-answer Title: Why is this a proof by contradiction for this algorithm? Isn't this a direct proof instead? First Slide: Find Max(A) // INPUT: A[1..n] - an array of integers // OUTPUT: an element m of A such that m >= A[j], for all 1 <= j <= A.length max = A[j==1] for j = 2 to A....
{ "domain": "cs.stackexchange", "id": 13566, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "algorithms, correctness-proof, check-my-answer", "url": null }
algorithms, complexity-theory, graphs, optimization Each simple cycle in $G$ corresponds to a simple cycle in $K$ with the same weight in the natural way as illustrated by the following example. A cycle $a, b, c, a$ in $G$ corresponds to the cycle $a_{in}, a_{out}, b_{in}, b_{out}, c_{in}, c_{out}, a_{in}$ in $K$. In ...
{ "domain": "cs.stackexchange", "id": 11888, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "algorithms, complexity-theory, graphs, optimization", "url": null }
aqueous-solution, solutions, osmosis Title: Can I equalise osmotic pressure using two different solutes? I understand that there is a pressure gradient between an aqueous solution, e.g. salty water, and, say, pure water due to osmosis. My question is, is it possible to match or almost match, the osmotic pressure betwe...
{ "domain": "chemistry.stackexchange", "id": 3915, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "aqueous-solution, solutions, osmosis", "url": null }
physical-chemistry, water, molecular-structure, vsepr-theory Title: Estimation of the bond angle of water We know from experimental data that $\ce{H-O-H}$ bond angle in water is approximately 104.5 degrees. If its two lone pairs were bonds (which is unfortunately impossible) also $\ce{O-H}$ bonds and a perfect tetrahe...
{ "domain": "chemistry.stackexchange", "id": 4570, "lm_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, water, molecular-structure, vsepr-theory", "url": null }
malaria, mosquitoes Title: How do sporozoites travel into the human host when the mosquito is sucking blood? I mean how are the sporozoites able to swim in the reverse direction of blood flow through the proboscis of the mosquito into the human body? Nice question! Basically, the mosquito does not only suck; it also...
{ "domain": "biology.stackexchange", "id": 7880, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "malaria, mosquitoes", "url": null }
mechanical-engineering, structural-engineering, control-engineering For example, if I wanted to setup such a facility, who would I have to consult? You either find a consulting engineering firm with a lot of experience in designing and planning (and building!) such a plant. Or you find anexperienced hydroponics exper...
{ "domain": "engineering.stackexchange", "id": 2962, "lm_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, structural-engineering, control-engineering", "url": ...
Riley, Hobson, Bence : "Mathematical Methods for Physics and Engineering", Exercise 28.12, (a),(i) Thus $C_6$ and $C_2 \times C_3$ have the same number of elements of any particular order, therefore they are isomorphic. Exercise 28.12, (a),(ii) Again, in summary, $C_2 \times D_3$ has $12$ elements: one of order $1$, ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9736446456243805, "lm_q1q2_score": 0.815544198287544, "lm_q2_score": 0.8376199694135332, "openwebmath_perplexity": 140.12030421644255, "openwebmath_score": 0.9634494185447693, "tag...
\begin{align} Cov\left(\tilde{c}_D,\tilde{r}_M\right) &= \sum_{i=1}^4f_i\left(c_{D,i}-E(\tilde{c}_D)\right)\left(r_{M,i}-E(\tilde{r}_M)\right),\\ Cov\left(\tilde{c}_E,\tilde{r}_M\right) &= \sum_{i=1}^4f_i\left(c_{E,i}-E(\tilde{c}_E)\right)\left(r_{M,i}-E(\tilde{r}_M)\right),\\ V_D &= \frac{E(\tilde{c}_D) - \left( E\lef...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.967410256173572, "lm_q1q2_score": 0.8422247167108203, "lm_q2_score": 0.8705972583359805, "openwebmath_perplexity": 4333.862241933339, "openwebmath_score": 0.9999576807022095, "tags...
python, performance, python-3.x, graph, memory-optimization get_optimal_path() In this example best answer is for the employee to stay at office H in the first week and then move to office A in the second week so the total vacation days will be (1+2)=3. B and A cannot be the answer here because there is no path betwe...
{ "domain": "codereview.stackexchange", "id": 31390, "lm_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, performance, python-3.x, graph, memory-optimization", "url": null }
quantum-mechanics, fluid-dynamics, vortex, superfluidity "The Biot–Savart interactions of vortex lines over length scales larger than the average inter-vortex distance $ℓ ≈ L^{−1/2}$ has induced the same Kolmogorov energy spectrum $E(k) ∼ k^{−5/3}$ (for $k ≪ k_ℓ = 2π/ℓ$) which is observed in ordinary turbulence. The K...
{ "domain": "physics.stackexchange", "id": 48130, "lm_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, fluid-dynamics, vortex, superfluidity", "url": null }
game, react.js, ajax, jsx checkWin(e) { this.setState({ disableFieldset: true }) const winCountry = this.state.randomCountry.name; const userGuess = e.target.value; if (winCountry === userGuess) { this.setState({ userIsWin: 'Win', goodGuess: this.state.goodGu...
{ "domain": "codereview.stackexchange", "id": 28893, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "game, react.js, ajax, jsx", "url": null }
quantum-mechanics, particle-physics, symmetry, group-theory, lie-algebra There are no other spin $1/3$, or any $1/N$ aside from $1/2$, ribbons realisable in a Dirac belt trick; Spinors and tensors exhaust the list of everything that transforms compatibly with rotations. Actually the idea broadens from the $SO(3)$ with...
{ "domain": "physics.stackexchange", "id": 9596, "lm_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, particle-physics, symmetry, group-theory, lie-algebra", "url":...
organic-chemistry, nomenclature Title: How do I call the functional group of this alkane? Given the following chain of carbon atoms (imagine they are all saturated with the correct number of hydrogen atoms), how do I call it? 4-(dimethyl-ethyl)-octane? I'm having trouble naming the short carbon chain extending from th...
{ "domain": "chemistry.stackexchange", "id": 4512, "lm_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, nomenclature", "url": null }
calibration, kinect, depth-registered, camera-calibration, openni-launch Title: How to perform a good calibration for the Kinect? Hello, I am doing an app to merge point clouds. I am using kinect but i need to improve accuracy because I think my program is working (using Iterative closest point and detecting features...
{ "domain": "robotics.stackexchange", "id": 13217, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "calibration, kinect, depth-registered, camera-calibration, openni-launch", "url...
decay if the constant of proportionality is negative. (and vice versa) Like in this example: Example, what is x in log 3 (x) = 5 We can use an exponent (with a … Finding The Exponential Growth Function Given a Table. In this video, I want to introduce you to the idea of an exponential function and really just show you ...
{ "domain": "roszak.eu", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9850429125286726, "lm_q1q2_score": 0.8312728858216881, "lm_q2_score": 0.8438950986284991, "openwebmath_perplexity": 484.43820608636725, "openwebmath_score": 0.7959598898887634, "tags": nul...
electromagnetic-radiation, radiation, thermal-radiation Title: Area under the Wien's Law graph Before I proceed, in the Wien's law graph is the Y-axis Emittance[$E=Q/(A*t)$] or Power density ($Watt/M^3$)? According to several Google pages, The Y-axis is Power density but my book has used emittance and spectral emitta...
{ "domain": "physics.stackexchange", "id": 77362, "lm_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, radiation, thermal-radiation", "url": null }
is older than Brenda, ¬g\neg g¬g means Alfred is younger than Brenda since they can't be of the same age. □_\square□​. Determine the order of birth of the five children given the above facts. Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on Yo...
{ "domain": "thebearing.net", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9850429129677614, "lm_q1q2_score": 0.8799480981223229, "lm_q2_score": 0.8933094046341532, "openwebmath_perplexity": 1157.4913499542563, "openwebmath_score": 0.8060331344604492, "t...
homework-and-exercises, field-theory, galilean-relativity $$t'(x,t) = t$$ $$x'(x,t) = x - Vt$$ Differentiation then proceeds as usual: $$\frac{\partial}{\partial x} t'(x,t) = \lim_{h\rightarrow 0} \frac{t'(x+h,t)-t'(x,t)}{h} = \lim_{h\rightarrow 0} \frac{t - t}{h} = 0$$ $$ \frac{\partial}{\partial t} t'(x,t) = \lim_{h...
{ "domain": "physics.stackexchange", "id": 64392, "lm_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, field-theory, galilean-relativity", "url": null }
sql, sql-server <Compare CompareOp="EQ"> <ScalarOperator> <Identifier> <ColumnReference Database="[Epicor905]" Schema="[dbo]" Table="[Part]" Column="Pa...
{ "domain": "codereview.stackexchange", "id": 31682, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "sql, sql-server", "url": null }
organic-chemistry, molecular-structure, nmr-spectroscopy Title: Unique carbons on long carbon chains If we have a long carbon chain like octane for example, do we determine if a carbon is unique by just looking at the immediate surrounding atoms of each carbon (in this case 3 unique carbons), or do we need to take in...
{ "domain": "chemistry.stackexchange", "id": 10680, "lm_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, molecular-structure, nmr-spectroscopy", "url": null }
newtonian-mechanics, friction, aerodynamics, speed Title: Is possible to use the air friction to increase the speed of a car? Its possible to make a device that, attached to the car, it will use the air that hits the car at high speed and give the car a boost? Friction wants to resist relative movement between the ai...
{ "domain": "physics.stackexchange", "id": 45828, "lm_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, friction, aerodynamics, speed", "url": null }
beginner, vba, excel Underscores in variable names is used by the Implements statement and IMO is something that should be used only for it. Indentation. You have Do then way at the end you have Loop that isn't on the same indentation level. This makes it hard to figure out should be indented. rubberduckvba.com can h...
{ "domain": "codereview.stackexchange", "id": 35074, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "beginner, vba, excel", "url": null }
complexity-theory, np-complete Title: Is multiple equation 0/1 linear integer programming with bounded integer weights NP-hard? Suppose we forget about optimizing and just want to find a feasible solution to a set of equations: $$\sum_i w_{ij} x_i = W_j.$$ Here we are given $w_{ij}$ and $W_j$, and want to solve for $x...
{ "domain": "cs.stackexchange", "id": 5193, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "complexity-theory, np-complete", "url": null }
java log.warn("Logs came in late"); } } I'm having trouble optimizing the selectById method. Since I'm doing a Collector.toList() in the selectUserLogs method, I can be sure that I will ALWAYS get a List back. It could be an empty list, but never a null. My initial attempt was: public Optional<UserLog> selectBy...
{ "domain": "codereview.stackexchange", "id": 44571, "lm_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", "url": null }
exoplanet, earth-like-planet, planetary-systems Title: When will we be able to detect Earth-sized exoplanets? I have heard that the only planets able to be seen outside the Solar system are Jovian-sized planets with the occasional detection of planets three times the Earth's size. But, as far as I know, we haven't see...
{ "domain": "astronomy.stackexchange", "id": 944, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "exoplanet, earth-like-planet, planetary-systems", "url": null }
cc.complexity-theory, complexity-classes Now, if you ask if the isolation lemma is necessary for the Valiant-Vazirani Theorem ($\mathsf{NP} \subseteq \mathsf{RP}^{\mathsf{PromiseUP}}$), this seems more plausible - since you're reducing from many witnesses to a unique witness - but still hard to prove. To actually prov...
{ "domain": "cstheory.stackexchange", "id": 4166, "lm_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, complexity-classes", "url": null }
c#, linq, rubberduck Title: IdentifierReferenceResolver: resolving at project level One of the most important parts at the core of rubberduck is the IdentifierReferenceResolver class, which is responsible for resolving each declaration as the parse tree is being walked and function, member and variable calls are being...
{ "domain": "codereview.stackexchange", "id": 16281, "lm_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#, linq, rubberduck", "url": null }
classical-mechanics, optics, telescopes So if anybody could explain to me why or why not could I create a telescope out of a single convex lens. Thank you! The term "focusing" means something else than the OP suggests. It means that the different light rays coming that a single, specific point $P$ of the object emits ...
{ "domain": "physics.stackexchange", "id": 39787, "lm_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, optics, telescopes", "url": null }
python, python-3.x, tic-tac-toe, bitwise, bitset if __name__ == "__main__": # Just some temp code to show off how the bit board works board = BitBoard() # print(board, end="\n\n") moves = [1, 2, 3, 5, 0, 7, 4, 8] moves = [1 << m for m in moves] for index in range(len(moves) - 1): move...
{ "domain": "codereview.stackexchange", "id": 41518, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-3.x, tic-tac-toe, bitwise, bitset", "url": null }
homework-and-exercises, orbital-motion, rocket-science Title: What would have been required to boost Mir into a stable orbit? In 2001, the Russian space station Mir was deorbited and burned up in the atmosphere, after $4.2 billion in expenditures. As it was orbiting within the thermosphere, it was encountering perpetu...
{ "domain": "physics.stackexchange", "id": 18205, "lm_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, orbital-motion, rocket-science", "url": null }
cosmology, astronomy, galaxies, gravitational-waves, ligo II. How many galaxies are in this volume? This gets a bit tricky. On the faint end, galaxy counts must be extrapolated. This is often done by parameterizing the luminosity distribution of galaxies with a Schecter function. The comoving spatial density of galaxi...
{ "domain": "physics.stackexchange", "id": 28417, "lm_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, astronomy, galaxies, gravitational-waves, ligo", "url": null }
cnc, linear-bearing Title: Did I buy the wrong SBR rails? I have bought some SBR12 rails and bearing blocks in an attempt to make a fancy flattening jig for my router. I haven't been able to see 100 % everything that other people have done on the YouTubes due to camera angles etc., but I went ahead and bought some to ...
{ "domain": "robotics.stackexchange", "id": 2392, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "cnc, linear-bearing", "url": null }
astronomy, experimental-technique, distance Title: How do astronomers measure the distance to a star or other celestial object? How do scientists measure the distance between objects in space? For example, Alpha Centauri is 4.3 light years away. There are a variety of methods used to measure distance, each one buildin...
{ "domain": "physics.stackexchange", "id": 2953, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "astronomy, experimental-technique, distance", "url": null }
thermodynamics, statistical-mechanics, potential, terminology Helmholtz free energy/$F=U-TS$ $T,V,N$ enthaply/$H=U+PV$ $S,P,N$ Gibbs free energy/$G=U-TS+PV=\mu N$ $T,P,N$ A final comment is about the special cases of the Massieu function obtained as Legendre transform of entropy with respect to all its natural vari...
{ "domain": "physics.stackexchange", "id": 80702, "lm_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, statistical-mechanics, potential, terminology", "url": null }
Suppose you have a parallelepiped that is $2\times 3\times 1$, with all the side lengths measured in inches. What are the side lengths, as measured in centimeters? To answer this question, we have to calculate how many centimeters comprise $2,3,$ and $1$ inches respectively, just like in the case of changes of basis. ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9728307684643189, "lm_q1q2_score": 0.8148624804973097, "lm_q2_score": 0.8376199714402812, "openwebmath_perplexity": 347.335844285963, "openwebmath_score": 0.6451640725135803, "tags...
ros, roscpp, service Title: Using ros::service::call hi all, could someone give me any exemples about ros::service::call? i found osme information from the API, but i need a concrete exemple. thanks in advance. Originally posted by Maurizio88 on ROS Answers with karma: 155 on 2012-01-16 Post score: 0 The roscpp Ove...
{ "domain": "robotics.stackexchange", "id": 7912, "lm_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, roscpp, service", "url": null }
c++, recursion, template, constrained-templates, c++23 template<std::ranges::input_range T, class I, class F> requires(std::ranges::input_range<std::ranges::range_value_t<T>>) constexpr auto recursive_fold_left_all(const T inputRange, I init, F f) { return std::invoke(f, init, recursive_fold_left_all...
{ "domain": "codereview.stackexchange", "id": 44918, "lm_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++, recursion, template, constrained-templates, c++23", "url": null }
c++, matrix, computational-geometry, graphics, c++17 return (*this); } LineIndexer operator = (LineIndexer&& lineIndex) { for (int i = 0; i < cols; i++) (*this)[i] = lineIndex[i]; return (*this); } // public: ...
{ "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 }
Consider a sequence $$a_1,a_2,a_3,a_4,a_5,a_6,a_7,a_8, \dots$$ Intuitively, we can create a subsequence by selecting an infinite amount of random terms of this sequence, and throwing what's left away. However, it is important that if we select $a_i$ and $a_j$ with $i <j$, then also $i < j$ in the subsequence. In other...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9830850862376966, "lm_q1q2_score": 0.8375420993365063, "lm_q2_score": 0.8519528076067262, "openwebmath_perplexity": 172.92551193961881, "openwebmath_score": 0.918485164642334, "tag...
electromagnetism, harmonic-oscillator, absorption Title: Deriving the absorption coefficient Show that for a dilute medium and near resonance, the absorption coefficient is $$\alpha(\omega)=\frac{Ne^2}{4m\epsilon_0c}\frac{\gamma}{(\omega_0-\omega)^2+(\gamma/2)^2}$$ From the Lorentz Oscillator Model, we have: $$n^2(\om...
{ "domain": "physics.stackexchange", "id": 90887, "lm_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, harmonic-oscillator, absorption", "url": null }
c++, event-handling And instead of: dispatcher.Subscribe(&app); Call: app.Subscribe(dispatcher); Lifetime management of events There are several issues with how you manage the lifetime of Event objects. It is a good idea to use std::unique_ptr, as this avoids memory management issues. However, you still need to cons...
{ "domain": "codereview.stackexchange", "id": 42525, "lm_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++, event-handling", "url": null }
c++, entity-component-system template<ET_ID id, int index = ET<id>::noOfComponents - 1> void removeData(Entity32Bit entity)//go through each component in ET<id> and remove component from the correct sparse { std::get<ET<id>::components[index]>(mSparses).deleteComponent(entity); //if sorted by i...
{ "domain": "codereview.stackexchange", "id": 44389, "lm_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-component-system", "url": null }
beginner, functional-programming, combinatorics, clojure Now (rotations (range 5)) ; ((1 2 3 4 0) (2 3 4 0 1) (3 4 0 1 2) (4 0 1 2 3) (0 1 2 3 4)) And we're ready to generate all the permutations. We can rewrite the given code as follows: (defn permutations [a-set] (if (empty? a-set) (list ()) (mapcat ...
{ "domain": "codereview.stackexchange", "id": 21342, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "beginner, functional-programming, combinatorics, clojure", "url": null }
star, the-sun, astrophysics, life, earth-like-planet Title: What types of star do we know are hostile to life (like ours)? Certainly all stars have enough energy for a planet to host life. But a more magnetically active star is not preferred because solar ejection could strip planets of their atmosphere. What's the ri...
{ "domain": "astronomy.stackexchange", "id": 2957, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "star, the-sun, astrophysics, life, earth-like-planet", "url": null }
python, scipy (((-np.sqrt((k0*k2*k3))*np.sqrt((k1*k2*k3)))*(np.sqrt((8*io*((k1*k2*k3)+1))+((k0*k2*k3)*(k1*k2*k3))))+((k0*k2*k3)*(k1*k2*k3))+(4*io*((k1*k2*k3)+1)))/(4*(((k1*k2*k3)+1)**2)))/io, )
{ "domain": "codereview.stackexchange", "id": 44547, "lm_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, scipy", "url": null }
photons, quantum-optics, fiber-optics is the frequency domain transfer function of the material, where $L$ is the length of the fiber, $\omega_0$ is the center frequency of the pulse, and $k^{(n)}(\omega_0)$ is the $n^\text{th}$ derivative of the spatial wavenumber $k$ evaluated at the center frequency. At that point,...
{ "domain": "physics.stackexchange", "id": 13900, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "photons, quantum-optics, fiber-optics", "url": null }
Subtracting the last two relations we have $$2(xy-yx)=0 \ .$$ We then show that $3( x+x^2)=0 \ \ \forall x$. You get this from $$x+x^2=(x+x^2)^3=x^3+3 x^4+3 x^5+x^6=4(x+x^2) \ .$$ In particular $$3 (x+y +(x+y)^2) =3( x+x^2+ y+ y^2+ xy+yx)=0 \,$$ we end-up with $3(xy+yx)=0$. But since $6xy=0$, we have $3(xy-yx)=0$...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9835969698879861, "lm_q1q2_score": 0.8280171499557718, "lm_q2_score": 0.8418256412990658, "openwebmath_perplexity": 666.9237019305383, "openwebmath_score": 0.9863289594650269, "tag...
wdl Title: Matching files by chromosome during wdl scatter gather I'm trying to implement a polygenic score pipeline in WDL and I'm quite new to this pipeline management. The first step of the pipeline takes a file of GWAS summary statistics and splits it by chromosome. The corresponding wdl task: task split { inp...
{ "domain": "bioinformatics.stackexchange", "id": 1390, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "wdl", "url": null }
javascript Title: Alternate to a switch case - Javascript I have a piece of code which works but I am looking for an optimal solution, if one exists. I have a column value and the value can only range from 2 to 10 including 2 and 10. The base value inside a switch is 18. Whenever the column value increases by 1, I nee...
{ "domain": "codereview.stackexchange", "id": 40182, "lm_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", "url": null }
vba, internet-explorer End Function ### Popup Public Function PopupExists(ByVal title As String) As Boolean PopupExists = Not (GetWindowFromTitle(title) Is Nothing) End Function Private Accessors Private Function GetDoc() As Object Wait Set GetDoc = pBrowser.document End Function Private Function Fiel...
{ "domain": "codereview.stackexchange", "id": 10585, "lm_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, internet-explorer", "url": null }
ros-melodic Originally posted by ROSNewbie on ROS Answers with karma: 5 on 2021-06-25 Post score: 0 As mentioned by @janindu, you can use threads to accomplish this task. At the same time, it is possible for you to restructure your code to accomplish the same task as well. Let's try to understand your task: When node...
{ "domain": "robotics.stackexchange", "id": 36580, "lm_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 }
A. From the HW#3’s solution, the stability analysis can be summarized by: • Unconditionally stable if $$\theta \geqslant \frac{1}{2}$$ • Conditionally stable if $$0 \leqslant \theta < \frac{1}{2}$$ In the case of conditionally stable scheme, the maximum time step can be determined by using below relation so that the ...
{ "domain": "readthedocs.io", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9904405986777258, "lm_q1q2_score": 0.8188089327105932, "lm_q2_score": 0.8267118026095991, "openwebmath_perplexity": 733.9610852796594, "openwebmath_score": 0.6909763813018799, "tags":...
matlab, transfer-function, laplace-transform, state-space, time-domain If I convert my diagonal/model form above into transfer function using this code. J = 0.01; b = 0.1; K = 0.01; R = 1; L = 0.5; determinant_squared = sqrt( (b*L + J*R)^2 - 4*J*L*(b*R+K^2) ); s1 = ( -(b*L+J*R) + determinant_squared ) / (2*J*L); s2 =...
{ "domain": "dsp.stackexchange", "id": 6791, "lm_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, transfer-function, laplace-transform, state-space, time-domain", "url": null ...
satisfiability, counting, sat-solvers Title: Counting solutions of a particular type in HORN SAT I am interested in counting the number of solutions of a particular type (say #) in HORN SAT. I have 2 questions concerning the same. Suppose we have a HORN SAT -: $(x_1) \land (x_2 \implies x_1)$, then the solutions are ...
{ "domain": "cs.stackexchange", "id": 11339, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "satisfiability, counting, sat-solvers", "url": null }
quantum-mechanics, operators, momentum Title: Deriving the momentum operator $\hat{p}$ with wavefunction $\Psi$ using the translation operator The momentum operator $\hat{p}$ can be written as $$ \hat{p} = i\hbar \lim_{a \rightarrow 0} \frac{\hat{T}(a\hat{r})- \hat{\mathbb{I}}}{a} $$ where $\mathbb{\hat{I}}$ is t...
{ "domain": "physics.stackexchange", "id": 67074, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-mechanics, operators, momentum", "url": null }
quantum-mechanics, homework-and-exercises, wavefunction, schroedinger-equation, potential Title: Solution for Schrödinger equation for constant box potential? It is known that in a box potential, when we set $V = 0$ inside and $V = \infty$ on the boundaries, the solution to the equation $$ - \frac{\hbar}{2m} \bigg( \...
{ "domain": "physics.stackexchange", "id": 31416, "lm_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, wavefunction, schroedinger-equation, po...
python, python-3.x, enigma-machine d1 = rotate(d1) d1rc += 1 if d1rc == len(d1): d1rc = 0 d2 = rotate(d2) d2rc += 1 if d2rc == len(d2): d2rc = 0 d3 = rotate(d3) d3rc += 1 if d3rc == len(d3): d4 = rotate(d4) ...
{ "domain": "codereview.stackexchange", "id": 24286, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-3.x, enigma-machine", "url": null }
# Math Help - Solve (x^2) ( d^2/dx^2) + 3x(dy/dx) + y = 1/x 1. ## Solve (x^2) ( d^2/dx^2) + 3x(dy/dx) + y = 1/x (x^2) ( d^2/dx^2) + 3x(dy/dx) + y = 1/x how can i find the general solution of differential equation? 2. It's a Cauchy-Euler equation. Use that procedure. 3. but right side of equation isn't equal to zer...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9848109498546361, "lm_q1q2_score": 0.882638164719706, "lm_q2_score": 0.8962513717480382, "openwebmath_perplexity": 559.7885446521278, "openwebmath_score": 0.8851804733276367, "...
and then realize, okay, I have a composite function here. f'(x) = 1/(2 √x) Let us look into some example problems to understand the above concept. Derivatives with different rules. Simplifying further, we have that y = u and u = x^(-1/2) The chain rule states dy/dx = dy/(du) xx (du)/dx This means we have to differentia...
{ "domain": "cardesignnews.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9715639702485929, "lm_q1q2_score": 0.8138013791046866, "lm_q2_score": 0.8376199653600372, "openwebmath_perplexity": 750.8942168718196, "openwebmath_score": 0.6523811221122742, ...
python, beginner, game, pygame, snake-game pygame.draw.circle(game_display, DARK_CYAN, [powerup_x, powerup_x], 10) while len(snake_list) > 2: del snake_list[0] snake_head = list() snake_head.append(lead_x) snake_head.append(lead_y) snake_list.append(snake_head) ...
{ "domain": "codereview.stackexchange", "id": 13803, "lm_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, game, pygame, snake-game", "url": null }
ros, servo Originally posted by cyborg-x1 with karma: 1376 on 2015-04-20 This answer was ACCEPTED on the original site Post score: 1 Original comments Comment by Cerin on 2015-04-20: The only SDF I've written is for the physical model, which is just the 4 legs and body. Is there no way to use that from ROS? Isn't the...
{ "domain": "robotics.stackexchange", "id": 21469, "lm_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, servo", "url": null }