π
<-

equation equal to zero

:32tins: :32tinsktpb: :32tinsktpn: :32tinscas: :32tinstpkc: :32tinstpktpb: :32tinstp: :32tinscastp: :32tinscmc: :32tinscx: :32tinscxcas:

equation equal to zero

Unread postby jmat » 14 Aug 2013, 04:16

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
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: equation equal to zero

Unread postby Laurae » 14 Aug 2013, 13:36

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.
User avatar
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 78.8%
 
Posts: 1685
Images: 22
Joined: 25 Jun 2010, 00:00
Location: France, La Défense
Gender: Male
Calculator(s):
MyCalcs profile
Class: Professeur, Etudiant, Formateur

Re: equation equal to zero

Unread postby jmat » 14 Aug 2013, 14:28

Code: Select all
Define LibPub eqcero(equloc)=
Func
Local eq
eq:=equloc-right(equloc)
Disp eq
EndFunc


Thanks, I get an error
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: equation equal to zero

Unread postby Laurae » 14 Aug 2013, 14:39

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 :

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).
User avatar
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 78.8%
 
Posts: 1685
Images: 22
Joined: 25 Jun 2010, 00:00
Location: France, La Défense
Gender: Male
Calculator(s):
MyCalcs profile
Class: Professeur, Etudiant, Formateur

Re: equation equal to zero

Unread postby Levak » 14 Aug 2013, 14:53

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.
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: equation equal to zero

Unread postby Laurae » 14 Aug 2013, 15:01

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.
User avatar
LauraeAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 78.8%
 
Posts: 1685
Images: 22
Joined: 25 Jun 2010, 00:00
Location: France, La Défense
Gender: Male
Calculator(s):
MyCalcs profile
Class: Professeur, Etudiant, Formateur

Re: equation equal to zero

Unread postby Adriweb » 14 Aug 2013, 15:04

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 :

Image

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
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.9%
 
Posts: 14840
Images: 1133
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: equation equal to zero

Unread postby jmat » 14 Aug 2013, 15:13

which method would be best?
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Problèmes divers / Aide débutants

Who is online

Users browsing this forum: ClaudeBot [spider] and 5 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1258 utilisateurs:
>1241 invités
>10 membres
>7 robots
Record simultané (sur 6 mois):
7582 utilisateurs (le 25/06/2025)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)