symbolic-math Questions
1
Solved
I need to automatically simplify some symbolic expressions but the simplify function of matlab can't do everything i need.
Example:
simplify(expand((ax + bx)^2 + (ay + by)^2))
Which results in ...
Below asked 2/2, 2014 at 15:0
2
Solved
Working with a sympy Matrix or numpy array of sympy symbols, how does one take the element-wise logarithm?
For example, if I have:
m=sympy.Matrix(sympy.symbols('a b c d'))
Then np.abs(m) works ...
Sarthe asked 16/1, 2014 at 16:53
2
Solved
I need to solve a set of symbolic Boolean expressions like:
>>> solve(x | y = False)
(False, False)
>>> solve(x & y = True)
(True, True)
>>> solve (x & y &...
Hardhearted asked 31/10, 2013 at 5:44
2
Boolean operation of a Boolean variable on a symbol produces TypeError, but the reverse has no problem:
>>> from sympy import *
>>> x = Symbol('x', bool=True)
>>> x ^ Tr...
Shend asked 31/10, 2013 at 9:57
1
Solved
I am trying to create a function using the symbolic toolbox in matlab.
I have been having trouble creating a symbolic vector (not a vector of symbolic variables).
Do you guys know a way to do this ...
Fm asked 6/9, 2013 at 10:20
2
Solved
I have the following expression:
from sympy import pi, sin, cos, var, simplify
var('j,u,v,w,vt,wt,a2,t,phi')
u0 = v*a2*sin(pi*j/2 + pi*j*t*phi**(-1)/2) + pi*vt*a2*cos(pi*j/2 + pi*j*t*phi**(-1)/2)...
Landeros asked 2/8, 2013 at 7:27
2
Solved
Is there an easy way to make a function to inverse an algorithm for example like this:
>>> value = inverse("y = 2*x+3")
>>> print(value)
"x = (y-3)/2"
If you can't make actual ...
Tillie asked 5/6, 2013 at 20:12
4
Solved
I have a function f(t)=2/(2-t). It is not so hard to get the rth derivative at t=0 (i.e. 2^(-r)*r!) without using Mathematica. In the case of Mathematica calculation, I can get the r-th derivative ...
Corral asked 26/11, 2011 at 12:22
2
I have an equation like:
R₂⋅V₁ + R₃⋅V₁ - R₃⋅V₂
i₁ = ─────────────────────
R₁⋅R₂ + R₁⋅R₃ + R₂⋅R₃
defined and I'd like to split it into factors that include only single variable - in this case V...
Lora asked 10/3, 2012 at 18:33
1
Solved
The equations I am working with in this problem contain exponentials. For this reason, after differentiating they appear again pretty much unchanged apart from additional constants and other factor...
Disconnect asked 5/4, 2013 at 16:39
1
Solved
I'm using sympy to work through some mathematical models, and I found that for some reason sympy.solve( ) gives me the wrong answers.
import sympy as sm
p, WAA, WAa, Waa = sm.symbols( 'p, WAA, WAa...
Indulge asked 19/4, 2013 at 2:17
6
Solved
Does anybody know of any resources (books, classes, lecture notes, or anything) about the general theory of computer algebra systems (e.g. mathematica, sympy)?
"Introductory" materials are p...
Templar asked 8/12, 2008 at 7:25
4
There are quite a few algebra solvers and simplifiers on the web (for example, the decent one at algebra.com). However, I'm looking for something I can plug into C# as part of a larger projec...
Inpatient asked 17/7, 2011 at 3:27
1
Solved
In sympy I have an integral which returns a Piecewise object, e.g.
In [2]: from sympy.abc import x,y,z
In [3]: test = exp(-x**2/z**2)
In [4]: itest = integrate(test,(x,0,oo))
In [5]: itest
Out[...
Geochronology asked 14/3, 2013 at 21:47
2
Solved
The Symbolism library overloads arithmetic operators. Although it's written in C# I can use it from F#:
open Symbolism
let x = new Symbol("x")
let y = new Symbol("y")
let z = new Symbol("z")
pri...
Edythedythe asked 11/3, 2013 at 16:8
2
I am looking for symbolic mathematics library for .NET framework. I have looked at Math.net but it's not something usable yet. Do you know if there is another library exists?
Kyungkyushu asked 20/4, 2009 at 20:57
1
Solved
When i write this in matlab
syms x;
f=x^3-cos(x);
g=diff(f)
it gives out put as
g =
3*x^2+sin(x)
Now I want to generate summation series as
I google and found "symsum" command but it...
Marcmarcano asked 13/10, 2012 at 18:22
2
Solved
I convert list to matrix in Maxima in following way:
DataL : [ [1,2], [2,4], [3,6], [4,8] ];
DataM: apply('matrix,DataL);
How to do it the other way ? How to convert given matrix DataM into list...
Uruguay asked 31/12, 2011 at 15:23
1
Solved
I would like to calculate the following symbolic expression in GNU Octave:
int(exp(ikx-|k|^n),k,-infinity,infinity) , (- it would a function of 'x' of-course, where 'x' is an array of data.)
I...
Gingerich asked 26/8, 2012 at 14:8
1
Solved
In my research group, we have different people doing algebraic modelling in different symbolic tools such as Symbolic Toolbox in Matlab and Sympy in Python. These models are then typically exported...
Spiky asked 21/7, 2012 at 10:52
1
Solved
Say I have a anonymous function f = @(x) x^2 and I want to convert this to a symbolic function. Is there a built in command for that?
Stertorous asked 4/7, 2012 at 4:8
2
Solved
I try to declare a symbolic variable in MATLAB with this code:
syms a;
I do my computation on this variable and all thing is fine. But my problem is that, I don't know how can I give a number t...
Raney asked 13/5, 2012 at 13:47
2
Solved
After attempting to solve a symbolic math problem, I got an expression with about 17000 characters. I am using the symbolic toolbox for Matlab, but I am open to any suggestion (Mathematica, whateve...
Ledeen asked 29/1, 2012 at 23:51
4
Solved
I would like to get a List (ideally a set -- discarding repetition -- but assuming there's no direct way to do this I'll just use Union) of the leaves from a given expression.
For example, the exp...
Turves asked 18/8, 2011 at 20:35
3
We know 1+2+...+n is equal to n(n+1)/2.
But can we get the same result programatically if we don't know it in advance?
About why I have such a question.
Think of a more complex situation:
X1+X2...
Rileyrilievo asked 11/8, 2011 at 14:0
© 2022 - 2024 — McMap. All rights reserved.