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.
3 posts
• Page 1 of 1
[SOLVED] Solve System Problem.
Last edited by rodolfonobrega on 24 Apr 2017, 14:07, edited 1 time in total.
-
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)- Posts: 2
- Joined: 04 May 2015, 04:12
- Gender:
- Calculator(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: Select all
vars:={a,b}
syst:={a+b=2,2a+b=3}
expr("solve(" & string(syst) & "," & string(vars) & ")")
-
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 5670
- Joined: 11 Mar 2008, 00:00
- Location: Lyon
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Solve System Problem.
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!
-
rodolfonobregaPremium
Niveau 1: MD (Membre Débutant)- Posts: 2
- Joined: 04 May 2015, 04:12
- Gender:
- Calculator(s):→ MyCalcs profile
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: ClaudeBot [spider] and 1 guest