Re: if-expression and variables
Ralf Hemmecke <[email protected]> Fri, 10 Jun 2011 20:54:38 +0200
| Newsgroups | gmane.comp.mathematics.axiom.general |
|---|---|
| Message-ID | <[email protected]> |
On 06/10/2011 07:56 PM, Stefan Karrmann wrote: > Dear all, > > we can help ourselves in some cases by: > > sign x == (abs x)/x > H x == (1 + sign x)/2 > step (a,b,x) == (H(x-a)) * (H(b-x)) > > The drawback is that we get a 'Division by zero'. Show a short program that demonstrates this error message. Only then is somebody able to help. Ralf PS: "sign" is already built-in. Try out )display op sign .