text stringlengths 1 1.11k | source dict |
|---|---|
quantum-spin, spin-statistics, spin-chains
$$-\frac{\mu_0}{4\pi}\frac{3(\mathbf{m}_1\cdot\hat{\mathbf{r}})(\mathbf{m}_2\cdot\hat{\mathbf{r}})-\mathbf{m}_1\cdot\mathbf{m}_2}{r^3}.$$
If you take the spins to be on a lattice in the $xy$ plane, and oriented at right angles to that plane, then this becomes proportional to ... | {
"domain": "physics.stackexchange",
"id": 60908,
"lm_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-spin, spin-statistics, spin-chains",
"url": null
} |
• How do you make sure that $M_j-m_j$ is $\leq$ some value where $g(x_j)-g(x_{j-1})<0$ (see another answer here). – Paramanand Singh Oct 14 '18 at 21:25 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9911526437410444,
"lm_q1q2_score": 0.8171676158544897,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 72.31938429811599,
"openwebmath_score": 0.9667137861251831,
"tag... |
orbit
In general, the only words that can describe the result of this process at first is "hot mess." A hot mess did not deter those brilliant minds of old. Via various simplifying assumptions and long term time averaging, they came up with fairly simple descriptions of, for example, $\left \langle \frac{d\omega}{dt} ... | {
"domain": "astronomy.stackexchange",
"id": 618,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "orbit",
"url": null
} |
python, statistics, simulation, multiprocessing
with Pool(procs) as p:
for arguments in zip(max_iter_list, gambler_limits, house_limits, win_probabilities):
jobs = [arguments] * n_trials
duration_list = p.starmap(simulate_game, jobs)
In case of a full grid-search of your parameters, this combines ... | {
"domain": "codereview.stackexchange",
"id": 36466,
"lm_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, statistics, simulation, multiprocessing",
"url": null
} |
java, random
Title: Random Quote in java Problem Statement:
Create a class diagram and Java code for the following system and
scenario, taking into account the possibility of future extensions.
"The system is a command line utility that prints a short 'quote of
the day' on the user's terminal when run. To beg... | {
"domain": "codereview.stackexchange",
"id": 10437,
"lm_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, random",
"url": null
} |
image-processing, optimization, software-implementation, blur, performance
Title: Fastest Available Algorithm to Blur an Image (Low Pass Filter) I am working with a camera that produces ugly artifacts:
by using ANY blur filter on the camera's output the visual quality improves drastically: | {
"domain": "dsp.stackexchange",
"id": 9240,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "image-processing, optimization, software-implementation, blur, performance",
"url": n... |
special-relativity, energy, mass, speed-of-light, speed
Title: Can massless particles travel slower than the speed of light in vacuum? We know an object with positive mass cannot be accelerated to the speed of light because this would require an infinite amount of energy. My question is:
Is there anything in the univ... | {
"domain": "physics.stackexchange",
"id": 80792,
"lm_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, energy, mass, speed-of-light, speed",
"url": null
} |
java, pdf
} catch (IOException e) {
e.printStackTrace();
}
}
if (listOfTempFiles[i].getName().substring(listOfTempFiles[i].getName().lastIndexOf("#") + 1).toUpperCase().contains("NA")) {
... | {
"domain": "codereview.stackexchange",
"id": 22799,
"lm_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, pdf",
"url": null
} |
thermodynamics, experimental-physics, home-experiment, popular-science
This however might be very cumbersome. So here's another proposition:
Slower, but enough cooling power: Don't pour the milk into a bottle, put it into some vessel which is very narrow or somehow far away from cylindrical or round form such that the... | {
"domain": "physics.stackexchange",
"id": 25759,
"lm_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, experimental-physics, home-experiment, popular-science",
"url": ... |
pressure, vacuum, biophysics
Your bowels and bladder would tend to empty themselves, and the extra pressure might be too much for the usual protections to function, but I'm not sure. The same problem would happen at the other end, and you might well end up with your lunch flying off into space.
Space itself has no tem... | {
"domain": "physics.stackexchange",
"id": 25125,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pressure, vacuum, biophysics",
"url": null
} |
molecular-biology, proteins, senescence, protein-expression
Edit: A few references:
This article shows that one can use 14C radiodating to determine the date of synthesis of lens proteins, because of their exceptionally low turnover: Lynnerup, "Radiocarbon Dating of the Human Eye Lens Crystallines Reveal Proteins with... | {
"domain": "biology.stackexchange",
"id": 9287,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, proteins, senescence, protein-expression",
"url": null
} |
A plane intersects the coordinate axes at $$x = \frac{2}{3},\;y = \frac{1}{3}\;and\;z = \frac{1}{2}$$ what is the Miller index of this plane?
1. 9,3,2
2. 4,3,2
3. 4,2,3
4. 3,6,4
Option 4 : 3,6,4
Miller Indices MCQ Question 1 Detailed Solution
Explanation:
Miller indices are rationalized reciprocal of fractional in... | {
"domain": "testbook.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806540875628,
"lm_q1q2_score": 0.8016977102726662,
"lm_q2_score": 0.817574471748733,
"openwebmath_perplexity": 1668.18593158734,
"openwebmath_score": 0.6332297325134277,
"tags": nul... |
based $$b$$ of the isosceles triangle, its area A, height h, inscribed and circumscribed radii r and R respectively are give by: Problems with Solutions Problem 1 4. What are the coordinates of the third vertex? You may want to sketch it out. Here, ZY = CY . 4 Isosceles and Equailateral Triangles 4. Learn vocabulary, t... | {
"domain": "sumcoop.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718496130619,
"lm_q1q2_score": 0.8068126433802972,
"lm_q2_score": 0.8152324871074607,
"openwebmath_perplexity": 587.6750757794822,
"openwebmath_score": 0.685784101486206,
"tags":... |
But I have a feeling there's something wrong?
• You are over-counting sequences like T H H T H H T . – kimchi lover Mar 22 at 15:01
• @kimchilover ...and even THHTHHTHHT. – CiaPan Mar 22 at 15:32
You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7\cdot 2^6 - 6\cdot 2^2 - 4\cdot 2^3+1... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.964321452198369,
"lm_q1q2_score": 0.8196454329396604,
"lm_q2_score": 0.8499711699569787,
"openwebmath_perplexity": 248.21528936061475,
"openwebmath_score": 0.7089072465896606,
"tag... |
matrix defined as = , the transpose matrix is defined as = . For example, consider a matrix . (The transpose of a matrix) Let Abe an m nmatrix. Find transpose by using logic. Transpose definition, to change the relative position, order, or sequence of; cause to change places; interchange: to transpose the third and fou... | {
"domain": "southernmines.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9863631623133665,
"lm_q1q2_score": 0.8909761398531966,
"lm_q2_score": 0.9032942164664239,
"openwebmath_perplexity": 714.7809239474072,
"openwebmath_score": 0.6923036575317383,
... |
javascript, template, library
2. But really, you should precompile templates to a JS file
In this case, your build workflow will include an additional step when a certain command-line script goes over your templates/*.html files and compiles each HTML template into a JavaScript function that “takes” data arguments and... | {
"domain": "codereview.stackexchange",
"id": 9366,
"lm_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, template, library",
"url": null
} |
javascript, jquery, css
offset = scroll_position // The top of window
+ ((scroll_position / body_height) * window_height_adj) // The position of the top of scrollbar
+ (((window_height_adj / body_height) * window_height_adj) / 2) // Half the height of the scrollbar
+ scrollbar_button_height // The scrollba... | {
"domain": "codereview.stackexchange",
"id": 1345,
"lm_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, css",
"url": null
} |
python, algorithm, python-3.x, linked-list
return pop_val
def count(self, element):
temp = self.head
count = 0
while temp is not None:
if temp.data == element:
count += 1
temp = temp.next
return count
def remove(self, element):
... | {
"domain": "codereview.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": "python, algorithm, python-3.x, linked-list",
"url": null
} |
nlp, text-mining, information-retrieval, named-entity-recognition, generalization
Title: What is NLP technique to generalize manually created rules in text? Let's say we have a free text containing key-value entities.
Example: "... patient's tumour has width 6 cm and height 5 cm"
Then an expert comes, marks it as impo... | {
"domain": "datascience.stackexchange",
"id": 4016,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nlp, text-mining, information-retrieval, named-entity-recognition, generalizati... |
javascript, node.js, rest, mongodb, mongoose
// mismatch of type;
if (req.body.type != "buy") {
throw customError(400, "Bad request; type must be 'buy'.")
}
const portfolioName = req.params.portfolioName;
const trade = req.body;
(async () => {
... | {
"domain": "codereview.stackexchange",
"id": 39254,
"lm_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, node.js, rest, mongodb, mongoose",
"url": null
} |
python, python-3.x
team_stats[team]['HomeBoxTouchesRatio'] = team_stats[team]['HomeBoxTouchesFor'] / (team_stats[team]['HomeBoxTouchesFor'] + team_stats[team]['HomeBoxTouchesAgainst'])
team_stats[team]['AwayBoxTouchesRatio'] = team_stats[team]['AwayBoxTouchesFor'] / (team_stats[team]['AwayBoxTouchesFor'] + tea... | {
"domain": "codereview.stackexchange",
"id": 38547,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-3.x",
"url": null
} |
reinforcement-learning, open-ai, chess, gym, go
There are limitations for Gym and Universe when dealing with multiple agents. The API is not really designed with that in mind. For instance, there is no simple way to add two agents to an environment, you would have to write a new environment and attach an opposing agen... | {
"domain": "ai.stackexchange",
"id": 1663,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, open-ai, chess, gym, go",
"url": null
} |
physical-chemistry, thermodynamics
Title: Thermodynamic statements Question 13 from [1, p. 4.2]:
Which of the following statements is true?
(a) An ideal gas always obeys the equation: $PV^γ = \mathrm{constant}$ in adiabatic process.
(b) An ideal gas always obeys the equation: $PV^x = \mathrm{constant}$ in
polytrop... | {
"domain": "chemistry.stackexchange",
"id": 12670,
"lm_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",
"url": null
} |
java, game, homework
Callers should only use that method, and let the implementing class decide what to do with or without the dicesValues.
Around that, Yahtzee allows the player to use some categories only once, or to modify the result on the second or third application. I'd build that logic around the ScoreCategory ... | {
"domain": "codereview.stackexchange",
"id": 43031,
"lm_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, homework",
"url": null
} |
electromagnetism
Griffiths's textbook has a nice "toy model" discussion of this, which is good for building intuition. For all the details, the best places to go are a book and a bunch of articles (e.g., this one) by F. Rohrlich.
Once you've got a good theory for spheres of radius $a$, the natural thing to do is to ta... | {
"domain": "physics.stackexchange",
"id": 906,
"lm_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",
"url": null
} |
c#, strings, linq, converting
End-of-data frame of reference
What I mean by frame-of-reference, is that your common reference point between the input string, and the output array, is the last character, and the last member of the byte[] array. You should line up your reference points, and work out from there. In this ... | {
"domain": "codereview.stackexchange",
"id": 7921,
"lm_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#, strings, linq, converting",
"url": null
} |
gravity, energy-conservation, warp-drives
(My maths skill level is UK A-Level, roughly the equivalent of first-year university in the USA. I can follow some calculus, but I don't know half the symbols used in GR. My intuition, which I know is a terrible way of approaching physics, says the ship in my question would re... | {
"domain": "physics.stackexchange",
"id": 38419,
"lm_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, energy-conservation, warp-drives",
"url": null
} |
ros, navigation, ros-kinetic, costmap-2d, global-costmap
Originally posted by David Lu with karma: 10932 on 2019-02-21
This answer was ACCEPTED on the original site
Post score: 7
Original comments
Comment by mgruhler on 2019-02-22:
great! Thanks @David Lu I really missed that I actually set this parameter. I guess th... | {
"domain": "robotics.stackexchange",
"id": 32501,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, navigation, ros-kinetic, costmap-2d, global-costmap",
"url": null
} |
electromagnetism
Title: Current direction and magnetism
So using the right hand rule, I understand current is clockwise. Because I read the magnetic field emerges from the north pole, I thought the answer was a, that the north pole is on the top. But the answers for this state it is b, the north pole is on the bottom... | {
"domain": "physics.stackexchange",
"id": 21082,
"lm_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",
"url": null
} |
scala
var logger: Logger = null
var testService: ValueMapper = null
before {
ModuleLoader.shutdown()
Thread.sleep(500)
makeDBCopy("testPersStoreMaster1", "vmtPersStore")
val resourceURL = getClass.getResource("ValueMapperTestManifest.xml")
ModuleLoader.initialize(resourceURL)
val defaul... | {
"domain": "codereview.stackexchange",
"id": 10213,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "scala",
"url": null
} |
ros
>
> ROS_MASTER_URI=http://localhost:11311
>
> core service [/rosout] found
> process[joy-1]: started with pid
> [9583] ERROR: cannot launch node of
> type
> [hector_quadrotor_teleop/quadrotor_teleop]:
> can't locate node [quadrotor_teleop]
> in package [hector_quadrotor_teleop] [
> INFO] [1454087147.602275221]: ... | {
"domain": "robotics.stackexchange",
"id": 23588,
"lm_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
} |
satisfles P2 = p is called a right inverse is unique a left inverse of and... And GAGA=GA syntax to specify the independent variable inverse Michael Friendly 2020-10-29 subtraction was defined in terms ofmultiplication they... Necessarily unique must be square has aright andE Eboth a left inverse, then \ MA. Denotes the... | {
"domain": "joshlevinedesigns.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9817357259231532,
"lm_q1q2_score": 0.8363925098732025,
"lm_q2_score": 0.851952809486198,
"openwebmath_perplexity": 629.8974514868644,
"openwebmath_score": 0.7779423594474792,
"... |
python, web-scraping, scrapy
Title: Scrapy spider for products on a site I recently submitted a code sample for a web scraping project and was rejected without feedback as to what they didn't like. The prompt, while I cannot give it here verbatim, basically stated that I needed to write a spider to crawl a site for pr... | {
"domain": "codereview.stackexchange",
"id": 16352,
"lm_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, web-scraping, scrapy",
"url": null
} |
microbiology, bacteriology, antibiotics
P. aeruginosa is responsible for multi-resistant nosocomial diseases (a basic definition of nosocomial is an infection acquired inside a hospital) that have really high mortality rates. It is not uncommon to see hospital antibiogram results for this bacteria informing about resi... | {
"domain": "biology.stackexchange",
"id": 9275,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "microbiology, bacteriology, antibiotics",
"url": null
} |
experimental-technique
n.b. Originally the equation I was given was indeed wrong and that was what had to be shown in the lab but I am writing the correct equation to avoid any confusion. The question and some of the comments overlook the significance of the coil which has both a resistance R an inductive reactance (2... | {
"domain": "physics.stackexchange",
"id": 20930,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-technique",
"url": null
} |
rotation, movement, transformation, matrix, coordinate-system
We can now construct 2 perpendicular vectors, in the $P_1P_2P_3$ plane which share their origin in $P_4$
$\vec v_1 = P_3 - P_4$
$\vec v_2 = P_1 - P_4$ (we could also use $\vec v_2 = P_2 - P_4$, this would cause an 180 deg offset around the z axis)
The cross... | {
"domain": "robotics.stackexchange",
"id": 2176,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rotation, movement, transformation, matrix, coordinate-system",
"url": null
} |
c#
You've defined some method so you could rearrange some things and add additional levels of indirection to run slower and more inefficient than if you had just written the standard way using the using and foreach blocks. What did you gain here? I'll tell you, nothing.
Any half-decent C# programmer should know what... | {
"domain": "codereview.stackexchange",
"id": 1295,
"lm_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
} |
meteorology, atmosphere, ozone, gas, mathematics
Shown above are ozone values from a model – basically the given values on the right beside the dates are in $\mathrm{kg} \cdot \mathrm{kg}^{-1}$. How can I convert them to ppbV? So if you have a mass-mixing ratio, you effectively $\frac{ \text{kg pollutant}}{\text{kg dr... | {
"domain": "earthscience.stackexchange",
"id": 2336,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology, atmosphere, ozone, gas, mathematics",
"url": null
} |
mechanical-engineering, structural-engineering, structural-analysis, solid-mechanics, machine-design
This is a typical problem and the solution can readily be found in many design aids. by searching for a two-span beam with a concentrated load on the mid-span.
An easy way of calculating the reactions is to release the... | {
"domain": "engineering.stackexchange",
"id": 4275,
"lm_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, structural-analysis, solid-mech... |
python, performance, io, web-scraping, compression
def replace_chars(text, replacements):
return ''.join(replacements.get(x,x) for x in text)
def handle_listing(listing_url):
listing_document = BeautifulSoup(download(listing_url))
# ignore pages that link to yellowpages
if not listing_document.find("... | {
"domain": "codereview.stackexchange",
"id": 1043,
"lm_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, io, web-scraping, compression",
"url": null
} |
astrophysics, astronomy, galaxies, distance, parallax
Cepheids are very bright stars that can be identified by their variability in distant galaxies (in this case, distant means up to about 100 million light years, but not further than that). Their period gives their luminosity (from the calibrated relationship) and t... | {
"domain": "physics.stackexchange",
"id": 43650,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "astrophysics, astronomy, galaxies, distance, parallax",
"url": null
} |
special-relativity, time, measurements, epistemology
We can say that, but for the purposes of physics, a universal clock that cannot be read or observed might as well not exist. I can say that the universe is filled with massless, invisible, undetectable pink unicorns - but that statement is not within the realm of ph... | {
"domain": "physics.stackexchange",
"id": 89767,
"lm_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, time, measurements, epistemology",
"url": null
} |
statistical-mechanics, phase-transition, mean-field-theory
$$
S = -(\phi\ln\phi+(1-\phi)\ln(1-\phi))
$$
which favours mixing at $\phi=1/2$ (maximise entropy). The magnetism analogue, this is again the entropy of your material which wants to randomise the material.
The other force is repelling energy between the types ... | {
"domain": "physics.stackexchange",
"id": 98640,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "statistical-mechanics, phase-transition, mean-field-theory",
"url": null
} |
resource-request, nielsen-and-chuang
Title: Is there any 'official' list of errata for Nielsen & Chuang? The book Quantum Computing and Quantum Information by Nielsen and Chuang is a well-known and celebrated text book that can act as a resource in a wide variety of topics. Of course, in such a vast textbook there mig... | {
"domain": "quantumcomputing.stackexchange",
"id": 1903,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "resource-request, nielsen-and-chuang",
"url": null
} |
algorithms, graphs, weighted-graphs, minimum-spanning-tree, depth-first-search
run "improved" DFS that save for each $v$ with his $π$ the "heaviest" non integer edge we found , the "heaviest" integer edge and the amount of non integer edge we found,
i proved the MST cycle property same idea like this answer here and ... | {
"domain": "cs.stackexchange",
"id": 19675,
"lm_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, weighted-graphs, minimum-spanning-tree, depth-first-search",
"url... |
thermodynamics, chemical-potential
Title: Showing $\mu_1=\mu_2$ by minimization of thermodynamic potentials
A gas tank is divided into two parts by a stationary barrier. The tank
is held at constant temperature and constant pressure. A small hole is
pierced in the barrier, so that particles can move. Show that
... | {
"domain": "physics.stackexchange",
"id": 33633,
"lm_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, chemical-potential",
"url": null
} |
synthetic-biology, gene-regulation, systems-biology
In most transcriptional and translational genetic circuits, the limiting factor for switching state is dilution or decay rate.
This is because genetic regulatory networks directly control rate of production, rather than concentration. Thus, even if your oscillator i... | {
"domain": "biology.stackexchange",
"id": 11474,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "synthetic-biology, gene-regulation, systems-biology",
"url": null
} |
fluid-dynamics, pressure, bernoulli-equation
Title: Why shouldn't we stand near a moving train? My physics teacher says,
“ When a train moves, there is a matter wave attached to it. Waves move from positive to negative. Outside of train is positive and inside is negative. So, the train may pull us towards it if we s... | {
"domain": "physics.stackexchange",
"id": 47492,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics, pressure, bernoulli-equation",
"url": null
} |
ros, urdf, moveit, moveit-setup-assistant
Originally posted by t27 on ROS Answers with karma: 68 on 2016-10-14
Post score: 0
Original comments
Comment by JoshMarino on 2016-10-14:
Possible confusion, but shouldn't demo.launch be in the ROS package manip_moveit_config?
roslaunch manip_moveit_config demo.launch
Comment... | {
"domain": "robotics.stackexchange",
"id": 25976,
"lm_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, urdf, moveit, moveit-setup-assistant",
"url": null
} |
Note that the folded normal distribution is unimodal for some values of the parameters and decreasing for other values. Note also that $$\mu$$ is not a location parameter nor is $$\sigma$$ a scale parameter; both influence the shape of the probability density function.
### Moments
We cannot compute the the mean of th... | {
"domain": "libretexts.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587272306607,
"lm_q1q2_score": 0.8029167783189268,
"lm_q2_score": 0.8128673087708698,
"openwebmath_perplexity": 192.34280191953195,
"openwebmath_score": 0.9952647686004639,
"t... |
machine-learning, function, approximation
(Tree methods.) Another way is to look at a function as a tree; at each level, you are working with some partition of the domain, and return, for instance, the average point. (Each pruning of the tree also gives a partition.) In the limit, the fineness of this partition wil... | {
"domain": "cstheory.stackexchange",
"id": 1041,
"lm_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, function, approximation",
"url": null
} |
cosmology, universe, planets
Then $M=M_0\cup M_n$. My question is: are there any hypotheses in $M_n$? or is $M_n$ an empty set? $M_0$ is all of physics (the serious one); $M_n$ is virtually all of physics, except for cosmology and geophysics (and some other "historical sciences" I don't want to enumerate in too much ... | {
"domain": "physics.stackexchange",
"id": 10358,
"lm_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, universe, planets",
"url": null
} |
regression, linear-regression
For example for only 15 points (and polynomial of degree 14) the determinant of AT*A decreases to ca 10E-150 making the matrix almost singular.
In the figure shown below I plot the log10 of determinant as a function of average distance between x-points across 1000 experiments: the pattern... | {
"domain": "datascience.stackexchange",
"id": 8688,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "regression, linear-regression",
"url": null
} |
Here $$N=20$$, $$f(x)=x \log x$$, and by trial and error we choose $$\epsilon=.00141$$. This gives the points $$\{0.0000, 0.0039, 0.0112, 0.0242, 0.0427, 0.0670, 0.0968, 0.1323, 0.1735, 0.2203, \\ \ \ 0.2727, 0.3308, 0.3945, 0.4638, 0.5388, 0.6195, 0.7057, 0.7976, 0.8951, 1.0000\}.$$ Linear interpolation on those point... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9626731169394881,
"lm_q1q2_score": 0.8363961774920043,
"lm_q2_score": 0.8688267728417087,
"openwebmath_perplexity": 258.69176521345986,
"openwebmath_score": 0.9757772088050842,
"tag... |
ros, calibration, camera-calibration, camera-pose-calibration
Originally posted by AndyZe on ROS Answers with karma: 2331 on 2017-03-27
Post score: 0
Original comments
Comment by gvdhoorn on 2017-03-28:
Are you referring to the old version, or the new package?
Comment by AndyZe on 2017-03-28:
This one: camera_pose_ca... | {
"domain": "robotics.stackexchange",
"id": 27441,
"lm_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, calibration, camera-calibration, camera-pose-calibration",
"url": null
} |
Singularity error. What is actually causing the problem here?
I am solving the equation of motion for a nonlinear oscillator. At values of $\nu$ greater than $\approx 0.408$, this list stop plotting, giving an error like this (for ν = 0.4085:
NDSolve::ndsz: At t == 11.448194278316508, step size is effectively zero; s... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9759464450067471,
"lm_q1q2_score": 0.817472231415798,
"lm_q2_score": 0.8376199694135332,
"openwebmath_perplexity": 2694.562385712552,
"openwebmath_score": 0.4491979479789734,
"tags... |
stresses
0 & 0 & 0 & 0 & G_{1y} & G_{2y} & G_{3y} & G_{4y} \\
G_{1y} & G_{2y} & G_{3y} & G_{4y} & G_{1x} & G_{2x} & G_{3x} & G_{4x}
\end{bmatrix} \mathbf{u}
$$
where
$$
\mathbf{u} = \begin{bmatrix}
u_x^1 & u_x^2 & u_x^3 & u_x^4 & u_y^1 & u_y^2 & u_y^3 & u_y^4
\end{bmatrix}^T
$$
Consider the case where t... | {
"domain": "engineering.stackexchange",
"id": 1470,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "stresses",
"url": null
} |
To prove the reverse direction, we can't make estimations like before; we have to invoke a teeny bit of topology.
What we just proved is, in addition, that the map $f:\Bbb R^n\rightarrow \Bbb R: v \mapsto ||v||_1$ is continuous (where I mean $\Bbb R^n$ with the topology given by $||\cdot||_2$). Now note that the unit ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718483945665,
"lm_q1q2_score": 0.8091304386557798,
"lm_q2_score": 0.817574471748733,
"openwebmath_perplexity": 256.0779790250708,
"openwebmath_score": 0.9916040897369385,
"tags... |
quantum-field-theory, mathematical-physics, regularization, analyticity, casimir-effect
$$
\sum_{n=1}^\infty n^{-s}\eta(n/N) = C_{\eta,-s}N^{1-s}+\zeta(s)+O(1/N)
$$
with $\eta$ the regulator and $N$ the cutoff scale. As expected the regularised sum depends both on $N$ and $\eta$. This is the case for the first term, w... | {
"domain": "physics.stackexchange",
"id": 99849,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory, mathematical-physics, regularization, analyticity, casimir-e... |
# Number Theory: Reordering $c_1,\dotsc,c_{10}$ so that $(2k-1)\mid(a_k-b_k)$
I have this homework problem that I'm confused on how to do:
Given any distinct $z_1,\dotsc,z_{10}\in\mathbb{Z}$, show that one can reorder these as $s_5,s_4,\dots,s_1,t_5,\dotsc,t_1$ so that $(2k-1)\mid(s_k-t_k)$; thus $9\mid(s_5-t_5),7\mi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9912886152849366,
"lm_q1q2_score": 0.8150267268569157,
"lm_q2_score": 0.8221891327004133,
"openwebmath_perplexity": 89.03564266739944,
"openwebmath_score": 0.9467302560806274,
"tag... |
slam, navigation, ros-kinetic, 3d-slam, rtabmap
<remap from="odom" to="/odom"/>
<remap from="scan_cloud" to="/head_camera/depth_registered/points"/>
<remap from="rgb/image" to="/head_camera/rgb/image_raw"/>
<remap from="depth/image" to="/head_camera/depth_registered/image_raw"/>
<remap from="rgb/came... | {
"domain": "robotics.stackexchange",
"id": 34381,
"lm_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-kinetic, 3d-slam, rtabmap",
"url": null
} |
c#, casting
}
return false;
}
return false;
} In order to make your switch testable and extendable you should split it into multiple classes. One class for each operation that could look like this interface:
interface IOperation
{
bool Evaluate(string actionToApply, string fieldTypeName, string... | {
"domain": "codereview.stackexchange",
"id": 26727,
"lm_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#, casting",
"url": null
} |
probability, hydrogen
EDIT:
Additional question:
If I convert $\psi$ back in rectangular cartesian coordinates, I get $\displaystyle{\psi = Nexp\left(- \frac {\sqrt{x^2+y^2+z^2}}{a_0}\right)}$. The probability function will be only $|\psi|^2$ in this system. Then in this case, we don't get any peaks radially. How do w... | {
"domain": "physics.stackexchange",
"id": 34134,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "probability, hydrogen",
"url": null
} |
python, python-3.x, concurrency, hashcode
Using the else clause on the for i, byte in enumerate(guess): loop simplifies the logic a bit. When the loop is finishes, the else clause is executed. However, a break skips the else clause. Here, if the loop doesn't find any bytes to increase, the else clause add another b... | {
"domain": "codereview.stackexchange",
"id": 39915,
"lm_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, concurrency, hashcode",
"url": null
} |
python, image, steganography
try:
from PIL import Image
except ImportError:
raise ImportError('python imaging library module was not found')
#Import internet bits, stop upload features if any don't exist
global override_upload
override_upload = False
try:
import pyimgur
import requests
except ImportEr... | {
"domain": "codereview.stackexchange",
"id": 15973,
"lm_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, image, steganography",
"url": null
} |
particle-physics, angular-momentum, conservation-laws, quantum-spin, standard-model
For your particular reaction the angular momenta vectors of the particles involved in the decay added (vectror addition) with the various spins conserve the total angular momentum. Spin is not an additive quantum number to be conserv... | {
"domain": "physics.stackexchange",
"id": 96375,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics, angular-momentum, conservation-laws, quantum-spin, standard-mode... |
urdf, ros-kinetic, hector, xacro, hector-quadrotor
Title: urdl and xacro files
Hello everyone
I have both quadrotor_base.urdf and quadrotor_base.urdf.xacro files in my directory. If I make any change in quadrotor_base.urdf.xacro file and save it, would it be enough? does the xacro file create a new urdf with the same... | {
"domain": "robotics.stackexchange",
"id": 34828,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "urdf, ros-kinetic, hector, xacro, hector-quadrotor",
"url": null
} |
quantum-mechanics, newtonian-mechanics, electrons, atoms
Having said that, do quantum mechanics and classical mechanics both describe electrons, and if so is QM just an "add-on"? (As in, both baseballs and electrons follow classical mechanics, but electrons also follow QM)
When they actually do conflict does QM always... | {
"domain": "physics.stackexchange",
"id": 98782,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, newtonian-mechanics, electrons, atoms",
"url": null
} |
c#, beginner, console, playing-cards
enum cardColor
{
Spades,
Hearths,
Clubs,
Diamonds,
};
enum cardFace
{
Ace,
Two,
Three,
Four,
Five,
Six,
Seven,
... | {
"domain": "codereview.stackexchange",
"id": 25388,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, beginner, console, playing-cards",
"url": null
} |
robotic-arm, ros, subscribe
&> (m=..., stream=)
at /opt/ros/fuerte/include/geometry_msgs/Point.h:208
208 stream.next(m.z); (gdb) quit
Can anyone confirm this problem or give me a hint to solve it?
Thanks
Robin
Originally posted by RobinH on ROS Answers with karma: 11 on 2012-10-23
Post score: 1
This is a bu... | {
"domain": "robotics.stackexchange",
"id": 11475,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robotic-arm, ros, subscribe",
"url": null
} |
laser
What does population inversion and threshold mean for the reverse laser?
Because we're not exploiting the time-reversed analog of stimulated emission (stimulated absorption?), there is no threshold from spontaneous to stimulated operation. Similarly, a population inversion (more high-energy electrons than low... | {
"domain": "physics.stackexchange",
"id": 14593,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "laser",
"url": null
} |
= 3/4, and B is a QIV angle, determine the value of cos2B Example 4: Develop a formula for sin(x/2). • Evaluate trigonometric functions using these formulas. sin (2x) = sin (x + x) a) sin :2 ;2sin Tcos T b) cos :2 ;2 ? K O 6 F1 5) When a wave travels through a taut string (like guitar string), the displacement y of ea... | {
"domain": "giovannicobianchi.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718459575753,
"lm_q1q2_score": 0.8044718922330983,
"lm_q2_score": 0.8128673110375457,
"openwebmath_perplexity": 1082.1077187513956,
"openwebmath_score": 0.8661724328994751,
... |
ros2, linux, python3, rospy, rclpy
how does the rclpy.spin() function knows when to trigger a callback, is it like the frequency parameter which we specified inside node.create_rate(2) is also passed to rclpy.spin() function? | {
"domain": "robotics.stackexchange",
"id": 35346,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2, linux, python3, rospy, rclpy",
"url": null
} |
transform
ros::spinOnce();
}
void moveStop( void )
{
/* Set the velocity vector */
geometry_msgs::Twist msg;
msg.linear.x = 0.0;
msg.linear.y = 0.0;
msg.linear.z = 0.0;
msg.angular.x = 0.0;
msg.angular.y = 0.0;
msg.angular.z = 0.0;
... | {
"domain": "robotics.stackexchange",
"id": 18972,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "transform",
"url": null
} |
cc.complexity-theory, communication-complexity, interactive-proofs, query-complexity
Added: Does this protocol work in communication complexity? Take any CC problem that requires $T(n)$ bits of communication without Merlin. In the MA protocol, Merlin sends the entire transcript of communication to Alice and Bob, had t... | {
"domain": "cstheory.stackexchange",
"id": 1705,
"lm_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, communication-complexity, interactive-proofs, query-complexi... |
complexity-theory, data-structures, sorting, binary-trees
After I drew a tree for N = 4, the height was not 4, more specifically, an example would be the following path : (0:1),(1:2),(2:3), here a[2] > a[3] (3:1),(3:0),(3,0,1,2). So is there a formula?
In the example above we first find out that a[0] < a[1] < a[2] and... | {
"domain": "cs.stackexchange",
"id": 4626,
"lm_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, data-structures, sorting, binary-trees",
"url": null
} |
Dataplot Vol 1 Vol 2
# PARTIAL RESIDUAL PLOT
Name:
PARTIAL RESIDUAL PLOT
Type:
Graphics Command
Purpose:
Generate a partial residual plot.
Description:
When performing a linear regression with a single independent variable, a scatter plot of the response variable against the independent variable provides a good indic... | {
"domain": "nist.gov",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9854964186047327,
"lm_q1q2_score": 0.8125042778453538,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 2850.046218764774,
"openwebmath_score": 0.4900675117969513,
"tags": null,... |
graph-theory, lo.logic
My idea was to represent the update rules as a dependency graph and look at cycles to form rules such as if $x_i$ is true in $v_y$ and is in a cycle of length $n$, then it will also be true in $v_{y+n}$.
But the best lower bound I could do so far is to construct an example where for even $k=2l$... | {
"domain": "cstheory.stackexchange",
"id": 5172,
"lm_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, lo.logic",
"url": null
} |
newtonian-mechanics, forces, rotational-dynamics, torque, rotation
Notice that there's a lingering nasty problem: Suppose we have a ball on a tether, which we swing around our head. Assume that the ball is not spherically symmetric: then yeah, we can describe the ball's motion between two points as a translation follo... | {
"domain": "physics.stackexchange",
"id": 24146,
"lm_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, rotational-dynamics, torque, rotation",
"url": null... |
audio, delay
For sources that are behind, before using the formula, add or subtract $\pi$ to/from $\alpha$ to bring it to $-\frac{\pi}{2}\ldots\frac{\pi}{2}$ and flip its sign.
Spherical head, nearby source
If one wants to take into account the distance to the source, the wavefront becomes spherical, or circular on th... | {
"domain": "dsp.stackexchange",
"id": 3397,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "audio, delay",
"url": null
} |
inorganic-chemistry, acid-base
$$
For the equilibrium proton concentration I've derived
$$ \ce{[H+ ]_{eq}} = K_\text{a, 1} \ce{[HA]} + K_\text{a, 2} \ce{[HB]} + K_\text{w} \ce{[H2O]}$$
where I neglect the influence of the water (the additional term $[\dots] + K_\text{w} \ce{[H2O]}$) since it is so small.
Now, I'm stru... | {
"domain": "chemistry.stackexchange",
"id": 772,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "inorganic-chemistry, acid-base",
"url": null
} |
ros, pocketsphinx
Originally posted by PankajBaranwal with karma: 96 on 2017-11-29
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by knxa on 2017-12-01:
Then please close the question. And another advice: please write shorter titles on your questions :-)
Comment by PankajBaranwa... | {
"domain": "robotics.stackexchange",
"id": 28112,
"lm_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, pocketsphinx",
"url": null
} |
machine-learning, scikit-learn, pandas, random-forest, categorical-data
If you want to apply a filter to your data, I'd suggest you using sklearn transformers (like OneHot Encoder, Label Encoding, ... pick the one you need according to what you want to do).
In this case, you have to fit the encoder in your train datas... | {
"domain": "datascience.stackexchange",
"id": 9618,
"lm_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, scikit-learn, pandas, random-forest, categorical-data",
"ur... |
classification, training, python, clustering, k-means
Number of clusters (recall many clusters can have same label).
Distance definition (euclidean is the most basic, Gauss is an
improvement)
Selection of initial cluster positions.
Data preprocessing (data normalization, ...) | {
"domain": "ai.stackexchange",
"id": 521,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classification, training, python, clustering, k-means",
"url": null
} |
node.js, error-handling, typescript, promise
tryNTimes(toTry).then(console.log);
Promise resolve/reject are micro tasks
I will point out that even if you used just plain old promises rather than a async function the result is the same. A promise adds a micro task to the job queue and will not resolve or reject until ... | {
"domain": "codereview.stackexchange",
"id": 34132,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "node.js, error-handling, typescript, promise",
"url": null
} |
acid-base, aqueous-solution, solubility, titration, conductivity
Hypothesis #1
$\ce{HBA}$ will precipitate and the titration curve don't be affected.
In this case the ($\ref{eq:Kppt}$) equation can be solved to $n$:
$$n=\displaystyle\frac{\left(n_\ce{HA}+n_\ce{B}\right)-
\sqrt{\left(-\left(n_\ce{HA}+n_\ce{B}\right)\... | {
"domain": "chemistry.stackexchange",
"id": 12365,
"lm_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, aqueous-solution, solubility, titration, conductivity",
"url": null... |
c, programming-challenge, time-limit-exceeded
for (i = 0; i < C; i++){
scanf ("%d %d", &xi, &xf);
nbacterias = 0;
for (j = 0; j< N; j++){
if ((coord[j].x1 >= xf && coord[j].x2 >= xf) || (coord[j].x2 <= xi && coord[j].x1 <= xi))
nbacterias++;
else if ((xf... | {
"domain": "codereview.stackexchange",
"id": 12393,
"lm_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, time-limit-exceeded",
"url": null
} |
c#, design-patterns, entity-framework
I have made these classes require a IUnitOfWork class in the constructor. This is for functions which require interacting with a repository other than it's own. In the "GetProductGroupsUserBelongsTo" method i need to read from my UserService class aswell so instead of creating a n... | {
"domain": "codereview.stackexchange",
"id": 7201,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, design-patterns, entity-framework",
"url": null
} |
a…. MATLAB includes a wide variety of functions that can be used to simulate a random walk. (for more information please read the MATLAB documentation) The first will work in the same workspace as can be seen from the workspace, whereas the second will usually only produce an output to the workspace. Create a 2D Cartes... | {
"domain": "aresdeck.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769071055402,
"lm_q1q2_score": 0.8440926429097708,
"lm_q2_score": 0.865224091265267,
"openwebmath_perplexity": 1675.8624038387193,
"openwebmath_score": 0.5665031671524048,
"tags": nu... |
python, deep-learning, cnn, computer-vision, opencv
class LocalBinaryPatterns:
def __init__(self, numPoints, radius):
# store the number of points and radius
self.numPoints = numPoints
self.radius = radius
def describe(self, image, eps=1e-7):
# compute the Local Binary Pattern ... | {
"domain": "datascience.stackexchange",
"id": 4400,
"lm_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, deep-learning, cnn, computer-vision, opencv",
"url": null
} |
quantum-mechanics, waves, wavefunction, schroedinger-equation, conventions
I know that $e^{ikx}=\sin(kx)+i\cos(kx)$, but this doesn't tell me anything about which way the wave is travelling in (positive or negative $x$?).
Why do the $e^{ikx}$ terms give right-going waves?
Edit:
I have been given a good answer by @Ste... | {
"domain": "physics.stackexchange",
"id": 34311,
"lm_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, waves, wavefunction, schroedinger-equation, conventions",
"ur... |
c++, mvc, stack, state-machine
int main()
{
StateMachine machine;
machine.push_state<Foo>();
machine.update(0.0f);
machine.pop_state();
machine.update(0.0f);
return 0;
}
GitHub repo
How can I add and use "Controller" component? (component that handles input and etc.). Is it necessary? (MV... | {
"domain": "codereview.stackexchange",
"id": 28086,
"lm_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++, mvc, stack, state-machine",
"url": null
} |
# Flux integral using Cartesian coordinates
Problem - need help for part (ii)
Let $\vec{F} = y \vec{i} -x \vec{j} + z \vec{k}$ and let the surface $S$ be the part of the paraboloid $z = 4 - x^2 - y^2$ with $z \geq 0$, oriented with $\vec{n}$ upwards. Calculate the flux integral $\int_S \vec{F} \cdot d\vec{S}$ using
... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9787126444811033,
"lm_q1q2_score": 0.8155853123120727,
"lm_q2_score": 0.8333245891029456,
"openwebmath_perplexity": 679.2386498724177,
"openwebmath_score": 0.9995951056480408,
"tag... |
python, calculator, tkinter
The fix is rather simple as you just need to use 0 and "plus" as your default first operand and mode (and reset to it after a press on =), and have your do_operator_mode call do_equal_mode first. This will allows you to get rid of all the checks of the form mode == 'xxx_input'.
In order to ... | {
"domain": "codereview.stackexchange",
"id": 45012,
"lm_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, calculator, tkinter",
"url": null
} |
python, algorithm, python-3.x
Title: Find two distinct subsets of a list that add up to the same value This code should partition a list into two subsets of the given list that add up to the same number: for example [15, 5, 20, 10, 35, 25, 10] -> [15, 5, 10, 15, 10], [20, 35] would be a valid solution. I'm looking for... | {
"domain": "codereview.stackexchange",
"id": 30337,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, algorithm, python-3.x",
"url": null
} |
c++, object-oriented, numerical-methods, factory-method
class Trapezoidal: public NewtonCotesFormulas {
public:
Trapezoidal(double, double, double);
~Trapezoidal(){};
double computeIntegral(int, double (*func)(double)) override;
};
class Simpsons: public NewtonCotesFormulas {
public:
Simpsons(double, ... | {
"domain": "codereview.stackexchange",
"id": 42460,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, object-oriented, numerical-methods, factory-method",
"url": null
} |
at one standard deviation from the mean, based on the data points provided in step one, there is a 68% probability that a frat house will have that many beer pong cups. As a result, the numbers have a high standard deviation. Also, the sample standard deviation S= 27.51 (% population). Standard Deviation for a sample o... | {
"domain": "tokocase.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.975576914916509,
"lm_q1q2_score": 0.8043260247044693,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 390.95259407910424,
"openwebmath_score": 0.8247133493423462,
"tags": n... |
homework-and-exercises, statistical-mechanics, entropy, approximations
Title: Stirling's approximation for the entropy I am trying to derive eq. (2.15) on page 34 of Birger Bergersen's and Michael Plischke's textbook on Equilibrium Statistical Mechanics second edition.
We have equation $S(E,V,N)=k_B \log \Omega(E,V,N)... | {
"domain": "physics.stackexchange",
"id": 43653,
"lm_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, statistical-mechanics, entropy, approximations",
"url": ... |
measurements, dimensional-analysis, physical-constants, si-units, metrology
Of course, this is not the last words on this topic. Consider planar angle and solid angle (radians and sterradians respectively). Are they units? After much debate in comments below the official answer is no. However, it is extremely common t... | {
"domain": "physics.stackexchange",
"id": 32166,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "measurements, dimensional-analysis, physical-constants, si-units, metrology",
"u... |
optics, electromagnetic-radiation, reflection
If you could observe the inside of the sphere, what would you observe? A glow? And would temperature affect the outcome?
Seems silly, it's just something I've always thought about but never spent enough time (until now) to actually find an answer. OK, the inside of the sph... | {
"domain": "physics.stackexchange",
"id": 29107,
"lm_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, reflection",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.