List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Function argument name
| [MUG] Function argument name |
|
Author: Guy-Armand Kamendje
Posted: 28/11/2000 15:58:10 GMT
|
>> From: Guy-Armand Kamendje
I have somewhere the expression
Myexp=x[1]^2+x[1]*x[2]+x[3].... x[n]in the variable x[1], x[2] ..x[n]
I will like to use this expresion in oder to let maple define a function
of the form
f1:=(x[1],x[2],...x[x])->y
when passing the subscript x[i] to the function's definition, an error
message is displayed requiring a name as funtions argument. How can I
get Maple interpret the subscripts in the correct way and also evalue
the expression Myexp in the correct way within the function?
It looks like
> v_vect[1]:=
2
1 + x[1] + x[1] x[3] + x[2] x[1] + x[4] + x[4] x[5] + x[1] x[4]
2
+ x[2] x[4] + x[1] + x[2] + x[2] + x[3] x[5]
f1:=(x[1],x[2],x[3],x[4],x[5])->v_vect;
Error, name expected in argument list
What I'am doing wrong?
Thanks for any hint
--
G.A. Kamendje || Tel +43 316 873 55 51
T-U Graz || www.sbox.tu-graz.ac.at/home/g/gaillard/
I.A.I.K ||www.iaik.at/people/gkamendje/gkamendje.html
|
[View Complete Thread]
Previous by date: [MUG] Re: Stopping integration due to what?, Allan Wittkopf
Next by date: [MUG] Simplification problem, Carl Eberhart
Previous thread: [MUG] Integration bug, i think, Halvor Mehlum
Next thread: [MUG] Simplification problem, Carl Eberhart
|