Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-04 Thread Jason Moore
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 > "

Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-04 Thread scurrier
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

Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-01 Thread Jason Moore
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()

Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-01 Thread Jason Moore
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'

Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-01 Thread Aaron Meurer
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

Re: [sympy] Simple way of numerically evaluating Vectors

2018-10-01 Thread scurrier
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

Re: [sympy] Simple way of numerically evaluating Vectors

2018-09-28 Thread Aaron Meurer
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

[sympy] Simple way of numerically evaluating Vectors

2018-09-28 Thread scurrier
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