Subject: [Newbie] problem with conditional expression
From: Yaroslav Popovitch
Date: Fri, 9 Mar 2007 19:42:13 +0200
t1 is not defined
(%i3) t1: 3;
(%o3) 3
(%i4) f(0);
(%o4) A
On 3/9/07, Hugo Coolens <coolens at kahosl.be> wrote:
> I'm trying to define a function as follows:
> f(t):= if (0<=t and t<t1) then -(A/t1)*t+A else 0;
>
> when trying out "f(0);" I get the error message below, probably
> because the syntax I use is wrong, can someone tell me how to do it
> properly?
>
>
> MACSYMA was unable to evaluate the predicate:
> 0 < t1
> #0: f(t=0)
> -- an error. Quitting. To debug this try DEBUGMODE(TRUE);
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
--
Cheers, YP