Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
3 votes
3 answers
241 views

Here is an example data.table which is similar to my real table: library(data.table) dttest <- data.table(Name = c("Stream 1", "Stream 2", "Stream 3", "Stream 4&...
iembry's user avatar
  • 974
2 votes
2 answers
152 views

I'm writing a paper and I want to declare how I obtained some Gini coefficients using the Gini() function from the ineq package, but when looking for what formula Gini() from ineq uses, I do not find ...
0 votes
1 answer
41 views

Getting two widely different execution times in the below import numpy as np import time array = np.arange(0, 750000) param = 20000 t1 = time.time() for _ in range(param): array <= 120 print(...
unfolx's user avatar
  • 103
0 votes
1 answer
106 views

I'm trying to formalize a stable-coin protocol using the Coq Interactive Theorem Prover. The proofs I have involve a lot of manipulation of linear and non-linear equations involving rational numbers. ...
0 votes
0 answers
41 views

I'm trying to evaluate this function after subbing in all the respective values. For some reason, this function ends up stopping here and can't be evaluated further into a numerical value. I've tried ...
0 votes
0 answers
27 views

I have an inequality in integer nonnegative x,y x+a*y<=c where a,c - real positive. The number of solutions equals sum (int(c-i*a)+1 for i in range(int(c/a)+1) Is there a compact (O(1)) formula ...
ysa's user avatar
  • 361
1 vote
1 answer
66 views

I'm trying to use Sympy to solve 0 < x + y <= 4 in the case where both x and y are positive integers or 0, in the hopes to have it return a list of tuples that solves the inequality. import ...
0 votes
1 answer
80 views

I have the past 19 days of stock price stored in the pd.dataframe and I am trying to find out the price P that is smaller than (mean - 2.5*standard deviation), where mean and standard deviation are ...
2 votes
1 answer
58 views

sympy's solve seems to generally work for inequalities. For example: from sympy import symbols, solve; x = symbols('x'); print(solve('x^2 > 4', x)); # ((-oo < x) & (x < -2)) | ((2 < ...
0 votes
0 answers
29 views

I am new to Rust & I am having trouble to compare mutable strings and immutable strings. Please find below a code block which should exit if "exit" is entered. But I am having problem ...
0 votes
1 answer
80 views

Relatively simple math problem, find the range over which 3 <= Abs[6 - x] <= 5. Not hard to solve by hand, and Mathematica nails it, with the answer 1 <= x <= 3 || 9 <= x <= 11. The ...
1 vote
0 answers
73 views

I am working on testing whether a function lies in a given range. Somehow, the function Simplify does not provide the correct (obvious) answer. Why is that ? The main function corresponds to the ...
0 votes
1 answer
72 views

The statement below: y must exceed x by at most 200 can be written as y - x <= 200 Does the statement imply y must exceed x? y > x ? For my understanding: y must exceed x by at most 200 this ...
Olzen Khaw's user avatar
0 votes
1 answer
288 views

I'm trying to solve a simple linear inequality in Sympy but can't seem to get it to work. Basically, I want to be able to calculate the optimal values of a when the inequality happens to be false. ...
0 votes
0 answers
139 views

I want to convert all kinds of mathematical equations to any given variable within that quation using Python. I want this to work with equations with multiple variables and with all kinds of ...

15 30 50 per page
1
2 3 4 5
...
19

AltStyle によって変換されたページ (->オリジナル) /