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!
Is there any way to resolve this?
Thank you all.
[SOLVED] Solve System Problem.
Voir le premier message non lu • 3 messages
• Page 1 sur 1
[SOLVED] Solve System Problem.
Dernière édition par rodolfonobrega le 24 Avr 2017, 14:07, édité 1 fois.
-
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)- Messages: 2
- Inscription: 04 Mai 2015, 04:12
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Solve System Problem.
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) & ")")
-
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Messages: 5665
- Inscription: 11 Mar 2008, 00:00
- Localisation: Lyon
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Solve System Problem.
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!
-
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)- Messages: 2
- Inscription: 04 Mai 2015, 04:12
- Genre:
- Calculatrice(s):→ MyCalcs profile
3 messages
• Page 1 sur 1
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 15 invités