What have you learned so far? Quadratic formula, Newton's method, fixed point iteration, Newton's for systems, or all of the above?
only quadratic formula i think :/ never heard of the other ones..
Is this a course on Matlab only, or it's a course on numerical methods/analysis using Matlab as a tool?
only matlab only
we are only focusing on the commands and stuff
Ok, then there's no expected method to solve the second. For starters, here's an implicit plot of the system (second problem). http://prntscr.com/8o3mfh
See if you can reproduce the same plot in Matlab (if you have covered graphics).
The solution near (2,3) is the top right intersection.
we are on the equations right now.. and i got 2.4072 and 1.1106
if i'll use [2,3]
So you're in a class? I think you should pay attention to what the instructor is showing you instead!
no i have a vacant right now. This assignment is due on wednesday
(2.4,1.1) is definitely not the solution!
so my code is wrong >.<
Have you examined the graph and be convinced that (2.4, 1.1) is not the answer?
You can find out if you put your solution into the equations and see if f(x,y)=0, and g(x,y)=0.
Your solution works for g(x,y)=0 only. f(x,y) gives -36.0
So what method of solution of polynomial equations have you learned so far?
Not sure if you have included both equations into the 'eqns' parameter of fsolve. That may be your only problem.
oh yeah i made x= x(1) and y=x(2)
You have missed out the 0 at the end of definition of F(1), which makes the constant 4 instead of 40. That's why when substituted you will get -36! I think that's all you have to correct!
oh so now i get 2.696 and 3.3655 ?
I get 2.6963 and 3.3655 using just display(x).
yes! so those are right?
Absolutely. If you need more digits, use a more elaborate version of print.
ahh okay. thank you so much! finally, i can move on with the other exercise xD
Good! You're welcome! :)