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.
14 2823
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
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
Mmmmmmmmmmmmmmmmmm... pie!
Mmmmmmmmmmmmmmmmmm... pie!
As the OP already told you: you can only have one sixth of it at max.
kind regards,
Jos ;-)
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.
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.
Oh great, the slices are getting smaller by the minute :-(
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
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.
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.
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".
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.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
by: sekitoleko |
last post by:
c program for newton raphson algorithm for finding roots of a polynomial
|
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...
|
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...
|
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...
|
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!!...
|
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.
|
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)) *...
|
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.
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
| |