plot3d - Lisp error



--Alt-Boundary-16553.2811652
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Am 21 Dec 2005 um 18:25 hat der_wachtmeister@freenet.de geschrieben:

> Why does the following error occur? How can I make it work?
> 
> (%i1) prf1 ( w, s, n ) :=sum ( ( c [ i ] * exp ( -0.5 * w ^ ( 2 * n ) / s ) ), i, -n, n );
> (%i2) plot3d ( prf1 ( w, 2, n ), [ w, -1, 1 ], [ n, 1, 2 ] );
> Maxima encountered a Lisp error:
> 
>   Error in PROGN [or a callee]: Expected a LONG-FLOAT 
> 

Hallo Philipp,
it seems, that you forgot to tell Maxima, what your c[i] are.
Hope that helps.
Volker van Nek

--Alt-Boundary-16553.2811652
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body






Am 21 Dec 2005 um 18:25 hat der_wachtmeister@freenet.de geschrieben:

> Why does the following error occur? How can I make it work?
>
> (%i1) prf1 ( w, s, n ) :=sum ( ( c [ i ] * exp ( -0.5 * w ^ ( 2 * n ) / s ) ), i, -n, n );
> (%i2) plot3d ( prf1 ( w, 2, n ), [ w, -1, 1 ], [ n, 1, 2 ] );
> Maxima encountered a Lisp error:
>
>   Error in PROGN [or a callee]: Expected a LONG-FLOAT
>

Hallo Philipp,
it seems, that you forgot to tell Maxima, what your c[i] are.
Hope that helps.
Volker van Nek
--Alt-Boundary-16553.2811652--