A computer algebra system written in pure Python http://sympy.org/ . To get started to with contributing https://github.com/sympy/sympy/wiki/Introduction-to-contributing
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Removed simplify call for sign(… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Added tests for all asymptotic… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Refactored limits for dealing w… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Fixed errors arising for limits… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
added bottom_up simplification … (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
added testing for changes adde… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
removed condition from leading … (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
minor changes (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Fixed failing test (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Fixed code quality failure (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
included exp forms for bessel f… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Minor change (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Refactored mrv_leadterm in grun… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Added e.is_negative case for be… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
hanled e.is_negative case for b… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Replacing exp rewrite with trig… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Minor changes (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
added support when exponent of … (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Fixed leading term method for b… (compare)
anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions
Added tests for 7224 (compare)
sympy.Stats
module. Doing something like X, Y = Die('X', 6), Die('Y', 6); density(X+Y)
is neat, but if I wanted to get the distribution of the highest of the 2 rolls, how would I do that? density(max(X,Y))
doesn't work - I can see why, but I don't know where to look in the docs for something equivalent that would work. What's the best way for me to learn how to model calculations like this?
x = symbols('x')
f = (6*x+13)/(15) - 2*x/5 -(3*x+5)/(5*x-25)
solveset(f,x) # OUTPUTS 20
@aplund:matrix.org you could work with multivariate polynomials (instead of expressions) so that you can specify the polynomial variables e.g.
>>> from sympy import *
>>> a, b, t, x = symbols("a b t x")
>>> expr = a*t + a*x - b*t + b*x
>>> factor(expr)
a*t + a*x - b*t + b*x
>>> Poly(expr, a, b)
Poly((t + x)*a + (-t + x)*b, a, b, domain='ZZ[x,t]')
>>> Poly(expr, t, x)
Poly((a - b)*t + (a + b)*x, t, x, domain='ZZ[a,b]')
Alternately, you could stick with expressions and use collect
e.g.
>>> collect(expr, [a, b])
a*(t + x) + b*(-t + x)
>>> collect(expr, [t, x])
t*(a - b) + x*(a + b)
Does anyone use sympy with numpy and dill? The following code does not work when numpy gets upgraded to 1.20.1 but works fine with numpy=1.19. Running SymPy 1.7.1 and dill 0.3.3.
import dill
import sympy
from sympy.abc import x
dill.settings['recurse'] = True
expr = sympy.sympify('re(x)')
lfunc = sympy.lambdify(x, expr, 'numpy')
with open("out.pkl", 'wb') as f:
dill.dump(lfunc, f)
RecursionError: maximum recursion depth exceeded while calling a Python object
The issue occurs when re
or im
appears in an expression. Changing re
to functions such as log
works. Any clue about a fix?