473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Newton Raphson

Please, I need a program in java language to solve the question below:
-By applying Newton Raphson method,find the root of 3x-2tanx=0 given that there is a root between pie/6 and pie/3.
Thank you.
Jan 30 '08 #1
14 2823
JosAH
11,448 Expert 8TB
Please, I need a program in java language to solve the question below:
-By applying Newton Raphson method,find the root of 3x-2tanx=0 given that there is a root between pie/6 and pie/3.
Thank you.
You need the first derivative of that expression in order to perform a NR step.
You either figure that one out yourself or you approximate it as follows:

f'(x) == (f(x+h)-f(x))/h for a small value of h. The NR step is simply:

x(n+1) == x(n)-f(x(n))/f'(x(n))

kind regards,

Jos
Jan 30 '08 #2
BigDaddyLH
1,216 Expert 1GB
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

MODERATOR
Jan 30 '08 #3
BigDaddyLH
1,216 Expert 1GB
Mmmmmmmmmmmmmmmmmm... pie!
Jan 30 '08 #4
JosAH
11,448 Expert 8TB
Mmmmmmmmmmmmmmmmmm... pie!
As the OP already told you: you can only have one sixth of it at max.

kind regards,

Jos ;-)
Jan 30 '08 #5
Ganon11
3,652 Expert 2GB
Actually, he said somewhere between one third and one sixth. So if we each take a fourth, there's enough for all of us - one for the OP, one for BigDaddy, one for Jos, one for me, and none for r0.
Jan 30 '08 #6
r035198x
13,262 8TB
Actually, he said somewhere between one third and one sixth. So if we each take a fourth, there's enough for all of us - one for the OP, one for BigDaddy, one for Jos, one for me, and none for r0.
Eating the admin's pie in the public forums is a defenestratable offense.
Jan 30 '08 #7
RedSon
5,000 Expert 4TB
Did someone say pie?
Jan 30 '08 #8
BigDaddyLH
1,216 Expert 1GB
Oh great, the slices are getting smaller by the minute :-(
Jan 30 '08 #9
JosAH
11,448 Expert 8TB
Oh great, the slices are getting smaller by the minute :-(
Sure, what did you think? You started mentioning pies ... and then all those
hungry bastards come flying in ...

kind regards,

Jos
Jan 30 '08 #10
Ganon11
3,652 Expert 2GB
Actually, it was the OP who first mentioned pies. Wonder if they were actually thinking about pi - that would be a different matter entirely. r0 can have all the pi he wants.
Jan 30 '08 #11
BigDaddyLH
1,216 Expert 1GB
Actually, it was the OP who first mentioned pies. Wonder if they were actually thinking about pi - that would be a different matter entirely. r0 can have all the pi he wants.
Well sometimes pie can be a transcendental experience. Ha, ha! I'm such a nerd.
Jan 30 '08 #12
Killer42
8,435 Expert 8TB
Well sometimes pie can be a transcendental experience. Ha, ha! I'm such a nerd.
Ah, but how much of a nerd? Personally, I think I was a little over 50% on all three - nerd, geek and dork.

If you don't know what I'm talking about, hit the search box up top for "geek test".
Jan 31 '08 #13
r035198x
13,262 8TB
Ah, but how much of a nerd? Personally, I think I was a little over 50% on all three - nerd, geek and dork.

If you don't know what I'm talking about, hit the search box up top for "geek test".
Go away. The pies are for the Java forum members only.
Jan 31 '08 #14
Killer42
8,435 Expert 8TB
Go away. The pies are for the Java forum members only.
That's ok. As a Site Moderator I'm automatically a member of all groups.
Jan 31 '08 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: moi | last post by:
Can someone please help with this problem im having. i have to use the newton-raphson technique to find the root of a function, in this case X^2 - 1. basically, the program has to read in values...
6
by: sekitoleko | last post by:
c program for newton raphson algorithm for finding roots of a polynomial
2
by: JamesUmokoro | last post by:
Please Im writing a project on mathematics here in school. Can someone help me with the source code for solving Numerical Analysis problem with Newton Raphson using Java programming? Thank you all...
11
by: kartikegarg | last post by:
can you help me please with this problem.. i want a c program using newton raphson method for solving 18 equations... the equations are not of degree greater than 1... i need the program to input...
3
by: spranto | last post by:
Hi guys I allready oppened another thread to know if someone can help me to solve a 3 non linear equation system. I tryed this code to make the newton raphson method to work, but insted of converging...
2
by: kolnit | last post by:
Find a soln to the following eqtn by Newton-Raphson's method e^(0.05x)+x^2=132254 Let f(x)= e^(0.05x)+x^2-132254 perform iterations until abs f(x)<10^-6 I just have no idea wt to do!!...
1
by: dynamo | last post by:
Hi guys,i was wondering if anyone knows the code to solve equations using the newton raphson method in matlab.Or at least the algorithm.
10
by: DDCane | last post by:
i have made a code for finding a derivative and now im trying to use it to help me with a code for the newton raphson method: def derivative (f,x,h): import math return float(1/(2*h)) *...
4
by: precioasisbest | last post by:
Please,I need a program in visual basic to solve the question below: -By applying Newton Raphson method,find the root of 3x-2tanx=0 given that there is a root between pie/6 and pie/3.Thank you.
6
by: pauldepstein | last post by:
Let double NR( double x, double(*)(const double&) f ) be the signature of a Newton-Raphson function NR. Here, f is a function which returns a double and accepts a const double&. The aim of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.