Results 1 to 2 of 2

Math Help - Using a for loop and while loop.

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    3

    Using a for loop and while loop.

    f= x^(1/3). How would i write an m.file to lend numerical support to show that the limit as x approaches 27 is 3? using the for loop and while loop respectively...
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by herbalist View Post
    f= x^(1/3). How would i write an m.file to lend numerical support to show that the limit as x approaches 27 is 3? using the for loop and while loop respectively...
    Something like the following for thr for loop:

    Code:
    for idx=1:10
    
       eps=10^(-idx)
       (27+eps)^(1/3)
    
    end
    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. simple for loop
    Posted in the Math Software Forum
    Replies: 0
    Last Post: September 29th 2011, 09:08 AM
  2. For Loop for an m-by-1 matrix
    Posted in the Math Software Forum
    Replies: 20
    Last Post: July 21st 2010, 04:59 PM
  3. Matlab while loop, Please help!
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 23rd 2010, 01:14 AM
  4. Loop invariants
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: July 13th 2009, 04:58 PM
  5. Loop Statements
    Posted in the Math Topics Forum
    Replies: 3
    Last Post: April 9th 2009, 05:29 AM

Search Tags


/mathhelpforum @mathhelpforum