hi good evening, I have been looking for the manuals but can not find such an equation equal to zero with the Nspire
example
equation => a+b=c
result to obtain => a+b-c=0
equation equal to zero
8 posts
• Page 1 of 1
-
jmat
Niveau 7: EP (Espèce Protégée: geek)- Posts: 50
- Joined: 24 Jul 2013, 01:03
- Gender:
- Calculator(s):→ MyCalcs profile
Re: equation equal to zero
substract right(E) to each part of the equation E (your a+b=c)
program to make :
yourfunctionname(eqloc)
set eq:=eqloc-right(eqloc)
Disp eq
To use it : yourfunctionname(eqloc)
example : yourfunctionname(a+b=c)
will display a+b-c=0
and also store in variable eq what is displayed
For a quick access to this, transform it to a function (not a program) and put it in MyLib, file without space or weird characters, and refresh libs, and it should appear on function libraries screen.
program to make :
yourfunctionname(eqloc)
set eq:=eqloc-right(eqloc)
Disp eq
To use it : yourfunctionname(eqloc)
example : yourfunctionname(a+b=c)
will display a+b-c=0
and also store in variable eq what is displayed
For a quick access to this, transform it to a function (not a program) and put it in MyLib, file without space or weird characters, and refresh libs, and it should appear on function libraries screen.
Certifications Microsoft (Codes d'accès : 1140043 / LauraeEdu)
LinkedIn - My page Google+
Ma page Wiki TI-Planet - Ma page Wiki TI-Planet
Mes programmes TI-Nspire pour le BAC - La calculatrice au BAC et aux examens d'Etat
Fonctions courantes TI-Nspire - Questions-Réponses TI-Nspire
Association UPECS - Laurae Education (centre de certifications)
-
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 1685
- Images: 22
- Joined: 25 Jun 2010, 00:00
- Location: France, La Défense
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: Professeur, Etudiant, Formateur
Re: equation equal to zero
- Code: Select all
Define LibPub eqcero(equloc)=
Func
Local eq
eq:=equloc-right(equloc)
Disp eq
EndFunc
Thanks, I get an error
-
jmat
Niveau 7: EP (Espèce Protégée: geek)- Posts: 50
- Joined: 24 Jul 2013, 01:03
- Gender:
- Calculator(s):→ MyCalcs profile
Re: equation equal to zero
ok, forgot some functions are not available on functions instead of programs.
Edit : ok, forgot some functionnalities are not available on functions instead of programs.
Try this :
(do the same steps for MyLib and libraries...)
to use it : eqcero(your equation)
If you want to store it for instance on variable blabla, use blabla:=eqcero(your equation)
To access the function use the libraries so you know what to type once you know what to type.
Should work fine (your function works perfectly, didn't test on the scratchpad however).
Edit : ok, forgot some functionnalities are not available on functions instead of programs.
Try this :
- Code: Select all
Define LibPub eqcero(equloc)
Func
Return equloc-right(equloc)
EndFunc
(do the same steps for MyLib and libraries...)
to use it : eqcero(your equation)
If you want to store it for instance on variable blabla, use blabla:=eqcero(your equation)
To access the function use the libraries so you know what to type once you know what to type.
Should work fine (your function works perfectly, didn't test on the scratchpad however).
Certifications Microsoft (Codes d'accès : 1140043 / LauraeEdu)
LinkedIn - My page Google+
Ma page Wiki TI-Planet - Ma page Wiki TI-Planet
Mes programmes TI-Nspire pour le BAC - La calculatrice au BAC et aux examens d'Etat
Fonctions courantes TI-Nspire - Questions-Réponses TI-Nspire
Association UPECS - Laurae Education (centre de certifications)
-
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 1685
- Images: 22
- Joined: 25 Jun 2010, 00:00
- Location: France, La Défense
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: Professeur, Etudiant, Formateur
Re: equation equal to zero
Laurae wrote:ok, forgot some functions are not available on functions instead of programs.
What in the code is not available for functions ?
Local, Disp and assignations are available, as long as it operates on local variables.
-
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)- Posts: 6414
- Images: 22
- Joined: 27 Nov 2008, 00:00
- Location: 0x1AACC355
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: BAC+5: Epita (ING3)
Re: equation equal to zero
Levak wrote:Laurae wrote:ok, forgot some functions are not available on functions instead of programs.
What in the code is not available in Functions ?
Local, Disp and assignations are available, as long as it works on local variables.
Edited : "some functionnalities are not available on functions instead of programs"
He wants probably an output.
Certifications Microsoft (Codes d'accès : 1140043 / LauraeEdu)
LinkedIn - My page Google+
Ma page Wiki TI-Planet - Ma page Wiki TI-Planet
Mes programmes TI-Nspire pour le BAC - La calculatrice au BAC et aux examens d'Etat
Fonctions courantes TI-Nspire - Questions-Réponses TI-Nspire
Association UPECS - Laurae Education (centre de certifications)
-
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 1685
- Images: 22
- Joined: 25 Jun 2010, 00:00
- Location: France, La Défense
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: Professeur, Etudiant, Formateur
Re: equation equal to zero
Hmm, why not simply using left() and right() ... ?
It works with string() to format the ouput with what you want.
It can show "the steps", then :

And you can even expr() what's in tmp2 to get an expression instread of a string, then.
It works with string() to format the ouput with what you want.
It can show "the steps", then :

And you can even expr() what's in tmp2 to get an expression instread of a string, then.
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14840
- Images: 1133
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: equation equal to zero
which method would be best?
-
jmat
Niveau 7: EP (Espèce Protégée: geek)- Posts: 50
- Joined: 24 Jul 2013, 01:03
- Gender:
- Calculator(s):→ MyCalcs profile
8 posts
• Page 1 of 1
Return to Problèmes divers / Aide débutants
Who is online
Users browsing this forum: ClaudeBot [spider] and 10 guests