symbolic-math Questions
2
Solved
I have the strange problem, that the intersection of planes in SymPy works with simple examples, but fails for one with more complicated coordinates. I post both a simple example that works, and th...
Liverpudlian asked 19/12, 2017 at 2:30
2
Assume you want to know the first W significant digits of a number, say pi, using vpa. Simply calling vpa with that many digits does not work. Consider the following example with W = 35:
>> ...
Skill asked 4/4, 2018 at 11:11
1
Solved
I would like SymPy to evaluate an expression like the following:
How would I define the symbols and the expression so that SymPy could handle it nicely? I would like to keep N as just a symbol, ...
Behemoth asked 22/1, 2018 at 14:53
1
Solved
Here's what I did:
from sympy import *
x = symbols("x")
y = Function("y")
dsolve(diff(y(x),x) - y(x)**x)
The answer I get (SymPy 1.0) is:
Eq(y(x), (C1 - x*(x - 1))**(1/(-x + 1)))
But that's w...
Thain asked 8/1, 2018 at 10:48
1
Solved
I'm not a SymPy expert, but I've used it successfully in some of my lectures in the last years. However, sometimes it seems to be very slow with symbolic integration. Here's an example that Mathema...
Orling asked 10/12, 2017 at 14:0
0
I am evaluating Math.NET Symbolics for use in our application where we want a simple math parser for the user to calculate custom equations from our measurement data. Our data is in the form of Com...
Ghiselin asked 7/11, 2017 at 9:51
2
Solved
I know about the ability of python to do matrix multiplications.
Unfortunately I don't know how to do this abstractly? So not with
definite numbers but with variables.
Example:
M = ( 1 0 ) * ( 1...
Starvation asked 20/10, 2017 at 12:33
1
Solved
I'm trying to compute eigenvalues of a symbolic complex matrix Mof size 3x3. In some cases, eigenvals() works perfectly. For example, the following code:
import sympy as sp
kx = sp.symbols('kx')
...
Solly asked 22/9, 2017 at 9:31
2
Solved
Do symbolic math calculations (especially for solving nonlinear polynomial systems) cause huge performance (calculation speed) disadvantage compared to numeric calculations? Are there any benchmark...
Plasma asked 14/7, 2017 at 12:8
2
I am trying to solve a problem of finding the roots of a function using the Newton-Raphson (NR) method in the C language. The functions in which I would like to find the roots are mostly polynomial...
Polymorphous asked 7/6, 2017 at 19:53
2
Solved
I'm trying to learn the ins and outs of symbolic manipulation in python (I'm a beginner).
I have the following basic code, and the output is giving me an error telling me that it "can't convert ex...
Putdown asked 30/5, 2017 at 13:38
2
Solved
How does one calculate the (symbolic) gradient of a multivariate function in sympy?
Obviously I could calculate separately the derivative for each variable, but is there a vectorized operation tha...
Eventuality asked 16/1, 2014 at 16:2
2
Solved
From my SymPy output I have the matrix shown below, which I must integrate in 2D. Currently I am doing it element-wise as shown below. This method works but it gets too slow (for both sympy.mpmath....
Carlettacarley asked 30/4, 2013 at 8:10
1
Solved
I'm trying to write down some notes of my work. The way Maxima would simplify my work is that once I write bunch of equations and I want to change the definition of a variable, I do it and re-evalu...
Wavellite asked 10/2, 2017 at 16:36
2
Solved
I am trying to generate a piecewise symbolic function in Matlab. The reason it has to be symbolic is I want to be able to integrate/differentiate the function afterwards and/or insert actual values...
Margheritamargi asked 10/9, 2010 at 18:2
2
Building on an example I've found here, I am trying to create a function from a diagonal matrix that was created using sumpy.diag
myM = Matrix([
[x1, 4, 4],
[4, x2, 4],
[4, 4, x3]])
Where this...
Disgusting asked 22/1, 2017 at 13:24
6
I have come across the following F# sample and found it intriguing.
http://www.codeproject.com/KB/net-languages/SymbolicCalcInFS.aspx
Does Clojure have language/library facilities for doing somet...
Ankylostomiasis asked 3/10, 2010 at 23:45
3
Short version:
I am interested in some Clojure code which will allow me to specify the transformations of x (e.g. permutations, rotations) under which the value of a function f(x) is invariant, so ...
Samanthasamanthia asked 18/10, 2010 at 21:28
2
Solved
I have done some calculations in sympy, and the result is in the end a set of constants. One of them is inserted directly into the snippet below:
from sympy import *
expr = (18**(Rational(1, 3))/(...
Initiatory asked 20/8, 2015 at 7:30
1
Solved
I am having some trouble computing the inverse laplace transform of a symbolic expression using sympy. In matlab and in the book I am working from the expression s/(s^2 + w^2) transforms to cos(wt)...
Argumentation asked 8/12, 2016 at 15:12
3
Solved
I've found polynomial coefficients from my data:
R <- c(0.256,0.512,0.768,1.024,1.28,1.437,1.594,1.72,1.846,1.972,2.098,2.4029)
Ic <- c(1.78,1.71,1.57,1.44,1.25,1.02,0.87,0.68,0.54,0.38,0.26...
Plumcot asked 5/11, 2016 at 12:22
1
Solved
I'd like to set the size of a wxplot2d plot on a maxima worksheet to be smaller or larger than the default. How does one do this?
Tamarra asked 18/9, 2016 at 12:50
4
Solved
How can I make a function from a symbolic expression? For example, I have the following:
syms beta
n1,n2,m,aa= Constants
u = sqrt(n2-beta^2);
w = sqrt(beta^2-n1);
a = tan(u)/w+tanh(w)/u;
b = tanh(...
Freese asked 3/1, 2010 at 16:39
1
Problem: I am trying to solve an inequality to obtain a variable coeff_rw, which is the value of the symbol rw satisfying the inequality. This value should be in terms of other symbols (variables) ...
Mommy asked 11/10, 2016 at 15:30
1
Solved
I want to display a matrix with putting an extracted common factor on outside of the matrix after matrix calculation in sympy.
I wrote below code.
from sympy import *
a = symbols("a")
b = symbols...
Rosariarosario asked 25/9, 2016 at 20:8
© 2022 - 2024 — McMap. All rights reserved.