symbolic-math Questions
1
I have some matrices of decent size (2000*2000) and I wish to have symbolic expressions in the elements of the matrices - i.e. .9**b + .8**b + .7**b ... is an example of an element. The matrices ar...
Pippas asked 27/8, 2016 at 16:38
3
Solved
I have a problem with symbolic functions. I am creating function of my own whose first argument is a string. Then I am converting that string to symbolic function:
f = syms(func)
Lets say my str...
Rebec asked 17/11, 2013 at 15:25
1
Solved
I'm trying to do some symbolic matrix calculations with sympy. My goal is to obtain a symbolic representation of the result of some matrix computations. I've run into some problems which I have boi...
Geis asked 23/8, 2015 at 21:3
1
Solved
If I start with the following symbolic expression:
a^2 + 2*a*b + b^2
Then run simplify (or factor), I get the expected result:
>> simplify(a^2 + 2*a*b + b^2)
(a + b)^2
Now when I run t...
Malignancy asked 10/2, 2016 at 1:12
1
Solved
When you call vpa (from Octave's symbolic package) for the first time, Octave produces some text on screen before outputting the actual result. For example:
>> x = pretty(vpa('sqrt(-1)'))
Oc...
Sounding asked 18/1, 2016 at 12:6
1
Solved
I have a rather large symbolic function that is evaluated for different values of a parameter in a loop. In each iteration, after finding the expression of the function, partial derivatives are der...
Fulguration asked 10/12, 2015 at 6:53
10
I have some expressions such as x^2+y^2 that I'd like to use for some math calculations. One of the things I'd like to do is to take partial derivatives of the expressions.
So if f(x,y) = x^2 + y^...
Conceit asked 7/1, 2009 at 23:18
1
I am having a lot of trouble trying to make symbolic substitution go faster - that is, substituting in for variables in a symbolic expression and getting out a double.
I am creating a complicated ...
Iggie asked 16/10, 2015 at 16:6
2
Solved
For the purposes of what I want to do I need to take a user input as a string and convert it into an unevaluated function. For example, if the user input was "x^2*sin(x)" I would need a function th...
Moolah asked 1/9, 2015 at 13:37
1
Solved
Pretty MuPad: Output of assignment, expression and result in one line - How to create that function?
I'm trying to get Matlabs's MuPad as pretty and convenient as MathCad.
Assume two variable assignments:
x_a:=2*unit::mm;
y_b:=5*unit::mm;
and I want a prettyfied (typeset with Tex) output like
...
Ev asked 28/7, 2015 at 9:5
2
Solved
I wish to calculate limits (calculus) with Java. I have the following class Limit that can calculate limits:
package calculus;
public final class Limit {
private Limit() {
}
public static fi...
Derivation asked 10/7, 2015 at 1:12
2
We have theano and numpy in Python to do symbolic and numeric computations, optimising our Machine Learning computations (eg: Matrix multiplications and GPU usage). What are the relevant tools in C...
Rayner asked 15/6, 2015 at 17:13
1
How can we convert Latex representation into symbolic math.
For example,
A LaTex representation
y = \int x^2
Has an equivalent symbolic math representation as
syms x
y = int(x*x, x)
Is the...
Marola asked 2/2, 2015 at 16:32
2
I have been trying out a couple computer algebra libraries for C++ to use with a vector calculus course I am taking. I am having trouble with nonlinear equations in GiNaC and in SymbolicC++ it actu...
Bibliomancy asked 19/8, 2014 at 3:31
3
I need to manipulate expressions like 1 + sqrt(3) and do basic arithmetic like addition, subtraction, and division. I'd like the result to be in some sort of canonical form so that it can be ...
Opiate asked 21/7, 2010 at 0:3
4
Solved
I have a simple algebraic relationship that uses three variables. I can guarantee that I know two of the three and need to solve for the third, but I don't necessarily know which two of the variabl...
Gewgaw asked 24/12, 2014 at 19:19
0
I was testing with the symbolic toolbox of Matlab. And wonder why it is so slow even when just calculating with symbolic numbers. To test it I wrote this
syms x
x = subs(x,1);
a = 1;
tic
for i=1...
Infralapsarian asked 21/11, 2014 at 10:0
3
Solved
I have a number of symbolic expressions in sympy, and I may come to realize that one of the coefficients is zero. I would think, perhaps because I am used to mathematica, that the following makes s...
Astern asked 5/3, 2012 at 0:45
4
While trying to model polynomials, in particular their multiplication, I run into the following problem. During the multiplication, the individual monomials of the two polynomials are multiplied an...
Guidebook asked 10/9, 2014 at 19:48
4
Solved
SymPy is a great tool for doing units conversions in Python:
>>> from sympy.physics import units
>>> 12. * units.inch / units.m
0.304800000000000
You can easily roll your own:
...
Oppression asked 22/6, 2009 at 0:41
2
Solved
Using Sympy, say we have an expression f, which is a polynomial of the Symbol "x" (and of potentially other symbols).
I would like to know what if there is an efficient way to drop all terms in f...
Roberto asked 28/7, 2014 at 18:32
2
Solved
I setup Anaconda 2.0.0 (Win 64).
It has SymPy 0.7.5.
I configured Spyder (2.3.0rc that came with Anaconda) to use symbolic math:
Tools > Preferences > iPython console > Advanced Settings > Symbol...
Mulish asked 2/6, 2014 at 18:0
1
In sympy, given a matrix equation
M * x + N * y = 0
(or more complicated..)
how to solve this for x? (M,N = matrices, x,y = vectors)
I tried this with normal symbols, but obviously this failed. ...
Considered asked 2/4, 2014 at 18:29
5
Solved
I'm trying to use [SymPy][1] to substitute multiple terms in an expression at the same time. I tried the [subs function][2] with a dictionary as parameter, but found out that it substitutes sequent...
Estevan asked 20/6, 2010 at 18:33
2
I've been trying to compute the jordan normal form of a 36-by-36 matrix composed of only three distinct entries, 1, 1/2, and 0. The matrix is a probability transition matrix so, given these entries...
Ewald asked 14/2, 2014 at 0:42
© 2022 - 2024 — McMap. All rights reserved.