π
<-

How to store an equaion in a variable?

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

How to store an equaion in a variable?

Unread postby arabajamelabañera » 24 Jul 2020, 14:00

Dear all,
I am new to the TI-Nspire CX CAS. Could you advice me on how to store an equation in a variable? Mathematica uses ":=" and "==", e.g.
Code: Select all
myeq := 1/a == b * log(a + 4)

in order to use it later on in an expression like
Code: Select all
solve(myeq,a) | b = 10

Thank you for advice.
User avatar
arabajamelabañera
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 4
Joined: 24 Jul 2020, 13:50
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: How to store an equaion in a variable?

Unread postby Hisham » 24 Jul 2020, 15:01

Image

Best,
Hisham :)
User avatar
HishamPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 12.9%
 
Posts: 140
Joined: 01 Mar 2017, 20:52
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: How to store an equaion in a variable?

Unread postby arabajamelabañera » 24 Jul 2020, 15:16

Hi Hisham,
I don't get it... where has "eq"been assigned, and what is "subst"?
Could you give me a more concrete example or explain how it is supposed to work?
User avatar
arabajamelabañera
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 4
Joined: 24 Jul 2020, 13:50
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: How to store an equaion in a variable?

Unread postby Bisam » 24 Jul 2020, 16:23

First, the affectation symbol is :=, would it be for a function or a variable.
Then, the test for equality is done with =, not == which will run to a syntax error.

E.g. :
Code: Select all
myeq := 1/a = b * log(a + 4)
solve(myeq,a) | b = 10
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: How to store an equaion in a variable?

Unread postby arabajamelabañera » 24 Jul 2020, 17:24

Hi Bisam, thank you for your reply.
Yes, I agree. But when I type it the way you propose, I get an error:
"Argument must be an expression."
Which implies that equations can not be stored and recalled in a convenient way?!?
User avatar
arabajamelabañera
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 4
Joined: 24 Jul 2020, 13:50
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: How to store an equaion in a variable?

Unread postby nspiredev500 » 24 Jul 2020, 18:30

Maybe you mistyped something, it works for me.
User avatar
nspiredev500
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 16%
 
Posts: 17
Joined: 03 Jul 2020, 12:22
Gender: Not specified
Calculator(s):
MyCalcs profile
GitHub: nspiredev500

Re: How to store an equaion in a variable?

Unread postby arabajamelabañera » 27 Jul 2020, 17:01

Thank you all for your time.
Miraculously, it is working now...
a := b + c = d
gives
b + c = d
I really do not know, why I had to write this post.
User avatar
arabajamelabañera
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 4
Joined: 24 Jul 2020, 13:50
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 14 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.
1091 utilisateurs:
>1064 invités
>22 membres
>5 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)