Thread: Math Header?

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

    Math Header?

    Is there a math header file for math functions?

    I mean like a math.h file or something.

    And I mean functions like 7 to the 5th power type stuff or other math functions you wouldn't be able to do other wise.



    Edit: Before anyone corects me....

    I mean you could do that but a math header with that function would make it eisier.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Yeah, its called
    #include <cmath>
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    rally now? I'll go and mess with that then. Thanks alot!

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    Where can I get the functions list and all of that tho. Sopme reason my dev-cpp help files don't have any of that.

  5. #5
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    http://www.cplusplus.com/ref/cmath/

    Google for math.h
    First result

    [edit]Also, google for cmath; first and second results.[/edit]
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    oh I had use the bathroom but I'm back. I just did a google and looking at stuff.

  7. #7
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Rune Hunter
    oh I had use the bathroom but I'm back.
    Thanks for the info, but this isn't a chat room.
    No one will notice if you're away for 13 minutes.

    There are extensions to cmath in the standard, for example <complex> if you need to do calculations with complex numbers, or <valarray> if you need vectors.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #8
    Registered User
    Join Date
    Dec 2002
    Posts
    119
    Here's another math func. ref. http://cppreference.com/stdmath.html
    If you speak or are learning Spanish, check out this Spanish and English Dictionary, it is a handy online resource.
    What happens is not as important as how you react to what happens. -Thaddeus Golas

  9. #9
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    thanks, but I am going to look into Delphi code for a little bit.

  10. #10
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by Rune Hunter
    thanks, but I am going to look into Delphi code for a little bit.
    Tired of c++ already grasshopper?
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  11. #11
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    No not tired. I just heard delphi could very simplily create win 32 apps...but I guess not. Sence my compiler don't even work and a bunch of crap like that. But I am using game maker right now (wich was made from delphi)


    And I think I am more of a Cricket.

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    And I think I am more of a Cricket.
    Haven't you heard the story of the ants and the grasshoppers?

    If you want to create Windows Apps quickly and easily look into C# or use the .NET namespaces with C++.

  13. #13
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    lol I looked at c# already. .net namespaces? I do think that would be just amout of work if it is what I think it is.


    uhh...what is .net namespaceing? tut please...


    Haven't you heard the story of the ants and the grasshoppers?
    Yes I have, mor then once but... I have also heard "Try different things". And I am trying different code.

  14. #14
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    .NET is a microsoft thing. You probably need MSVC++ as I dont know of any othe compiler supporting .NET.

    What .NET is is a different kind of "framework" for building win32 apps.

    I know at first the WinAPI is really scary but just keep trying it every once in a while.
    What ever you do do not constantly keep messing with it or it will drive you bonkers. Just try it every now and then and eventually you will get it.
    What is C++?

  15. #15
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    yah maybe.

    Oh and I downloaded and installed .net fram work. I needed it for a think called HEK (Halo Editing Kit).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM