Domain Error

This is a discussion on Domain Error within the C Programming forums, part of the General Programming Boards category; I am in the process of converting a program which was originally written in gwbasic into c. when i am ...

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    1

    Domain Error

    I am in the process of converting a program which was originally written in gwbasic into c. when i am using the pow function i get a an error message saying "domain error" can anybody help me

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    72
    There's a domain error if base is zero and exp is less than or equal to zero. There's also a domain error if base is negative and exp is not an integer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21