I would like to construct a function with return the string "Vrai" or the string 'Faux' selon qu $x>y$ ou $x<=y$. I have tried
cond(x, y)= if bool(x<y)='True' then Print("Accepté") else Print("Rejeté")
but it leads to an error
| 1 | initial version |
I would like to construct a function with return the string "Vrai" or the string 'Faux' selon qu $x>y$ ou $x<=y$. I have tried
cond(x, y)= if bool(x<y)='True' then Print("Accepté") else Print("Rejeté")
but it leads to an error
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.