From: Dani on 16 Nov 2009 04:19 Hello everyone, i'm kind of a newbie at Matlab, one of my assignments is to solve an equation in Matlab using : 1. Newton Raphson Mathod 2. The Secant Method my function is f(x) = e ^ (6X^2 + aX +6) and i need the values that solve the equation f(x) = 1 how can I get the assignment started? is there a ready function of each kind of method? so i can only set f(x)? thanks to the helpers' Dani
From: Lothar Schmidt on 16 Nov 2009 04:57 Dani schrieb: > Hello everyone, > > i'm kind of a newbie at Matlab, one of my assignments is to solve an equation > > in Matlab using : 1. Newton Raphson Mathod > 2. The Secant Method > > my function is f(x) = e ^ (6X^2 + aX +6) > and i need the values that solve the equation f(x) = 1 > > how can I get the assignment started? > is there a ready function of each kind of method? > so i can only set f(x)? > > > thanks to the helpers' > Dani first step could be to find out for which exponents e^z will be equal 1. As far as i remember these are only a few and with a little bit of luck you are proud owner of formulary in which those few exponents are documented. after that you could easily solve the equation z=6x^2+ax+6 at least i hope so. I'm not shure if matlab is needed to find a solution.
From: Dani on 16 Nov 2009 05:16 i know how can i do it manually , the problem is that i have to write function that solves that equation like i first posted so it's not that helpful so thank you anyway Lothar Schmidt <vapooroop(a)gmx.net> wrote in message > first step could be to find out for which exponents e^z will be equal 1. > As far as i remember these are only a few and with a little bit of luck > you are proud owner of formulary in which those few exponents are > documented. > > after that you could easily solve the equation > > z=6x^2+ax+6 > > at least i hope so. > I'm not shure if matlab is needed to find a solution.
From: Dani on 16 Nov 2009 05:24 i forgot to tell that in the Newton's Raphson method that values is between 0.4-0.5 and in the Secant Method is 0.5
From: Steven Lord on 16 Nov 2009 09:22 "Dani " <meirironen(a)hotmail.com> wrote in message news:hdr5e6$3nd$1(a)fred.mathworks.com... > Hello everyone, > > i'm kind of a newbie at Matlab, one of my assignments is to solve an > equation > > in Matlab using : 1. Newton Raphson Mathod > 2. The Secant Method > > my function is f(x) = e ^ (6X^2 + aX +6) > and i need the values that solve the equation f(x) = 1 > > how can I get the assignment started? Make sure you understand the Newton-Raphson and Secant methods. Then write out the steps you'll need to follow as comments; for any of the steps that you aren't sure how to implement, break them down further until you understand how to implement each step. Then implement the steps. > is there a ready function of each kind of method? > so i can only set f(x)? Even if there was, you couldn't use it, as your assignment is to write the functions that implement these methods. Correct? If you show what you've tried and ask a _specific_ question about where you're stuck, you should receive some help. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: How to correctly declare a JTree in Matlab ? Next: Removing specific rows from a matrix |