• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calculating Ln and exponent

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys, I have two functions that need to return the ln of a parameter and the exponent of a parameter. How would I do this?


Thanks
Ian
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ranchers don't generally do homework for you, unless maybe for a fee that would let me retire tomorrow. Are you stuck on the math algorithms? I'd just Google for those. Give it a shot and see if you can get something going!
[ August 02, 2007: Message edited by: Stan James ]
 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The keyword to Google on is the "Math" class.

Kaydell
 
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kaydell Leavitt:
The keyword to Google on is the "Math" class.

Kaydell



Only if he is allowed to use the Math class, which it doesn't sound like it is permissible.. Besides Google isn't necessary, just go here.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this is for a class, perhaps using a Taylor series would be appropriate for each. There may well be better ways to do this, depending on the desired domain of the functions, and how much effort it's worth to optimize speed. But that's where I'd probably start, assuming a Google search numeric approximations for eponentials and logarithms doesn't give you better ideas.

Of course if it's not for a class, then yes there's a much simpler solution suggested in earlier answers...
 
You can't expect to wield supreme executive power just because
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic