simplifying symbolic expressions with factors of pi
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
If I have some symbolic expression say
FF = besselj(1/2,x)
FF = (2^(1/2)*sin(x))/(pi^(1/2)*x^(1/2))
I wish to cancel this factor of pi^(1/2) however if I do
GG = FF*pi^(1/2)
then I will get an expression that still has the factor of 1/pi^(1/2) but also a numeric approximation to pi^(1/2) multiplied by it.
How does matlab hold this "symbolic" pi value, since clearly normal pi is just a dp variable and how do I cancel it in expressions?
0 comentarios
Respuestas (1)
Azzi Abdelmalek
el 18 de Jul. de 2014
Editada: Azzi Abdelmalek
el 18 de Jul. de 2014
vpa(FF)
or
vpa(FF,4)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!