...
Voir le premier message non lu • 6 messages
• Page 1 sur 1
-
ciaone
Niveau 3: MH (Membre Habitué)- Messages: 3
- Inscription: 16 Mar 2018, 13:38
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Problem with zeros()
i don't find a solution mais made some try to understand and to help ...
string(var) give : "{x,y}"
and expr(string(var)) give : {x,y}
so maybe .... zeros(eq,expr(string(var)))
but ... (in french) we have an error : "Erreur : L’argument doit être un nom de variable."
Not working, it need a variable name ... !
So ... I don't know too.
Maybe there's a function to transform an string to a list of expression ...
Not funny (for you)
Good luck
string(var) give : "{x,y}"
and expr(string(var)) give : {x,y}
so maybe .... zeros(eq,expr(string(var)))
but ... (in french) we have an error : "Erreur : L’argument doit être un nom de variable."
Not working, it need a variable name ... !
So ... I don't know too.
Maybe there's a function to transform an string to a list of expression ...
Not funny (for you)
Good luck
-
Extra44Premium
Niveau 11: LV (Légende Vivante)- Messages: 591
- Images: 1
- Inscription: 20 Jan 2011, 00:00
- Genre:
- Calculatrice(s):→ MyCalcs profile
- Classe: S.I.
-
Hamza.SAdmin
Niveau 17: GM (Grand Maître des calculatrices)- Messages: 4464
- Images: 18
- Inscription: 07 Nov 2014, 00:43
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Problem with zeros()
Nice ! Good job !
I'm not far away !
I'm not far away !
-
Extra44Premium
Niveau 11: LV (Légende Vivante)- Messages: 591
- Images: 1
- Inscription: 20 Jan 2011, 00:00
- Genre:
- Calculatrice(s):→ MyCalcs profile
- Classe: S.I.
-
ciaone
Niveau 3: MH (Membre Habitué)- Messages: 3
- Inscription: 16 Mar 2018, 13:38
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Problem with zeros()
I may explain why the calc acts like that.
When typing
The only way to force evaluation of "var" to {x,y} and then solve is the one given by Hamza.S.
Some other functions act the same way, e.g. the derivative function. First, only the variable name is used and then, when the derivation has been made, the variable value is substituted.
This way, one can compute exact derivative values, even on non CAS Nspire !
Example :
will return
When typing
solve(eq,var)
, the calc doesn't evaluate "var". It only uses its name and tries to solve the equation for this variable name.The only way to force evaluation of "var" to {x,y} and then solve is the one given by Hamza.S.
Some other functions act the same way, e.g. the derivative function. First, only the variable name is used and then, when the derivation has been made, the variable value is substituted.
This way, one can compute exact derivative values, even on non CAS Nspire !
Example :
- Code: Tout sélectionner
v:={x,y}
derivative(v^2,v)
will return
{2x,2y}
-
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Messages: 5665
- Inscription: 11 Mar 2008, 00:00
- Localisation: Lyon
- Genre:
- Calculatrice(s):→ MyCalcs profile
6 messages
• Page 1 sur 1
Retourner vers Problèmes divers / Aide débutants
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 39 invités