numbered_symbols in xcas
Modérateur : xcasadmin
numbered_symbols in xcas
Hi, need help immediatly. Anyone knows how to create a list o f numbered symbols in order to be used as unidentified coefficients on a polynomial.
-
- Messages : 1137
- Inscription : dim. mai 20, 2007 7:09 am
- Localisation : Paris
- Contact :
Re: numbered_symbols in xcas
Hello,
you have different ways.
1) just use a free name with the array syntax:
you can do the same for a matrix:
or
2) convert a string to a symbol via the # function:
you have different ways.
1) just use a free name with the array syntax:
Code : Tout sélectionner
P:=sum(a[j]*x^j,j=0..10);
Code : Tout sélectionner
B:=matrix(5,5,(u,v)->a[u,v]);
det_minor(B);
2) convert a string to a symbol via the # function:
Code : Tout sélectionner
Q:=sum(#("a"+j)*x^j,j=0..5)