π
<-
Chat plein-écran
[^]

[SOLVED] Solve System Problem.

Pour le TI-Basic sur Nspire

[SOLVED] Solve System Problem.

Message non lude rodolfonobrega » 24 Avr 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.
Dernière édition par rodolfonobrega le 24 Avr 2017, 14:07, édité 1 fois.
Avatar de l’utilisateur
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Prochain niv.: 60%
 
Messages: 2
Inscription: 04 Mai 2015, 04:12
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Solve System Problem.

Message non lude Bisam » 24 Avr 2017, 08:30

You may force the OS to replace "vars" by its value before solving using string tools as shown below :
Code: Tout sélectionner
vars:={a,b}
syst:={a+b=2,2a+b=3}
expr("solve(" & string(syst) & "," & string(vars) & ")")
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5665
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Solve System Problem.

Message non lude rodolfonobrega » 24 Avr 2017, 14:07

Bisam a écrit:You may force the OS to replace "vars" by its value before solving using string tools as shown below :
Code: Tout sélectionner
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: Tout sélectionner
d:="{a,b}"
expr("solve([[a+b=2][2*a+b=3]],"&d&")")


well...

Thanks a lot for your help!
Avatar de l’utilisateur
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Prochain niv.: 60%
 
Messages: 2
Inscription: 04 Mai 2015, 04:12
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile


Retourner vers Nspire-Basic

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 8 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1258 utilisateurs:
>1219 invités
>34 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)