So im using MATLAB to calculate the coefficient of an equation and it keeps displaying fractions as the constants instead of decimal form like xxe-x
My code is below
bt = 0.03175;
bpzt = 0.0078;
ht = ...

I'm looking for a way to accurately compute roots of negative numbers in Python. I believe that the inaccuracies I see are related to floating point, but it seems like there should be a way to get the ...

I have a 4 by 3 matrix ('mymatrix'). myfunc inputs 'mymatrix' and outputs 'result'. I am using myfunc in a loop (for 17280 times) in my script. So, each time, it redefines syms x y z t. Is there a way ...

My goal is to compute the n-fold self-convolution of a function rho(eta) where eta > 0, using MuPAD. (The background are energy densities of systems composed of many identical subsystems.) I tried to ...

I have been trying to do this operation where quantity or Subtotal=value1+(value2*value3) but I can't figure out how to do the addition and multiplication in that order. I was trying it out on JS Bin ...

This might be a very funny question for you all, but I am curious to know the answer :
i=10
i=i+1
i=i+1
i=i+1
i=?
what will be the final value of i in terms of pure mathematics and what will be the ...

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 variables ...

I am using virtual potential fields to control the movement of a group of robots in a 2D environment, their position is given by a matrix of x and y coordinates. The virtual potential fields depend on ...

A symbolic value occupies 112 bytes of memory with Matlab (Symbolic Math toolbox). One can see this via the whos command.
I know that a floating-point value (in the numerical framework of Matlab) is ...

Is there a way to mix Matrix symbols and scalar symbols in Sympy?
I want to make a scalar function that takes vectors and scalars for example:
import sympy as sy
v=sy.MatrixSymbol('v',3,1)
f=v.T*v+5
...

I have a piecewise function F_m(x) as below, where x_m and \alpha are constants, m is the subscript.
I need to solve the following equation that involves F_m(x), where N and C are constants, tau is ...

I have a formula with several components, let's say w = x * y / z^2 + c. Now I have an input-field for each variable. My goal is, to calculate the missing one as soon, as all the others were entered. ...

I'm trying to plot the transfer function in time domain - h,
when I run the following code I get an error:
syms s;
H=((1+2*s)*1.943)/(s*(s^2)*(1+0.15*s)+((1+2*s)*1.943));
h = ilaplace(H);
ezplot(h);
...