odd behaviour of `if`
- From: kilian heckrodt <kilianheckrodt@xxxxxxxxx>
- Date: Wed, 25 Apr 2007 02:40:50 +0200
Hi !
I'm getting bugged by somewhat odd (and for me unexpected) behaviour of maple:
subs(i=5,`if`(i mod 5 = 0,1,i)) = 5, but `if`(5 mod 5 = 0,1,5) = 1
and in sum and product statement the `if` behaves like with the
substitution.
What's the reason for this behaviour and is there a workaround?
In other words how can if use the `if` in formulas/products/sums ?
.
- Follow-Ups:
- Re: odd behaviour of `if`
- From: G. A. Edgar
- Re: odd behaviour of `if`
- Prev by Date: Re: Selling Matlab and Mathematica addons
- Next by Date: Re: odd behaviour of `if`
- Previous by thread: Help with formal definition
- Next by thread: Re: odd behaviour of `if`
- Index(es):
Relevant Pages
|