First time here? Check out the FAQ!

Ask Your Question
2

a problem with variables in real domains

asked 7 years ago

daniele gravatar image

updated 2 years ago

tmonteil gravatar image

Hi,

I have a problem with setting the domains of definition of variables.

For example, typing

var("y") ; assume(y, "real")
conjugate(y + I)

I get the result y + I. The same with var("y", domain="real").

Where I'm wrong?

thanks!

Preview: (hide)

Comments

I am afraid you are not wrong. If we set z = y + I then conjugate(z.subs(y=5)) gives the result -I + 5 in contradiction to conjugate(z).subs(y=5) which results to I + 5

ndomes gravatar imagendomes ( 7 years ago )
1

reported on trac #23135

mforets gravatar imagemforets ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
3

answered 7 years ago

mforets gravatar image

FYI: this has been fixed in the development branch (to appear in the next v8.1),

$ ./sage
sage: version()
'SageMath version 8.1.beta4, Release Date: 2017-09-05'
sage: x.is_real()
False
sage: conjugate(x+45*I)
conjugate(x) - 45*I
sage: assume(x, 'real')
sage: assumptions()
[x is real]
sage: conjugate(x+45*I)
x - 45*I
Preview: (hide)
link

Comments

Great, fixed_bug tag added.

tmonteil gravatar imagetmonteil ( 7 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 658 times

Last updated: Sep 06 '17