π
<-

[SOLVED] Solve System Problem.

Pour le TI-Basic sur Nspire

[SOLVED] Solve System Problem.

Unread postby rodolfonobrega » 24 Apr 2017, 01:20

Hi, first of all, sorry for posting in English, but I did not find any posts in the forum that are in English ...

I'm trying to make a program, and at the end of the code, I check which variables are missing to be calculated and solve them through a system ... to do this, I keep the list of unused variables in another variable, but texas Does not accept such action.

In the following image I gave an example of the problem!


Image



Is there any way to resolve this?

Thank you all.
Last edited by rodolfonobrega on 24 Apr 2017, 14:07, edited 1 time in total.
User avatar
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 60%
 
Posts: 2
Joined: 04 May 2015, 04:12
Gender: Not specified
Calculator(s):
MyCalcs profile

Online

Re: Solve System Problem.

Unread postby Bisam » 24 Apr 2017, 08:30

You may force the OS to replace "vars" by its value before solving using string tools as shown below :
Code: Select all
vars:={a,b}
syst:={a+b=2,2a+b=3}
expr("solve(" & string(syst) & "," & string(vars) & ")")
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: Solve System Problem.

Unread postby rodolfonobrega » 24 Apr 2017, 14:07

Bisam wrote:You may force the OS to replace "vars" by its value before solving using string tools as shown below :
Code: Select all
vars:={a,b}
syst:={a+b=2,2a+b=3}
expr("solve(" & string(syst) & "," & string(vars) & ")")



Hi, Bisam, thankyou so much for responding!
I had just thought of this solution and it worked!

my code look like this: (same ideia)
Code: Select all
d:="{a,b}"
expr("solve([[a+b=2][2*a+b=3]],"&d&")")


well...

Thanks a lot for your help!
User avatar
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 60%
 
Posts: 2
Joined: 04 May 2015, 04:12
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Nspire-Basic

Who is online

Users browsing this forum: ClaudeBot [spider] and 1 guest

-
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.
707 utilisateurs:
>641 invités
>59 membres
>7 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)