## 77 Reputation

14 years, 319 days

## Newton's method again...

Hi all,

The discussion here is very interesting and useful. I still have a question regarding the Newton's method iteration or any other iteration. how can I implement the proc above for a function like : f(x) = sqrt(x-r)  for x>= r and f(x) = - sqrt(r-x)  for x<= r, where r is any ( choosen) real number. I know this function does not converge. and I want to see the result as output=plot.

Thanks to all

## I found it...

Thanks to you all, I found out that jpg works perfectly without anyproblem and it gives a colourful figures in pdf documents, no need for complicated syntaxes, I did as following : \usepackage{graphicx} and where you want to place your image comes the following: \begin{figure} \centering \includegraphics[width=10cm]{image01.jpg} \caption{whatever} \label{fig:image01} \end{figure} dont forget the extention ".jpg" and the bb is not needed. For this straitforward method the only acceptable picture format is pdf,jpg, and png

## Problem continues...

Dear all, I have done as Alex Smith has adviced me to run the "ebb" command as explaine above and I always get error messages. Follows is a copy and paste of some lines from the error log which might be helpful for searching the cause of the error: The error log always starts with: This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=pdflatex 2007.8.4) 13 JAN 2008 22:35 entering extended mode then it gives the following : ! Argument of \Gin@ii has an extra }. \par l.174 \includegraphics {FixedPoint} and by the way in my tex file I used: begin{figure}[htbp] \scalebox{0.4} \includegraphics{FixedPoint} \caption{The fixed point iteration} \label{fig:FixedPoint} \end{figure} and tried it many times, some times with the extention ".gif" some times without as you see above but always the same error. I also have checked my file to look for where the extra "}" as the error message says but all my syntaxes look correct. Urgent help nedded. Thanks to all.

## Thanks to you all...

Thanks to you all Yes I am using WinEdt which of course use MikTex, so a questtion to Alex Smith : where and how to run the command "ebb example.gif". and in this case should I use the regular way of \usepackage{graphicx} etc. and \ncludegraphics{} so these things should not be changed? in which part exactly of my Tex file should I insert the command "ebb example.gif".? and will I get color image when I compile to pdf? Another question a question to acer: are you sure its plotsetup(cps); or you mean eps and the c in your command is just a typing error? because I always get a gray eps so can you please give a full example of how to get a coulr eps? and can you include it in Latex and then convert to pdf or just to div? and what do you mean by a path issue? how can I check that and where to correct it?. please anybody can give a full example of obtaining colour image in a pdf from latex then please post it here or send it private if you like to. Thanks
 Page 1 of 1
﻿