# Solve in real parameters

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 ?

Solve in real parameters

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 ?

add a comment

0

This :

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

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

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

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

Seen: **159 times**

Last updated: **Aug 30 '21**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.