You should do this.
((2+2*I)*exp(I*x) + (2-2*I)*exp(-I*x)).rewrite(sin).expand(sin,trig=True
)
-4*sin(x) +4*cos(x)
On Saturday, 11 July 2015 08:50:00 UTC+5:30, PG wrote:
I do not believe that is the case:
expand((2+3*I)*exp(2*I) + (2-3*I)*exp(-2*I), sin, trig=True)
2*exp(-2*I) +
I do not believe that is the case:
expand((2+3*I)*exp(2*I) + (2-3*I)*exp(-2*I), sin, trig=True)
2*exp(-2*I) + 3*I*exp(2*I) - 3*I*exp(-2*I) + 2*exp(2*I)
On Fri, Jul 10, 2015 at 6:51 PM, Aaron Meurer asmeu...@gmail.com wrote:
If you use expand(trig=True) on the expression it will expand the
That's almost it! Thank you.
Could I have the answer as a trig polynomial, meaning sin(2a) instead of
sin(a)cos(a), etc.
Thanks again.
On Fri, Jul 10, 2015 at 11:36 PM, Sartaj Singh singhsarta...@gmail.com
wrote:
You should do this.
((2+2*I)*exp(I*x) +
Trigsimp should do it.
trigsimp(sin(x)*cos(x))
sin(2*x)/2
On 11 July 2015 at 09:11, Pavel Grinfeld pgeip...@gmail.com wrote:
That's almost it! Thank you.
Could I have the answer as a trig polynomial, meaning sin(2a) instead of
sin(a)cos(a), etc.
Thanks again.
On Fri, Jul 10, 2015 at
Fantastic!
Also, I'd really like us to help Alan get the new geometric algebra code
merged into SymPy. I remember someone suggesting that he leave it as a
separate package, but I think it would be better to have it built into the
SymPy testing infrastructure.
Jason
moorepants.info
+01
I will start a hangout for the sprints tomorrow. Most of us will only be
there one day (I think).
Jason
moorepants.info
+01 530-601-9791
On Fri, Jul 10, 2015 at 2:49 PM, AMiT Kumar dtu.a...@gmail.com wrote:
Hi,
It's a suggestion, If we can have a Google Hangout (or Hangouts on Air)
during
We really need to fix this bug. It came up multiple times over SciPy.
Jason
moorepants.info
+01 530-601-9791
On Fri, Jul 10, 2015 at 5:46 PM, Aaron Meurer asmeu...@gmail.com wrote:
This might be because without use_latex='mathjax', it tries to
generate the latex using matplotlib's TeX
4 x 4 is needed ~~
mathematica runs extremely fast for 4 x 4 matrix as it should be, but ...
在 2014年2月12日星期三 UTC+8上午5:40:19,Vinzent Steinberg写道:
On Monday, February 10, 2014 11:27:09 PM UTC-5, monde wilson wrote:
why eigenvectors very slow
what is the difference between numpy and sympy when
Hey, thanks a lot, but that doesn't seem right since the solution should
have a real and imaginary part!
Thanks again,
Pavel
On Fri, Jul 10, 2015 at 2:36 PM, Gaurav Dhingra axyd0...@gmail.com wrote:
Hi PG
Though you should what output you expect(that helps the answerer).
Assuming you
Hi PG
Though you should what output you expect(that helps the answerer). Assuming you
expect solution in terms of `sin` or `cos` or some trigonometry. You can fo
this:
```
expr = (2+2*I)*exp(I*a) - (2-2*I)*exp(-I*a)
simplify(expr.rewrite(sin))
4*sqrt(2)*I*sin(a+pi/4)
```
Cheers
Gaurav
--
Hi,
It's a suggestion, If we can have a Google Hangout (or Hangouts on Air)
during the 2 Day SciPy SymPy Sprint,So that we people, who are not
present there can also join the conversation (possibly).
We also had the Hangout during the SymPy BoFs (Thanks to Jason!),
and the turnout was pretty
Yes, you are right, I think I mistyped the original question. So let me try
to save it from here: is there a way to get the answer as a linear
combination of sin and cos?
On Fri, Jul 10, 2015 at 3:50 PM, Gaurav Dhingra axyd0...@gmail.com wrote:
Since the real part is zero in this case. Hence
Thank you both of you for your solutions.
On Thu, Jul 9, 2015 at 11:26 AM, AMiT Kumar dtu.a...@gmail.com wrote:
On Thursday, July 9, 2015 at 8:53:45 PM UTC+5:30, Renato Coutinho wrote:
Wouldn't it be better to use
a = Abs(sin(w))/cos(w) + Abs(w)
a.replace(Abs, Id)
rather than deal with
Hi,
On Fri, Jul 10, 2015 at 7:30 AM, 刘金国 cacate0...@gmail.com wrote:
4 x 4 is needed ~~
mathematica runs extremely fast for 4 x 4 matrix as it should be, but ...
Can you post the Mathematica result? So that we know what you are
trying to get and we can then help you get it with SymPy.
Ondrej
Using init_printing(use_latex= 'mathjax') solves the problem, but the
person who found the problem said it was due to a bug in sympy. I
suggested that he send his observations to this group.
On Tue, Jul 7, 2015 at 2:33 PM, Aaron Meurer asmeu...@gmail.com wrote:
A better way to do this would be
Sypmy will be used in courses at AGACSE 2015 in Barcelona during July and
August (http://www-ma2.upc.edu/agacse2015/) with galgebra
(https://github.com/brombo/galgebra) during a course and laboratory session
given by Alan Macdonald
(http://www-ma2.upc.edu/agacse2015/summer-school.html). See
This might be because without use_latex='mathjax', it tries to
generate the latex using matplotlib's TeX renderer, which doesn't
support all of latex.
Aaron Meurer
On Fri, Jul 10, 2015 at 5:11 PM, Alan Bromborsky abrombo...@gmail.com wrote:
Using init_printing(use_latex= 'mathjax') solves the
If you use expand(trig=True) on the expression it will expand the
trigonometric functions.
Aaron Meurer
On Fri, Jul 10, 2015 at 4:02 PM, Pavel Grinfeld pgeip...@gmail.com wrote:
Yes, you are right, I think I mistyped the original question. So let me try
to save it from here: is there a way to
18 matches
Mail list logo