Thread: mathematics functions for c

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    8

    mathematics functions for c

    hii guys

    I have been looking for examples for using maths functions eg sine cosine, but I could not find any examples,

    so could any one be kind and guide me ,



    thanks

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    but I could not find any examples,
    In the 45 minutes between when you posted this and the current time, I should hope you have done a little more searching and found what you were looking for. If not, please make google your best friend. It has not failed me yet.
    c math example - Google Search

    Check the third hit - each function has examples included.
    cmath (math.h) - C++ Reference
    Consider this post signed

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    8
    first thanks for your reply
    however, I mean defining function outside the main() not within,

    anything !

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Alanazi View Post
    first thanks for your reply
    however, I mean defining function outside the main() not within,

    anything !
    That isn't really math specific. It's about program structure.


    Cprogramming.com - Programming Tutorials: C++ Made Easy and C Made Easy

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    8
    thank you SO MUCH man

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array of functions
    By frktons in forum C Programming
    Replies: 29
    Last Post: 06-30-2010, 09:51 AM
  2. Need help with functions
    By jusfry01 in forum C Programming
    Replies: 2
    Last Post: 05-22-2010, 06:25 PM
  3. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  4. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  5. Mathematics Odd/Even Functions
    By xddxogm3 in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-18-2004, 05:35 PM