Thread: Maths Programing

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    5

    Maths Programing

    Hello

    Im trying to write a programe that requies something to the power os something. for example

    (1+x/100)^n

    in java there is a class called Math.pow(a,x)
    which does a^x
    Is there such a thing in C.
    Forgive me Im a newbie to C

    TyrioN

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    yeppers include <math.h>
    then
    Code:
    pow(num1,num2)
    Woop?

  3. #3
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Yeah - if you have a look, there is a post 'exponents' from a day or so ago about the pow() function, in case you are still not clear about its usage.

    ~/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C programing for DNA...
    By S16 in forum C Programming
    Replies: 9
    Last Post: 04-29-2009, 09:25 AM
  2. Human brain and programing
    By avgprogamerjoe in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-27-2007, 04:48 PM
  3. maths???
    By nerdyneo in forum C++ Programming
    Replies: 4
    Last Post: 11-09-2003, 01:04 PM
  4. maths in a program
    By anthonye in forum C Programming
    Replies: 2
    Last Post: 05-24-2002, 09:08 AM
  5. More Maths :(
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-20-2002, 10:39 AM