text stringlengths 49 10.4k | source dict |
|---|---|
Measurement error, experiment error, and chance are common sources of outliers. 5 ways to deal with outliers in data. Outlier detection statistics based on two models, the case-deletion model and the mean-shift model, are developed in the context of a multivariate linear regression model. A Commonly used rule that says... | {
"domain": "davidclaytonthomas.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9609517095103498,
"lm_q1q2_score": 0.80694379369565,
"lm_q2_score": 0.8397339696776499,
"openwebmath_perplexity": 1118.5849202911816,
"openwebmath_score": 0.5815191864967346... |
game, tic-tac-toe
Title: python simple 2 player tic tac toe There are 2 issues with my code:
a) If I put numbers in the following order (as my input) '1', '2', '3', '4',
'5', '6', '7' -- this where the game should end, because X (or O) would have
won now (because 3, 5, 7 are a diagonal win). But my program realizes th... | {
"domain": "codereview.stackexchange",
"id": 40348,
"lm_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, tic-tac-toe",
"url": null
} |
computational-physics, spin-chains, tensor-network
$\text{Tr}(A_1^\downarrow A_2^\downarrow)=1$
If you like, you can also try to make the matrices $A_1^\sigma$ and $A_2^\sigma$ equal to each other, although this is not necessary to define an MPS. One set of matrices that work is
$$
A_1^\uparrow=A_2^\uparrow =
\frac{... | {
"domain": "physics.stackexchange",
"id": 69427,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computational-physics, spin-chains, tensor-network",
"url": null
} |
javascript, jquery, form
{
$('input[name="joining_date"]').val('joining_date');
}
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<form method="POST"> | {
"domain": "codereview.stackexchange",
"id": 32998,
"lm_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, form",
"url": null
} |
algorithms, trees
unmerge(T, U) = merge(unmerge(T1, U), T2)
so you can proceed recursively. Similarly, if U was used to create T2, then
unmerge(T, U) = merge(T1, unmerge(T2, U))
The running time of this will be proportional to the maximum "depth" of the merge operations, times the time to merge two trees.
A more effi... | {
"domain": "cs.stackexchange",
"id": 13780,
"lm_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, trees",
"url": null
} |
programming
Are there certain benefits to choosing particular ones?
If you plan on using a particular quantum computer then one would hope that the programming language developed by the manufacturer is both best suited for that particular machine and well supported.
Choosing a language with a larger following means t... | {
"domain": "quantumcomputing.stackexchange",
"id": 1668,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "programming",
"url": null
} |
ros
Another way to explain the difference between both tools is to think of rossrv as the service equivalent of rosmsg, and of rosservice as the service equivalent of rostopic. Just like rosmsg is concerned with message types and rostopic with topics to / from which messages are published / subscribed, so does rossrv ... | {
"domain": "robotics.stackexchange",
"id": 2122,
"lm_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
} |
My 1st question is: What does it happen for $a = -1$, where the eigenvalues become (-2, 0) ? My closest guess is to use the Hartman-Grobman theorem and say that the equilibrium point is 'linearly stable'. Is there anything I am missing here ?
My 2nd questions is: Regarding the bifurcation point, by looking at the equi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9740426412951847,
"lm_q1q2_score": 0.8158775614867327,
"lm_q2_score": 0.8376199633332891,
"openwebmath_perplexity": 370.01982123148025,
"openwebmath_score": 0.8726454973220825,
"ta... |
hawking-radiation, virtual-particles
Title: If virtual particles do not exist, how do they come to life at the event horizon? Most of you (not me) know that virtual particles are only a nickname for some perturbation terms. So my question is how these perturbations become particles at the edge of an event horizon to c... | {
"domain": "physics.stackexchange",
"id": 37382,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "hawking-radiation, virtual-particles",
"url": null
} |
neural-network, deep-learning, loss-function
Title: What is the effect of KL divergence between two Gaussian distributions as a loss function in neural networks? In many deep neural networks, especially those based on VAE architecture, a KL divergence term is added to the loss function. The divergence is computed betw... | {
"domain": "datascience.stackexchange",
"id": 6613,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "neural-network, deep-learning, loss-function",
"url": null
} |
php, beginner, object-oriented, mysql, database
/**
* Build the format string for the query values
* @param array $format
* @return string
*/
private function build_format( $format ) {
$format = implode('', $format);
$format = str_replace('%', '', $f... | {
"domain": "codereview.stackexchange",
"id": 18042,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, beginner, object-oriented, mysql, database",
"url": null
} |
c#, performance, programming-challenge
Title: Data Transfer Task
The task:
You will be given several lines of messages containing data. You have
to check for the validity of the lines. A valid line should be in the
format: ""s:{sender};r:{receiver};m--"{message}"
sender – could contain any ASCII character except... | {
"domain": "codereview.stackexchange",
"id": 32929,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, performance, programming-challenge",
"url": null
} |
c++, mathematics, c++17, boost
template<typename RealType,size_t Order>
template<typename RealType2,size_t Order2>
promote<dimension<RealType,Order>,dimension<RealType2,Order2>>
dimension<RealType,Order>::operator*(const dimension<RealType2,Order2>& cr) const
{
const promote<RealType,RealType2> zero{0};
pr... | {
"domain": "codereview.stackexchange",
"id": 33182,
"lm_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++, mathematics, c++17, boost",
"url": null
} |
quantum-field-theory, energy-conservation, stress-energy-momentum-tensor, qft-in-curved-spacetime
To see this, expand using the product rule and apply energy-momentum
conservation and Killing's equation. Note that $\partial_\nu (K_\mu T^{\mu \nu})$ is not a scalar.
$H_K$ is not some field defined through spacetime so ... | {
"domain": "physics.stackexchange",
"id": 50475,
"lm_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, energy-conservation, stress-energy-momentum-tensor, qft-in-c... |
# Two screws are inspected and the first is found to be good. What is the probability that the second is also good
#### Ram123
##### New member
Question: All the screws in a machine come from the same factory but it is as likely to be from A as from factory B. The percentage of defective screws is 5% from A and 1% fr... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.971129089711396,
"lm_q1q2_score": 0.8092657496496667,
"lm_q2_score": 0.8333245891029456,
"openwebmath_perplexity": 2237.66867652279,
"openwebmath_score": 0.6730756163597107,
"tags... |
vba
.ValueKey = "Attributes"
.ValueType = REG_SZ
If Me.ReadOnlyConnection Then
.value = "R"
Else
.value = "W"
End If
.ValueKey = "BatchAutocommitMode"
.ValueType = REG_SZ
Select Case Me.BatchAutoCommitM... | {
"domain": "codereview.stackexchange",
"id": 7755,
"lm_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",
"url": null
} |
$$f:X\to[0,1]:z\mapsto f_\alpha(z_\alpha)\;;$$
if $$\pi_\alpha:X\to X_\alpha$$ is the projection map, $$f=f_\alpha\circ\pi_\alpha$$. Clearly $$f$$ is continuous, $$f(x)=0$$, and $$f(y)=1$$. Thus, $$X$$ is completely Hausdorff.
Conversely, if $$X$$ is completely Hausdorff and non-empty, then each $$X_\alpha$$ is compl... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290913825541,
"lm_q1q2_score": 0.8006589530643868,
"lm_q2_score": 0.8244619177503205,
"openwebmath_perplexity": 162.03875455050112,
"openwebmath_score": 0.8333463072776794,
"ta... |
photons
Title: frequencies of light Why are available frequency of light continuous ? I keep hearing that atoms absorb (and emit ) photons of particular frequency which correspond to their energy levels of their electron. Where do all other colours come from ? I think I see two questions in your post.
Each frequency o... | {
"domain": "physics.stackexchange",
"id": 14567,
"lm_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",
"url": null
} |
mechanical-engineering, car
Stablity/Aerodynamics -- This is less of an engineering perspective than a practical one, but for a "regular" car there will be a certain point that the suspension and other components are not sufficient to keep the car driving straight down the road in a safe fashion. Anecdotal evidence to... | {
"domain": "engineering.stackexchange",
"id": 2710,
"lm_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, car",
"url": null
} |
Wellness Dog Food Recall 2020, Leesa Vs Casper Hybrid, Insert Multiple Checkbox In Excel, Almaden Quicksilver Mine Hill Trail, Plumeria Alba Tree, Quotes About Lawyers, And Justice, Does Snowdon Deli Delivery, Best Axial Wraith Upgrades, Delta Rp25513 Vs Rp24096, | {
"domain": "gda.pl",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9702399034724604,
"lm_q1q2_score": 0.824675947737082,
"lm_q2_score": 0.8499711718571775,
"openwebmath_perplexity": 1445.9814083679266,
"openwebmath_score": 0.3753901422023773,
"tags": null,
... |
vba, excel
Create dedicated Subs. The wire type that's Deposit or Loan
If Wire_Type = "Deposit/Loan" Then
destWS.Range("A222:A243").EntireRow.Hidden = False
destWS.Range("A267:A299").EntireRow.Hidden = False
destWS.Range("A244:A266").EntireRow.Hidden = True
destWS.Range("B206") = srcWS.Cells(Row, 5) ... | {
"domain": "codereview.stackexchange",
"id": 37442,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, excel",
"url": null
} |
particle-physics, standard-model, gauge-theory, notation
Title: What do the overlines above some terms in the Standard Model represent? Why do some terms in the Standard Model, like the Theta parameter (among others) sometimes have a little dash or bar, like an overline, above them?
For example the axion article on Wi... | {
"domain": "physics.stackexchange",
"id": 81447,
"lm_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, standard-model, gauge-theory, notation",
"url": null
} |
homework-and-exercises, atoms, solar-system, estimation
Title: How many atoms are there in our solar system? Including all objects gravitationally bound to the Sun, how many atoms are there in our solar system? Giving that most of the solar system's mass is concentrated in the sun, you may say that the order of magni... | {
"domain": "physics.stackexchange",
"id": 23549,
"lm_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, atoms, solar-system, estimation",
"url": null
} |
results = Table().with_columns(
'Original Door Choice', original,
'Monty Throws Out', throw_out,
'Remaining Door', remains
)
results
Original Door Choice Monty Throws Out Remaining Door
Car Goat 1 Goat 2
Car Goat 1 Goat 2
Goat 2 Goat 1 Car
Goat 1 Goat 2 Car
Car Goat 1 Goat 2
Goat 1 Goat 2 Car
Goat 1 Goat 2 Car
Car Goa... | {
"domain": "inferentialthinking.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.989013057045568,
"lm_q1q2_score": 0.8131557919107361,
"lm_q2_score": 0.8221891370573388,
"openwebmath_perplexity": 2632.7153218787985,
"openwebmath_score": 0.558652400970459,
... |
datetime, vb.net
Title: Classifying duration as <1, 1-2, 2-3, or >3 years How can I refactor this method to look cleaner and free from 2 If statements?
If NullableDate.HasValue Then
Dim DayCount As Integer = (DateTime.Now.Date - NullableDate.Value).TotalDays
Dim positive As Boolean = DayCount >= 0
dim Time... | {
"domain": "codereview.stackexchange",
"id": 17963,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "datetime, vb.net",
"url": null
} |
Exercise 2.E
Like Exercise 2.B, this exercise is also to show a certain space is not $\sigma$-compact. In this case, the suggested space is $\mathbb{R}^{\omega}$, the product of countably many copies of the real line. The hints given use a Baire category argument, as outlined in Fact E.1 through Fact E.4. The product s... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765557865637,
"lm_q1q2_score": 0.8057260766037354,
"lm_q2_score": 0.822189134878876,
"openwebmath_perplexity": 320.3856639252461,
"openwebmath_score": 0.9999508857727051,
"tags": n... |
This book gives an inquiry based learning approach to some topics in graph theory, group theory, and calculus.
Number Theory Through Inquiry by Marshall, Odell, and Starbird. From the description:
Number Theory Through Inquiry; is an innovative textbook that leads students on a carefully guided discovery of introduct... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9579122684798184,
"lm_q1q2_score": 0.8063951192245579,
"lm_q2_score": 0.8418256512199033,
"openwebmath_perplexity": 1053.7626988127795,
"openwebmath_score": 0.4385669529438019,
"ta... |
plant-physiology, botany
Title: Do plants produce any heat? Many plants (e.g. roses, palms) can be protected from frost during the winter if shielded with an appropriate coat that can be bought in garden shops. Do plants produce any heat that can be kept inside with these "clothes"? Cellular respiration in plants is s... | {
"domain": "biology.stackexchange",
"id": 34,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "plant-physiology, botany",
"url": null
} |
c++, c++11, reinventing-the-wheel
template<std::size_t Index, class ArrType, std::size_t Size> constexpr
const ArrType& get(const array<ArrType, Size>& arr) noexcept
{
return arr.get<Index>();
} Bugs:
Your iterators default-constructor is bad: You need to set the member-pointer to nullptr!
Your iterators are mis... | {
"domain": "codereview.stackexchange",
"id": 17183,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11, reinventing-the-wheel",
"url": null
} |
# Basic algebra inversion
I need to solve the following equation for $x$:
$$k= \frac{1}{1+(\frac{x}{y})^h}$$
Does anybody know the step-by-step process for rearranging this?
I think I need to invert the function, but I'm not sure about how to handle the ^$h$.
Thank you for any help.
-
Try multiplying by $y^h/y^h$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936080549318,
"lm_q1q2_score": 0.8284352444147938,
"lm_q2_score": 0.8418256532040708,
"openwebmath_perplexity": 873.9967338166534,
"openwebmath_score": 1.0000100135803223,
"tag... |
## 3 Answers
You want to prove that given any two integers $a$ and $b$, you have that $aRb$ or $bRa$. That is you would want that for given $a,b$ one of the following hold \begin{align} a - b &\leq 10 \\ b - a &\leq 10. \end{align} This is obviously true. Why? The "formal" proof is you want: Given $a$ and $b$ you have... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138183570425,
"lm_q1q2_score": 0.8168638052434403,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 260.6703390306942,
"openwebmath_score": 0.9716911911964417,
"tag... |
convolutional-neural-networks, weights
p_gaussian_9 (PGaussian) (None, 49, 49, 6) 1 conv2d_65[0][0]
__________________________________________________________________________________________________
conv2d_66 (Conv2D) (None, 47, 47, 1) 55 p_gaussian_9[0][0... | {
"domain": "ai.stackexchange",
"id": 1671,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "convolutional-neural-networks, weights",
"url": null
} |
python, unit-testing, django
return {
'text': "Here's the list of all monitoring resources",
'attachments': attachments
}
Here is private functions:
def _build_filters(resource_type, availability):
resource_types = [
{"text": "All types", "value": "all"},
{"text": ":link: Webpa... | {
"domain": "codereview.stackexchange",
"id": 35884,
"lm_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, unit-testing, django",
"url": null
} |
python, beginner
can be written as
print("Welcome to Camel!")
print("""You have stolen a camel to make your way across the great Mobi desert.
The natives want their camel back and are chasing you down! Survive your desert trek and out run the natives.\n""")
Similarly,
print("""
A. Drink from your canteen.
B. Ahead at... | {
"domain": "codereview.stackexchange",
"id": 16038,
"lm_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",
"url": null
} |
keras
Title: How to checkpoint by minibatch in Keras I know that I can use ModelCheckpoint in Keras for checkpointing a model every epoch (or every few epochs, depending on what I want).
I am getting my data for each minibatch from a fit_generator, and it takes a very long time to evaluate each minibatch. I'd like to... | {
"domain": "datascience.stackexchange",
"id": 4899,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "keras",
"url": null
} |
audio, python, resampling
Title: Python, resampling tools dont work as expected I've tried both using scikit.samplerate.resample and scipy.signal.resample. With neither of them can I achieve the result I want.
Scipy.samplerate:
file1 = '../machine_learning/voice_snippets_stepvoices/t10_9steps.wav'
file2 = '../random_... | {
"domain": "dsp.stackexchange",
"id": 6049,
"lm_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, python, resampling",
"url": null
} |
Alexandra Budden - 3539 video solution
video by Alexandra Budden
$$\displaystyle{ \frac{\pi}{6}\left[ 37^{3/2} -1 \right] }$$
Log in to rate this practice problem and to see it's current rating.
Unless otherwise instructed, evaluate the integral $$\displaystyle{ \int_{0}^{1/\sqrt{2}}{ \int_{y}^{\sqrt{1-y^2}}{ 3y~dx... | {
"domain": "17calculus.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.978051749483894,
"lm_q1q2_score": 0.8018981158846857,
"lm_q2_score": 0.819893340314393,
"openwebmath_perplexity": 570.63965363826,
"openwebmath_score": 0.770862340927124,
"tags": null... |
Update 2 Express Energy Balance in Coefficient Form
The most direct way to introduce $$\kappa$$ is to express the energy (not temperature) balance in coefficient form as described here and shown below.
$$m\frac{{{\partial ^2}}}{{\partial {t^2}}}u + d\frac{\partial }{{\partial t}}u + \nabla \cdot\left( { - c\nabla u -... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561721629776,
"lm_q1q2_score": 0.8115332792568936,
"lm_q2_score": 0.8376199714402813,
"openwebmath_perplexity": 2076.4599701411735,
"openwebmath_score": 0.40569809079170227,
"t... |
particle-physics, angular-momentum, conservation-laws, quantum-spin, standard-model
Title: Is spin conserved in a reaction between elementary particles? I was making an exercise where I had to check if a decay is possible, so I checked if the baryon number, charge, energy, Lepton numbers, and spin are conserved. One o... | {
"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... |
condensed-matter, topological-insulators
Title: Why can't the $\mathbb{Z}_2$ invariant be defined with a determinant instead of a pfaffian? I'm reading through Topological Insulators and Topological Superconductors by Bernevig and Hughes. I'm on Chapter 10, where he describes the original formulation of the $\mathbb{Z... | {
"domain": "physics.stackexchange",
"id": 57323,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "condensed-matter, topological-insulators",
"url": null
} |
beginner, html, email, perl
##############################
# Function and Subroutines
##############################
sub buildHTMLContent {
# Function will build the html content to be used in the email.
# First create a table with all of the common service information.
# A second optional table will be ... | {
"domain": "codereview.stackexchange",
"id": 23191,
"lm_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, html, email, perl",
"url": null
} |
vector triple product calculator. Cross-products of vectors in Euclidean 2-Space appear in restrictions to 2-space of formulas derived originally for vectors in Euclidean 3-Space. For example, when using the calculator, …. This representation provides more flexibility than the coordinate representation, but it is equiv... | {
"domain": "uhserver.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9902915220858951,
"lm_q1q2_score": 0.8073178182887689,
"lm_q2_score": 0.8152324848629214,
"openwebmath_perplexity": 507.06298666561355,
"openwebmath_score": 0.7923198938369751,
"tags": n... |
particle-physics, experimental-physics, higgs
Title: Could LEP II have discovered a 125GeV Higgs? LEP II eliminated the Higgs up to 114.5GeV. If it had been run for longer could it have detected a Higgs at 125GeV?
I Googled for this without any luck, though I did find a comment that LEP II topped out at 209GeV collisi... | {
"domain": "physics.stackexchange",
"id": 46192,
"lm_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, experimental-physics, higgs",
"url": null
} |
$$(a+bi)\cdot_{\bf C} (c+di) = (ac-_{\bf R}bd) + (ad+_{\bf R}bc)i\tag{3}$$
Note that there are three different kinds of operations here
• The known operations for ${\bf R}$: $+_{\bf R}$, $-_{\bf R}$, $\cdot_{\bf R}$ (we write $a\cdot_{\bf R}b$ as $ab$ above);
• The operations we are defined for ${\bf C}$: $+_{\bf C}$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.970239909496136,
"lm_q1q2_score": 0.8227321648718715,
"lm_q2_score": 0.8479677622198946,
"openwebmath_perplexity": 214.85089410852518,
"openwebmath_score": 0.8767485618591309,
"tag... |
java, tree, interview-questions, graph
encapsulation + immutability
Immutability is nice. It often makes things easier to reason about and prevents silly mistakes. Some purists would even go all the way and make everything immutable, I usually stick with: "start immutable, and make it mutable if it's logical to change... | {
"domain": "codereview.stackexchange",
"id": 25472,
"lm_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, tree, interview-questions, graph",
"url": null
} |
beginner, objective-c, coordinate-system
If you don’t need object behaviors, then feel free to use double, especially where doing something computationally intensive.
when do I use int vs NSInteger ...
Generally prefer NSInteger over int, unless there’s some reason that you need to specify the int type explicitly. S... | {
"domain": "codereview.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": "beginner, objective-c, coordinate-system",
"url": null
} |
Explicitly, we have: \begin{aligned} p' &= a + \begin{vmatrix} 1 & b & b\bar b\\ 1 & c & c\bar c\\ 1 & d & d\bar d\end{vmatrix} \Big/ \begin{vmatrix} 1 & b & \bar b\\ 1 & c & \bar c\\ 1 & d & \bar d\end{vmatrix} =a+\frac{bc(dd'-1)}{bcd'-b-c+d}\ , \\[3mm] q' &= b + \begin{vmatrix} 1 & a & a\bar a\\ 1 & c & c\bar c\\ 1 &... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9783846628255123,
"lm_q1q2_score": 0.8195145313505756,
"lm_q2_score": 0.8376199694135332,
"openwebmath_perplexity": 2114.72858821655,
"openwebmath_score": 0.9968291521072388,
"tags"... |
image-processing, fourier-transform, dft, convolution, filtering
Title: Convolution in Spatial Domain Is Multiplication in Frequency Domain I have to prove convolution in spatial domain is equivalent to multiplication in frequency domain using two matrices.
$$
x(m, n) =
\begin{bmatrix}
1 && 2 \\
3 && 4
\end{bmatrix}
... | {
"domain": "dsp.stackexchange",
"id": 7299,
"lm_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, fourier-transform, dft, convolution, filtering",
"url": null
} |
operators, conformal-field-theory, correlation-functions
Title: OPE Coefficients from two and three point functions When we have a correlation function of operators in a CFT we can express for example the 3-point function as
$$
\langle\mathcal{O_1(x)}\mathcal{O_2(0)}\mathcal{O_3(z)}\rangle=\sum C_{12O} C_{O}(x,\partia... | {
"domain": "physics.stackexchange",
"id": 82995,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "operators, conformal-field-theory, correlation-functions",
"url": null
} |
gravity, earth, geophysics, error-analysis
Title: No uncertainty for standard gravitational acceleration? The other day I asked about the uncertainty of light, and this issue triggered me to start looking into other physical constants and try to understand why other constants have no uncertainty.
One of those constant... | {
"domain": "physics.stackexchange",
"id": 11237,
"lm_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, earth, geophysics, error-analysis",
"url": null
} |
quantum-field-theory, field-theory, fourier-transform
Having said all that, you could get the mode expansion from the inverse Fourier transform
\begin{equation}
\phi(x, t) = \int \frac{d \omega}{2\pi}\frac{d k}{2\pi} \tilde{\phi}(\omega, k) e^{-i (\omega t + k x)}
\end{equation}
with the momentum space representation
... | {
"domain": "physics.stackexchange",
"id": 87657,
"lm_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, field-theory, fourier-transform",
"url": null
} |
mitochondria, chloroplasts
Title: Origin of the double membrane of mitochondria and chloroplasts Most websites and textbooks say that the double membrane of mitochondria and chloroplasts are a result of the endocytosis of ancient prokaryotes (the outer membrane is from the vesicle containing the prokaryote, the inner ... | {
"domain": "biology.stackexchange",
"id": 5906,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mitochondria, chloroplasts",
"url": null
} |
special-relativity, coordinate-systems, differentiation, notation
Title: Index notation and total differential I understand that the gradient $\partial_i$ is covariant.
Let f be a function of 3 variables
So I can write the total differential as
$$
df=\partial_1fdx^1+\partial_2fdx^2+\partial_3fdx^3 = \partial_kfdx^k,
$... | {
"domain": "physics.stackexchange",
"id": 68332,
"lm_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, coordinate-systems, differentiation, notation",
"url": null
... |
c#
Title: This code looks really repetitive. Any way to shorten it? I have something like this in my program:
private void tspBrush_Click(object sender, EventArgs e)
{
currentTool = new Brush(tileLayers);
UncheckToolstripButtons();
tspBrush.Checked = true;
}
private void tspB... | {
"domain": "codereview.stackexchange",
"id": 560,
"lm_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
} |
So your initial evaluation of the area is correct. $\int_{-2}^2(4-x^2)dx$ is indeed $32/3$. However it looks like you made a mistake setting up your second integral. If you look at the integral $\int_{-2}^2(4-b)dx$, you'll see that the area that it is evaluating is the rectangle of height $4-b$ and length $4$ ($-2$ to ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561712637257,
"lm_q1q2_score": 0.8073716828496037,
"lm_q2_score": 0.8333246015211009,
"openwebmath_perplexity": 142.26030443696888,
"openwebmath_score": 0.9477446675300598,
"ta... |
python, beginner, python-3.x, battle-simulation, pokemon
Title: Discount Pokemon Battles I have decided to create a discount Pokemon battle simulator using a module called guizero. It's basically a wrapper for Tkinter that is easier to learn. Recently, I started to learn OOP and thought that this project would be a go... | {
"domain": "codereview.stackexchange",
"id": 24808,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, beginner, python-3.x, battle-simulation, pokemon",
"url": null
} |
# Limit of complex quotient with conjugate
This is from the practice GRE online.
Compute $$\lim_{z \to 0} \frac{(\bar{z})^2}{z^2}$$
I let $z = re^{i\theta}$ and computed
$$\frac{(\bar{z})^2}{z^2} = \frac{(re^{-i\theta})^2}{(re^{i\theta})^2} = \frac{1}{e^{4i\theta}}$$ Letting $\theta \to 0$ we see that the limit is ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363485313248,
"lm_q1q2_score": 0.828639575903275,
"lm_q2_score": 0.8418256393148982,
"openwebmath_perplexity": 116.69087395695544,
"openwebmath_score": 0.955652117729187,
"tags... |
# Solving for a Vector - Resultant Known
1. Jul 26, 2009
### math4life
1. The problem statement, all variables and given/known data
An airliner is flying in the direction North 20 degrees East with an airspeed of 300mph. Its ground speed and true course are 350mph and 30 degrees respectively(RESULTANT). Use a vecto... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211531789392,
"lm_q1q2_score": 0.8144470310910085,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 1950.832380849481,
"openwebmath_score": 0.545113742351532,
"tags... |
kinematics, coordinate-systems, vectors, displacement
Title: What direction should i exactly put for negative displacements? If I have A....p....B....d....C points
If I am initially on B and walk towards c, it's a positive displacement. Example: BC=10m east and then all of sudden I change my vector and walk to... | {
"domain": "physics.stackexchange",
"id": 88875,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "kinematics, coordinate-systems, vectors, displacement",
"url": null
} |
python, simulation
def test_simulate_draw():
"""Small tests for simulate_draw."""
# TODO: Use a proper testing framework
TESTS = [
([], []),
(['A'], []),
(['A', 'B', 'C', 'D'], [('A', 'C'), ('D', 'B'), ('A', 'B'), ('C', 'D'), ('A', 'D'), ('B', 'C')]),
(['A', 'B', 'C', 'D', '... | {
"domain": "codereview.stackexchange",
"id": 34264,
"lm_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, simulation",
"url": null
} |
ros-melodic
Title: Failed to read from robot EKI server
Hello, I am trying to connect ROS melodic with KUKA robot KR6 r900 sixx using kuka-experimental. However, after having done all things in README.md about configuring EKI on the controller, I am getting the error:
Failed to read from robot EKI server within allo... | {
"domain": "robotics.stackexchange",
"id": 33868,
"lm_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
} |
electrical-engineering, control-engineering, control-theory, homework
Title: Definition of Bandwidth as angular frequency I am searching for a Formal Definition of bandwidth given the transfer function of a system, or the bode plot.
Is it the frequency $\omega_b$ in which
$$20log|H(j\omega_b)| = -3\text{dB}$$
or
$$20l... | {
"domain": "engineering.stackexchange",
"id": 4541,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrical-engineering, control-engineering, control-theory, homework",
"url"... |
lagrangian-formalism, momentum, hamiltonian-formalism, field-theory, variational-principle
(i) The reason for the functional (rather than partial) derivatives in eq. (2) is because of the presence of spatial directions in field theory (as opposed to point mechanics), cf. e.g. this Phys.SE post.
(ii) The ellipsis $\ld... | {
"domain": "physics.stackexchange",
"id": 24498,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lagrangian-formalism, momentum, hamiltonian-formalism, field-theory, variational-p... |
ros
Title: Model From World File Not Visible In Gazebo When Using Roslaunch
Hi all,
I'm having what appears to be a problem among several users: using roslaunch to open a world file in Gazebo. Like others who have asked, I've carefully gone through several tutorials, including "Using roslaunch to start Gazebo, world ... | {
"domain": "robotics.stackexchange",
"id": 26592,
"lm_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
} |
beginner, c, io
untitled.c:49:5: error: conflicting types for ‘getline’
int getline(char s[], int lim)
^~~~~~~
In file included from untitled.c:5:0:
/usr/include/stdio.h:616:20: note: previous declaration of ‘getline’ was here
extern _IO_ssize_t getline (char **__restrict __lineptr,
^~~~~~~... | {
"domain": "codereview.stackexchange",
"id": 32327,
"lm_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, c, io",
"url": null
} |
python, python-3.x, parsing, csv, file-structure
class IdeamParser:
def __init__(self, *patterns):
self.patterns = [(re.compile(regex), act) for regex, act in patterns]
def parse(self, line_iter):
for line in line_iter:
for regex, action in self.patterns:
matches = ... | {
"domain": "codereview.stackexchange",
"id": 21934,
"lm_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, parsing, csv, file-structure",
"url": null
} |
ros, gazebo, moveit, controller-manager, abb
<include file="$(find abb_barrett_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
</include>
<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find abb_barrett_moveit_config)/launch/default_warehouse_d... | {
"domain": "robotics.stackexchange",
"id": 29310,
"lm_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, gazebo, moveit, controller-manager, abb",
"url": null
} |
$F = (3/4) 62.4 ((1/3)y^3 - (3/2)y^2)|^8_3 = 3705\; lbs.$
3. May 20, 2015
### Obliv
Thank you so much this is a wonderful explanation. I just don't understand the importance of modeling height as y-3 instead of 5-y. Isn't it the same thing essentially? Also isn't the slope of the right side of the triangle negative ... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9693241991754918,
"lm_q1q2_score": 0.8013517435979958,
"lm_q2_score": 0.8267117898012104,
"openwebmath_perplexity": 235.5062048714184,
"openwebmath_score": 0.7803278565406799,
"tag... |
c++, algorithm, image, error-handling, c++20
/* Matlab version:
function Dictionary = CreateDictionary(ND, xsize, ysize, zsize)
Dictionary.X = zeros(xsize, ysize, zsize, ND);
Dictionary.Y = zeros(xsize, ysize, zsize, ND);
for i = 1:ND
Dictionary.X(:, :, :, i) = ones(xsize, ysize, zsize) .* (i / ND... | {
"domain": "codereview.stackexchange",
"id": 42578,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, algorithm, image, error-handling, c++20",
"url": null
} |
ros, ur-driver
= ur_msgs::enterFreeDriveModeRequest_<std::allocator<void>>]’ >/opt/ros/kinetic/include/ros/advertise_service_options.h:60:25: required from ‘void ros::AdvertiseServiceOptions::init(const string&, const boost::function<bool(MReq&, MRes&)>&) [with MReq = ur_msgs::enterFreeDriveModeRequest_<std::allocator... | {
"domain": "robotics.stackexchange",
"id": 29274,
"lm_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, ur-driver",
"url": null
} |
an ordinary die thrown! Multiply the first geometric sequence illustration terms and the 10th term of a geometric series Word Problems practice. Is estimated that the ratio of two successive terms geometric progression definition function to reveal and explain information! Images: abstract pattern background art decora... | {
"domain": "gedenkmovement.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9263037302939516,
"lm_q1q2_score": 0.8173962330044072,
"lm_q2_score": 0.8824278757303677,
"openwebmath_perplexity": 524.4022942577081,
"openwebmath_score": 0.42570722103118896,
"t... |
# Put $N$ identical balls into $m$ different buckets, each bucket has at least one ball, how many ways?
Suppose $N>m$, denote the number of ways to be $W(N,m)$
### First method
Take $m$ balls out of $N$, put one ball at each bucket. Then every ball of the left the $N-m$ balls can be freely put into $m$ bucket. Thus ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9658995782141545,
"lm_q1q2_score": 0.8151179293026689,
"lm_q2_score": 0.8438951084436077,
"openwebmath_perplexity": 286.08010442339463,
"openwebmath_score": 0.9184685349464417,
"ta... |
# Show that every $n$ can be written uniquely in the form $n = ab$, with $a$ square-free and $b$ a perfect square
I need to show that every positive integer $n$ can be written uniquely in the form $n = ab$, where $a$ is square-free and $b$ is a square. Then I need to show that $b$ is then the largest square dividing $... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357604052423,
"lm_q1q2_score": 0.8137187699603987,
"lm_q2_score": 0.8311430520409023,
"openwebmath_perplexity": 125.6512048131312,
"openwebmath_score": 0.9271667003631592,
"tag... |
continuous-signals, transform, hilbert-transform
Title: Question about Hilbert transform Hilbert transform of a function $g(t)$ which is defined in time domain, would result in another function in time domain. Is there any other transformation like Hilbert that the results be in time domain? TLDR: if the time variable... | {
"domain": "dsp.stackexchange",
"id": 8811,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "continuous-signals, transform, hilbert-transform",
"url": null
} |
c#, parsing
static class StringBuilderExtensions
{
public static bool Any(this StringBuilder stringBuilder)
{
return stringBuilder.Length > 0;
}
}
Result
This is what I get:
Ranges = [{Min = 14 Max = 14 Step = 0 Extension = None}, {Min = 18 Max = 18 Step = 0 Extension = None}, {Min = 3 Max = 39 St... | {
"domain": "codereview.stackexchange",
"id": 23629,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, parsing",
"url": null
} |
10 So the area [ estimated] is about (1/2)(1)(7/10) = 7/20 = 0. Based on these figures and calculations, it appears we are on the right track; the rectangles appear to approximate the area under the curve better as n gets larger. 0018 That is my task, here is what I want to do. However, if you need a "throwaway" functi... | {
"domain": "centropartenopeo.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759632491111,
"lm_q1q2_score": 0.8195057111990796,
"lm_q2_score": 0.8354835289107307,
"openwebmath_perplexity": 316.55087815325567,
"openwebmath_score": 0.8472341895103455,... |
logic, proof-assistants, automated-theorem-proving
Title: What were the shortcomings of Robinson's resolution procedure? Paulson et alii. From LCF to Isabelle/HOL say:
Resolution for first-order logic, complete in principle but frequently disappointing in practice.
I think complete means they can proof any true form... | {
"domain": "cs.stackexchange",
"id": 16754,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "logic, proof-assistants, automated-theorem-proving",
"url": null
} |
classification
Title: F1 score vs accuracy, which metric is more important? I have two multiclass classification models for making predictions (number of classes is three to be precise). One is Keras neural network, other is Gradient Boosted Classifier from Scikit Learn library.
I have noticed that after training on ... | {
"domain": "datascience.stackexchange",
"id": 6616,
"lm_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",
"url": null
} |
robotic-arm, matlab, simulation
Title: Inverse Jacobian to find joint angles I am trying to implement a joint space control with the UR5 in MATLAB/Simulink and have programmed the forward kinematics of the same.
Now, I want to find out the joint angles of the manipulator using the Inverse Jacobian scheme with the foll... | {
"domain": "robotics.stackexchange",
"id": 1940,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robotic-arm, matlab, simulation",
"url": null
} |
refraction, geometric-optics
$$
The sum of two vectors $\vec{v}$ and $\vec{u}$ is a vector:
$$
(v_x,v_y,v_z)+(u_x,u_y,u_z) = (v_x+u_x,v_y+u_y,v_z+u_z)
$$
The dot product of two vectors $\vec{v}$ and $\vec{u}$ is a scalar:
$$
(v_x,v_y,v_z)\cdot(u_x,u_y,u_z) = v_x u_x+v_y u_y+v_z u_z
$$
The magnitude (length) of a vecto... | {
"domain": "physics.stackexchange",
"id": 19078,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "refraction, geometric-optics",
"url": null
} |
solid-state-physics, integration
&\sim&[k^2]_0^\infty, \quad \text{in}\, 3D
\end{eqnarray}
which still show divergence. This is not correct as if we solve the Brillouin zone integral we get some finite value. I do not understand what is wrong with the infinite k space integral? Could anybody please tell me how to sol... | {
"domain": "physics.stackexchange",
"id": 9111,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solid-state-physics, integration",
"url": null
} |
water, corrosion
Title: Corrosiveness of Deionized vs Distilled water for use in Laboratory Water Bath I've read conflicting descriptions of the corrosiveness (or lack thereof) of very pure water. For a precision water bath, it's stated that one should fill the bath with distilled water rather than deionized of a cert... | {
"domain": "chemistry.stackexchange",
"id": 16728,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "water, corrosion",
"url": null
} |
c++, algorithm
Title: The longest alternating sequence in C++ The first line of the input stream contains integer n. The second line contains n (1 <= n <= 1000) integers { a[1], a[2], a[3], ... , a[n] }, abs(a[i]) < 10^9.
Find the longest alternating subsequence { a[i1], a[i2].. , a[ik] } of the sequence a that is th... | {
"domain": "codereview.stackexchange",
"id": 4639,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, algorithm",
"url": null
} |
java, beginner, array
System.out.println("Request input for item " + i);
in_num = user_input.nextInt();
a1[i] = in_num;
System.out.println("Got it, next one ");
This does exactly one thing: prompt the user for a number and store it in the array. We won't store it in the array in our sub-method, but we'll extract the ... | {
"domain": "codereview.stackexchange",
"id": 24469,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, array",
"url": null
} |
algorithms, time-complexity
Maintaining Dynamic Sequences under Equality Tests
in Polylogarithmic Time (PDF)
Distances and point-sets:
Maintaining the miminal distance of a point set in polylogarithmic time (PDF, $O\left(\log^2n\right)$, Smid)
New techniques for some dynamic closest-point and farthest-point problems ... | {
"domain": "cs.stackexchange",
"id": 1942,
"lm_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, time-complexity",
"url": null
} |
python, performance, beginner, python-3.x, pandas
# Final merge to the original dataset
df = df.merge(category,on='invoice', how='left').fillna(value='Others') Your code is pretty impressive. Many python programmers don't know how to use pandas as well as you. Your code might not look very "Pythonic", but you did a gr... | {
"domain": "codereview.stackexchange",
"id": 39398,
"lm_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, beginner, python-3.x, pandas",
"url": null
} |
Geometric Brownian Motion of the stock price which implies the... Author ( s ) References Examples of vanilla European call/put option always positive is vega vanilla. And paste this URL into Your RSS reader abandoned datacenters specified time frame $\tau_2$ a option! Buying or selling an option, finance professionals... | {
"domain": "szczecin.pl",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9736446425653804,
"lm_q1q2_score": 0.8196390256250009,
"lm_q2_score": 0.8418256412990657,
"openwebmath_perplexity": 1882.683847826571,
"openwebmath_score": 0.3040415346622467,
"tags": nu... |
quantum-field-theory, fourier-transform, interactions, klein-gordon-equation
Title: Interacting Fields in QFT I am trying to work through Peskin and Schröder and am a little stuck in Chapter 4 [section 4.2 p. 83 below eq. (4.13)], when he first treats interacting fields. The subject is the quartic interaction in Klein... | {
"domain": "physics.stackexchange",
"id": 37545,
"lm_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, fourier-transform, interactions, klein-gordon-equation",
"... |
homework-and-exercises, perturbation-theory, bose-einstein-condensate, non-linear-schroedinger
In one of the colonies, the leading physicists of the creatures are arguing about the fundamental nature of the physical laws of their world. While Alice says that the aether should exist, Bob argues that the aether hypothes... | {
"domain": "physics.stackexchange",
"id": 35047,
"lm_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, perturbation-theory, bose-einstein-condensate, non-linear-... |
nlp, encoding, attention-mechanism, transformer
Title: What is the positional encoding in the transformer model? I'm trying to read and understand the paper Attention is all you need and in it, there is a picture: | {
"domain": "datascience.stackexchange",
"id": 9164,
"lm_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, encoding, attention-mechanism, transformer",
"url": null
} |
mass, standard-model, quantum-chromodynamics, quarks
Title: Is a quark‘s constituent mass affected by the chiral limit? The up- and down quark’s constituent mass is usually taken to be around $300\,\text{MeV}\approx \tfrac{1}{3} m_\text{proton}$. Is this quantity affected by the chiral limit, where we let the quarks’ ... | {
"domain": "physics.stackexchange",
"id": 52204,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mass, standard-model, quantum-chromodynamics, quarks",
"url": null
} |
complexity-theory, probability-theory, randomized-algorithms
Title: Constructing hitting sets for randomized algorithms Suppose A($\cdot$,$\cdot$) is an efficient randomized algorithm and L is a language such that
$\text{If }x \in L, \text{Pr}_r[(A(x,r) = 1)] = 1$ and if $x \notin L, \text{Pr}_r[A(x, r) = 0] \ge \fra... | {
"domain": "cs.stackexchange",
"id": 13859,
"lm_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, probability-theory, randomized-algorithms",
"url": null
} |
Then the same holds for every $a_i$ and we have the desired result.
To work on this problem, it is helpful to have a method to generate a random ordered partition. This is very easy - flip $n$ coins, and divide them into streaks. So if the flips are HTTHHHTHTTTTH, the corresponding ordered partition is $1+2+3+1+4+1$, ... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9883127409715955,
"lm_q1q2_score": 0.8214292658351904,
"lm_q2_score": 0.8311430499496096,
"openwebmath_perplexity": 157.00137236810312,
"openwebmath_score": 0.9591684937477112,
"tag... |
time, relativity, measurements, atomic-clocks
4) And another note reminding us of the sailors. Let's ask again how the sailors knew their clock was running fast or slow (other than seeing their crewmates kick the pendulum a few times). They would notice that the sun would not rise when they expected it to according to... | {
"domain": "physics.stackexchange",
"id": 46774,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "time, relativity, measurements, atomic-clocks",
"url": null
} |
ggplot2
Title: Getting weird plot with ggpubr package I have a data frame for two groups and 9 variables
> head(aa)
treatment variable value
1 pre Sig1 0.1173863
2 pre Sig1 0.1888243
3 pre Sig1 0.2191765
4 pre Sig1 0.1277735
5 pre Sig1 0.1711712
6 pre ... | {
"domain": "bioinformatics.stackexchange",
"id": 1410,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ggplot2",
"url": null
} |
genetics, mutations
Title: Are there any mutagens that can undo the mutations they cause? I was reading a section from my textbook about tautomeric shifts, and it seems to suggest that there are some mutagens that can be directly responsible for the phenomenon. The section is mainly describing spontaneous mutations as... | {
"domain": "biology.stackexchange",
"id": 3682,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "genetics, mutations",
"url": null
} |
\begin{align} \sum_{i = 1}^n 1 &= n \\ \sum_{i = 1}^n i &= \frac{n(n + 1)}{2} \\ \sum_{i = 1}^n n &= n \cdot \sum_{i = 1}^n 1 \\ & = n^2 \\ \sum_{i = 1}^n i^2 &= \frac{n(n + 1)(2n + 1)}{6} \\ \end{align}
Now, from the given expression;
\begin{align} \sum_{i=1}^n (n+1-i) (n-i) &= \sum_{i = 1}^n\left( n^2 + i^2 + n - i... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982287698703999,
"lm_q1q2_score": 0.836862764634604,
"lm_q2_score": 0.851952809486198,
"openwebmath_perplexity": 316.5842946963274,
"openwebmath_score": 0.9999210834503174,
"tags":... |
sql, mysql, pdo
Title: Updating only certain fields on a database row I have data that I want to insert in a database. Sometime a piece of data is already in the database, so I just want to update the fields that changed.
For example, if I insert these rows one after the other:
id | field1 | field2 | field3
1 | foo... | {
"domain": "codereview.stackexchange",
"id": 1271,
"lm_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, mysql, pdo",
"url": null
} |
c++, c++11
template <typename A>
struct max_size_type<A>
{
using type = A;
};
template <typename A, typename B, typename... C>
struct index_of :
::std::integral_constant<int,
::std::is_same<A, B>{} ?
0 :
(-1 == index_of<A, C...>{}) ? -1 : 1 + index_of<A, C...>{}
>
{
};
template <typename A, typenam... | {
"domain": "codereview.stackexchange",
"id": 4198,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11",
"url": null
} |
go, authentication, authorization
}
t.Execute(w,values)
fmt.Fprintln(w,"<hr><span style='color:red;'>" + error + "</span>")
} else {
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(data["password"][0]),10)
if err != nil{
http.Error(w,"In... | {
"domain": "codereview.stackexchange",
"id": 39192,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "go, authentication, authorization",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.