Hi Luke,

On Mon, Mar 24, 2014 at 3:50 PM, lkcl . <[email protected]> wrote:
>
>
> On Monday, March 24, 2014 3:24:39 PM UTC, Ondřej Čertík wrote:
>
> hi ondrej, thanks for replying, nice to see you're around in a different
> context, i remember your name vividly but not why :)

>From the http://pyjs.org/ project. Nice to see you too!

>
>>
>> Can you define what you are trying to expand with respect to what? Your
>> "alpha", is it "alpha_oo" in the picture you sent?
>
>
> yes.
>
>>
>> Are you trying to expand "mu_e" with respect to alpha?
>
>
> alpha/2pi, yes.
>
>>
>> That will give you a series like:
>>
>> a0 + a1*alpha + a2*alpha^2
>>
>
> yep.
>
>>
>> and then you can trivially divide each a0, a1, a2 by a power of (2*pi) to
>> get the series that you want. Yes, sympy should be able to do that.
>>
>
> that hadn't occurred to me to do it that way.  what i wanted to do was to
> try to preserve the expressions for each of a0, a1, a2, algebraically, but
> it's turning out to be uh... either rather cpu-intensive or just plain odd.

Can you post your code? Let's have a look.

>
> instead i started evaluating the fractions into floating-point coefficients,
> but that then entirely defeated the object of the exercise, as absolutely
> any floating-point coefficients could be picked for a0, a1, a2... a15 etc.
>
> what this _has_ taught me is that i'm simply taking the wrong approach.
> which is useful information in itself.

Let's figure out the symbolic approach first. The formula you posted should be
easy for sympy, but maybe it will be clear after you post your code.

Ondrej

>
>
>>
>> Ondrej
>>
>> P.S. The project name is sympy, as in "symbolic python", not simpy.
>
>
> whoops, that'd explain why my google searches went awry once or twice :)
>
> l.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/d99deac5-3840-41ac-9933-1c567972c5d8%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CADDwiVC%2BNSr3vu0zGZOQi_MER%2BTqT8s%2Bcf0MDzhiORRt1NXSTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to