Ask Your Question

Solve in real parameters

asked 2021-08-30 09:23:43 +0200

Cyrille gravatar image

I have a simple solve() line

var('x y')
solve(.25*x + 1.75*y, y)

Sagemath gives the good result but with rational parameters. Is there a pararameter which can keep the reals ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-30 11:57:17 +0200

Emmanuel Charpentier gravatar image

This :

sage: var('x y')
(x, y)
sage: solve(.25*x + 1.75*y, y)[0].rhs().polynomial(base_ring=RR)

may be what you want. But I fail to see the point...

edit flag offensive delete link more

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


Asked: 2021-08-30 09:23:43 +0200

Seen: 204 times

Last updated: Aug 30 '21