Suppose that the number ##\pi## is divided by 2. The resulting quotient is divided by 2 again. This process is continued till the current quotient is less than or equal to 0.01. What is the largest quotient that is greater than 0.01?(adsbygoogle = window.adsbygoogle || []).push({});

Here is my attempt:

The processing takes about 20 or 30 seconds and then i get this error in the command window:Code (Text):r = 1;

quo = 1;

while (quo > 0.01)

quo = pi / 2;

num(r) = quo;

r = r+1;

end

disp('The largest quotient greater than 0.01 is: ' ,(num(r-1)) )

Out of memory. Type HELP MEMORY for your options.

Error in piquo (line 7)

num(r) = quo;

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Finding quotient using while loop

Loading...

Similar Threads - Finding quotient using | Date |
---|---|

How to find a path for a tex file? | Jan 27, 2017 |

Is there a software that finds an equation of a function? | Oct 29, 2015 |

Find the zeros of a generalised Laguerre polynomial | Oct 25, 2015 |

How do I find the equation of a derivative using a TI-84? | Oct 24, 2015 |

**Physics Forums - The Fusion of Science and Community**