1 Pages (13 items)
2 equations with 2 unknowns - How to solve 2 equations with 2 unknowns - Messages
#1 Posted: 6/28/2016 3:42:01 PM
#2 Posted: 6/28/2016 5:05:38 PM
#3 Posted: 6/28/2016 5:40:17 PM
That is a good way! But I know that many high-school student don't really know linear algebra and that is why i asked 
But thanks for the fast answer!
// Wuxen

But thanks for the fast answer!
// Wuxen
#4 Posted: 6/28/2016 8:31:29 PM
Present it otherwise as you wish.
In the attached, in "So much from so little"
experiment 7.2 and 7.201 vs result !!!

Solve [x,y,z] Compactum.sm (62 KiB) downloaded 87 time(s).
In the attached, in "So much from so little"
experiment 7.2 and 7.201 vs result !!!
Solve [x,y,z] Compactum.sm (62 KiB) downloaded 87 time(s).
#5 Posted: 6/28/2016 9:07:16 PM
I understand what you are saying, but the thing I am looking for is:
In Matlab I can also solve 2 eqs. with 2 unknowns without using linear alg.
in Matlab I can solve it with solve(3*a-4*b=24 AND 5*a+2*b=-3,[a b])
I hope you understand what I'm looking for - It is to solve it without using linear alg.
// Wuxen
In Matlab I can also solve 2 eqs. with 2 unknowns without using linear alg.
in Matlab I can solve it with solve(3*a-4*b=24 AND 5*a+2*b=-3,[a b])
I hope you understand what I'm looking for - It is to solve it without using linear alg.
// Wuxen
#6 Posted: 6/28/2016 9:51:09 PM
You can use the built-in function roots()
![2016-06-29 09_27_49-SMath Studio Desktop - [roots.sm_].png](/en-US/file/FpozMd/2016-06-29-09_27_49-SMath-Studio-Desktop---_roots_sm___png)
Settings about roots' range are in Tools > Options > Calculation > Roots (range); you can also give an initial guess as third argument.
Settings about roots' range are in Tools > Options > Calculation > Roots (range); you can also give an initial guess as third argument.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 6/28/2016 11:20:04 PM
WroteI understand what you are saying, but the thing I am looking for is:
In Matlab I can also solve 2 eqs. with 2 unknowns without using linear alg.
in Matlab I can solve it with solve(3*a-4*b=24 AND 5*a 2*b=-3,[a b])
I hope you understand what I'm looking for - It is to solve it without using linear alg.
There are many ways to solve, about ½ dozen more. Where do you see "linear alg"
in my reply ? My typical answer is over 3 centuries old, coded universal in any
system handling maths. Mathcad, Matlab ... they just code the solving like Smath
coding 2*3 =6. If you would have a system 1000 variables/unknowns, you would use
"linsolve", doing the same but more efficiently for speed of computation.
Gauss elimination, Cramer are not efficient. Above a certain size, Cramer will
never end between all big blues of the world together, and you will be dead
sucking roots for centuries.
2 users liked this post
#8 Posted: 6/29/2016 12:21:12 AM
#10 Posted: 6/29/2016 1:56:14 AM
Hi. To handle this needs a complete set of instructions, and a new system variable:
$MaxExtraPrecision is used implicitly in various exact numerical computations, including equality tests, comparisons, and functions such as Round and Sign.
See Possible issues under https://reference.wolfram.com/language/ref/Equal.html
Best regards.
Alvaro.
$MaxExtraPrecision is used implicitly in various exact numerical computations, including equality tests, comparisons, and functions such as Round and Sign.
See Possible issues under https://reference.wolfram.com/language/ref/Equal.html
Best regards.
Alvaro.
#11 Posted: 6/29/2016 4:28:44 AM
WroteWrote
Hi Davide,
unfortunately, your sanity check isn't good, because the result f(a,b )=[0;0] says the opposite: it's the result of logical expressions "is 3*a-4*b equal to 24? No (0)!" and "is 5*a+2*b equal to -3? No (0)!"
The error is small though, less that 4*10^-14.
Busted! Thank you Mike

(screenshot fixed)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Posted: 6/29/2016 9:37:59 AM
NO Davide: not so much "busted". Even -3.00000000000004 is caused by
the machine ULP in the sanity reverse computation. Nothng to worry about.
Jean

Solve SANITY.sm (11 KiB) downloaded 58 time(s).
the machine ULP in the sanity reverse computation. Nothng to worry about.
Jean
Solve SANITY.sm (11 KiB) downloaded 58 time(s).
#13 Posted: 6/29/2016 11:02:03 AM
1 Pages (13 items)
-
New Posts
-
No New Posts