Ask Your Question

tim's profile - activity

2016-09-16 17:53:38 +0100 received badge  Famous Question (source)
2014-04-26 18:37:46 +0100 received badge  Notable Question (source)
2013-09-13 06:23:48 +0100 received badge  Popular Question (source)
2012-08-27 15:21:56 +0100 received badge  Scholar (source)
2012-08-27 15:21:56 +0100 marked best answer assume and simplify

I think the problem is that you are using assume in some steps when you just need assignment. The code below produces a result of 0.

var('v')
assume(v,'complex')
u=conjugate(v)
u-conjugate(v)
2012-08-27 15:21:45 +0100 commented answer assume and simplify

This doesn't perform any nontrivial simplification, for example x^4-y^6 doesn't return 0. But still my question was answered. Thanks everyone.

2012-08-27 06:19:20 +0100 commented answer assume and simplify

But in some case we can't replace an assumption with an assignment. For exemple if we know that x²=y³, but both x and y are unknown, one would expect x**2-y**3 to return 0 I guess sage doesn't perform this kind of things?

2012-08-27 06:18:52 +0100 answered a question assume and simplify

But in some case we can't replace an assumption with an assignment. For exemple if we know that x²=y³, but both x and y are unknown, one would expect

x**2-y**3

to return

0

I guess sage doesn't perform this kind of things?

2012-08-26 07:15:52 +0100 asked a question assume and simplify

Hello,

assume(u,'complex') ; assume(v,'complex'); assume(u==conjugate(v)) ; 
u-conjugate(v)

returns

u-conjugate(v)

whereas I was expecting

0

What should I do if I want to simplify some computation involving complex numbers along with their conjugates?

2011-10-16 11:47:57 +0100 asked a question Plotting cos(x+2)cos(x)-cos(x+1)²

Hello.

Why does sage fail to plot this function?

plot(cos(x+2)cos(x)-cos(x+1)cos(x+1),(x,-pi,pi))

Returns

IndexError: index out of bounds