Student Support Forum: 'NSolve[{ab == 2, a + b == 3}, {a, b}]' topicStudent Support Forum > General > Archives > "NSolve[{ab == 2, a + b == 3}, {a, b}]"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Lino 07/30/03 5:42pm I'm new to Mathematica and I was trying some functions. I tried to NSolve[{ab == 2, a + b == 3}, {a, b}] the most simple and intuitive solution is: a=1, b=2. Mathematica returns: {a -> 1.10693, b -> 1.89307} Why does it choose that solution? I know that I should ask it to Solve[x^2 - 3x + 2 == 0, x] but I don't know why it doesn't do that automatically. Is there any technical reason? By the way..I tried this because I was searching some functions to numerically solve theese simultaneous equations: {a == 2f, b == 12 - e - g, h == -16 + ab + e, c == -8 + ab, d == -4 + e} URL: ,

 Subject (listing for 'NSolve[{ab == 2, a + b == 3}, {a, b}]') Author Date Posted NSolve[{ab == 2, a + b == 3}, {a, b}] Lino 07/30/03 5:42pm Re: NSolve[{ab == 2, a + b == 3}, {a, b}] VL 07/31/03 1:02pm Re: NSolve[{ab == 2, a + b == 3}, {a, b}] Forum Modera... 08/03/03 3:19pm Re: NSolve[{ab == 2, a + b == 3}, {a, b}] Lino 08/04/03 1:20pm
 Next Comment > Help | Reply To Topic