Thanks!
Jason
moorepants.info
+01 530-601-9791
On Thu, Oct 4, 2018 at 8:37 AM scurrier wrote:
> The workaround worked for me. Thank you.
>
> Btw, I love SymPy. You guys rock, this software is really awesome.
>
> --
> You received this message because you are subscribed to the Google Groups
> "
The workaround worked for me. Thank you.
Btw, I love SymPy. You guys rock, this software is really awesome.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sympy+unsub
Here is a workaround to get to the numbers:
In [1]: import sympy as sm
In [2]: from sympy.physics.vector import ReferenceFrame
In [3]: A = ReferenceFrame('A')
In [4]: v = 2*sm.cos(12) * A.x + 3 * sm.sin(-0.2) * A.y
In [5]: v
Out[5]: 2*cos(12)*A.x - 0.596007992385184*A.y
In [6]: v.evalf()
I don't think the physics vectors are proper SymPy objects because they
need to be mutable. evalf() was probably never implemented for them.
Jason
moorepants.info
+01 530-601-9791
On Mon, Oct 1, 2018 at 12:48 PM Aaron Meurer wrote:
> Can you try it with the latest version (1.3)? If that doesn'
Can you try it with the latest version (1.3)? If that doesn't work
please open an issue in our issue tracker.
https://github.com/sympy/sympy/issues/new
Aaron Meurer
On Mon, Oct 1, 2018 at 12:39 PM scurrier wrote:
>
> That didn't work for me in SymPy 1.1.1.
>
> AttributeError: 'Vector' object has
That didn't work for me in SymPy 1.1.1.
AttributeError: 'Vector' object has no attribute 'evalf'
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sympy+unsubscr...@goog
The evalf method of the expression (like expr.evalf()) will evaluate
all the parts of the expression that it can to floating point numbers.
Aaron Meurer
On Fri, Sep 28, 2018 at 10:15 AM, scurrier wrote:
> I have a Vector whose components are long expressions. I'd like to evaluate
> them so I ca
I have a Vector whose components are long expressions. I'd like to evaluate
them so I can see the numerical value of the components. Is there an easy way
to do so?
Seems like it should be simpler than the easiest way that I can come up with,
which involves taking dot products. I was hoping for