permaculture playing cards*
The moose likes Programming Diversions and the fly likes Solving an equation, please help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Solving an equation, please help. " Watch "Solving an equation, please help. " New topic
Author

Solving an equation, please help.

Sidd Kulk
Ranch Hand

Joined: Feb 20, 2007
Posts: 152
Solve the equation for the value of n; P and c are known

P/n = 2^(1/((c)*(P/n)))

the right hand side expression is:

2 raise to (1 divided by (c multiplied by (P divided by n)))

thanks in advance
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by Sidd Cool:
Solve the equation for the value of n; P and c are known

P/n = 2^(1/((c)*(P/n)))

the right hand side expression is:

2 raise to (1 divided by (c multiplied by (P divided by n)))

thanks in advance


What is this???


The Best way to predict your future is to create it - Every great individual common man
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Homework ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I would start here: Mathwords: Logarithm Rules


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Sidd Kulk
Ranch Hand

Joined: Feb 20, 2007
Posts: 152
Actually i am trying to develop an algorithm for a given problem, wherein i am supposed to separate a string in two parts based on a mathematical logic. I derived this formula to separate the string. P is the length of full string and n is the length of string required to be extracted. But this equation is ver confusing. Any help will be appreciated.

thanks,
Sid
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Too meaningful. Get thee to Diversions.
Brandon Bernie
Greenhorn

Joined: Nov 02, 2007
Posts: 9
Wolfram Alpha will help you.

http://www06.wolframalpha.com/input/?i=Solve[2^%28n%2F%28c+P%29%29+%3D%3D+P%2Fn%2C+n]

copy / paste the url... Im not sure what is going on with the clickable link.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Solving an equation, please help.
 
Similar Threads
Post your favorite trick questions
Java Code for APR Calculation using Newton Rapson Method
Efficient algorithm for string manipulation
Newton Rapson library for APR calculator in JAVA
line graphs