π
<-

Indefined Variable

Pour le TI-Basic sur Nspire

Indefined Variable

Unread postby pimonteiro » 29 Oct 2013, 23:27

It keep giving me an error...

Code: Select all
Define LibPub bin_desc(a,b,c)=
Prgm
© Equação do 2ºGrau
Local d,r1,r2,r
d:=b^(2)-4*a*c
If d>o Then
  r1:=((−b-√(d))/(2*a))
  r2:=((−b+√(d))/(2*a))
  Disp "O binómio Descriminante é d = ",d
  Disp "O primeiro solução é ",r1
  Disp "O segundo solução é ",r2
ElseIf d=o Then
  r:=((−b)/(2*a))
  Disp "O binómio Descriminante é = ",d
  Disp "A solução é r = ",r
ElseIf d<0 Then
  Disp "O binómio Descriminante é d = ",d
  Disp "Não há soluções."
EndIf
EndPrgm


In the calculator, I put: bin_desc(1,2,1)
answer: "Error:Indefined Variable"

Who can help me?
User avatar
pimonteiro
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 17.9%
 
Posts: 2
Joined: 28 Oct 2013, 21:42
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Indefined Variable

Unread postby Bisam » 29 Oct 2013, 23:30

You wrote "d>o" with letter "o" instead of number "0" and the same for "d=o".
Curiously, you write correctly for "d<0".
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: Indefined Variable

Unread postby pimonteiro » 29 Oct 2013, 23:32

Oh my god, i can't believe that was the error xD
Thanks, i will have more attention next time :)
Yap, that's curiously xD
User avatar
pimonteiro
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 17.9%
 
Posts: 2
Joined: 28 Oct 2013, 21:42
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Nspire-Basic

Who is online

Users browsing this forum: ClaudeBot [spider] and 3 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.
816 utilisateurs:
>750 invités
>58 membres
>8 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
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)