Search the web
Sign In
New User? Sign Up
Fortran · Fortran Q/A's, info, lib and fans
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Querry...   Message List  
Reply | Forward Message #128 of 518 |
Re: [Fortran] Querry...


Your program looks OK. Usually log(-ve) is
undefined quantity. You make x +ve and then check.



--- junseok_74 <junseok_74@...> wrote:
> Hello, I have some problem. Please have a look at
> and give me some
> advices...
> Thanks.
>
>
> Source code---------------------------
>
> DOUBLE PRECISION X,Y
> X=-8.D0
> Y=1.D0/3.D0
> WRITE (*,*) 'The value of X**Y=',DEXP(Y*DLOG(X))
> END
>
>
Result_________________________________________________
>
> run-time error M6201: MATH
> - log: DOMAIN error
> Image PC Routine Line
> Source
> Text1.exe 004076B9 Unknown
> Unknown Unknown
> Text1.exe 004074D1 Unknown
> Unknown Unknown
> Text1.exe 00407671 Unknown
> Unknown Unknown
> Text1.exe 00409908 Unknown
> Unknown Unknown
> Text1.exe 004261D0 Unknown
> Unknown Unknown
> Text1.exe 00423C2A Unknown
> Unknown Unknown
> Text1.exe 004010A3 Unknown
> Unknown Unknown
> Text1.exe 0042EEB9 Unknown
> Unknown Unknown
> Text1.exe 00422E74 Unknown
> Unknown Unknown
> KERNEL32.dll 77E692A6 Unknown
> Unknown Unknown
>
> Incrementally linked image--PC correlation disabled.
>
>
>


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



Fri Aug 9, 2002 4:23 am

rajgupta121
Offline Offline
Send Email Send Email

Forward
Message #128 of 518 |
Expand Messages Author Sort by Date

Hello, I have some problem. Please have a look at and give me some advices... Thanks. Source code--------------------------- DOUBLE PRECISION X,Y X=-8.D0 ...
junseok_74
Offline Send Email
Aug 9, 2002
3:14 am

Your program looks OK. Usually log(-ve) is undefined quantity. You make x +ve and then check. ... Result_________________________________________________ ... ...
Raj Gupta
rajgupta121
Offline Send Email
Aug 9, 2002
4:23 am

You can't take the logarithm of a negative number using REAL or DOUBLE PRECISION arithmetic. It doesn't exist.You can take the logarithm of a negative quantity...
demiduet
Offline
Aug 9, 2002
8:08 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help