2009/11/30 Aaron S. Meurer <asmeu...@gmail.com> > OK, here are some things that work differently in the two platforms: > > On 32-bit: > > In [6]: print S("(C1 + C2*x)*sin(x*sqrt(2)) + (C3 + C4*x)*cos(x*sqrt(2))") > (C1 + C2*x)*sin(x*2**(1/2)) + (C3 + C4*x)*cos(x*2**(1/2)) > > In [5]: print dsolve(f(x).diff(x, x, x, x) + 4*f(x).diff(x, x) + 4*f(x), > f(x)) > f(x) == (C1 + C2*x)*sin(x*2**(1/2)) + (C3 + C4*x)*cos(x*2**(1/2)) > > On 64-bit: > > In [6]: print S("(C1 + C2*x)*sin(x*sqrt(2)) + (C3 + C4*x)*cos(x*sqrt(2))") > (C3 + C4*x)*cos(x*2**(1/2)) + (C1 + C2*x)*sin(x*2**(1/2)) > > In [7]: print dsolve(f(x).diff(x, x, x, x) + 4*f(x).diff(x, x) + 4*f(x), > f(x)) > f(x) == (C3 + C4*x)*cos(x*2**(1/2)) + (C1 + C2*x)*sin(x*2**(1/2)) > > Notice how the sin and cos are printed differently in each case. This is > because Basic._compare_pretty works differently on the two architectures > (see commit a226e2efe227d0120932224f5f973d317086da89) and is probably also > related to the .args difference I noted earlier. >
If this example could be simplified, I'd add it to the documentation. 2009/11/30 Ondrej Certik <ond...@certik.cz> > I like the patch. If all tests pass, let's put it in. There is actually no logic changed or added that could make a test fail. Vinzent. -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patc...@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.