I tried it with
var('x, y')
assume(x,"integer")
assume(x>0)
assume(y, "integer")
assume(y>0)
solve(x+y==15,x,y)

The result was

(t_0, -t_0 + 15)

obviously right, but not 6,9 7,8 8,7 and 9,6



Am Freitag, 17. April 2020 19:17:12 UTC+2 schrieb Bert Henry:
>
> I have the equation
> x + y = 15
> an I'm looking for solution only in the range x=1..9 and y=1..9, x and y 
> both integer
> Is there a sage-command to do that?
>
> Thanks in advance
> Bert Henry
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c9304614-cc97-4930-b7ab-8c2019c636d1%40googlegroups.com.

Reply via email to