From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: how to write exponents? Date: Wed, 21 Apr 1999 04:14:59 -0400 Content-Transfer-Encoding: 7bit References: <7fjvql$4ck AT cs DOT vu DOT nl> X-Posted-Path-Was: not-for-mail X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: 21 Apr 1999 08:14:03 GMT X-ELN-Insert-Date: Wed Apr 21 01:15:17 1999 Organization: Nocturnal Aviation Lines: 23 Mime-Version: 1.0 NNTP-Posting-Host: 1cust211.tnt12.nyc3.da.uu.net Message-ID: <371D8903.D13E728C@earthlink.net> X-Mailer: Mozilla 4.51 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com mdruiter AT cs DOT vu DOT nl wrote: > > Todd Steury wrote: > > For > > exponents, I've written my equations as "a^b" to signify 'take a to the b > > power'. However, the compiler complains "invalid operands 'float' and > > 'double' to binary 'operator ^'". What is the proper mathematical operator > > for exponent? > > It is exp(a, b), type `info libc alph exp' on the command line to get info. > > (a ^ b) means (a xor b), being the bitwise exclusive or operator. > > Hope this helps, Michel. It won't. The function is pow(). exp() takes one argument, not two, and returns pow(e,x) where e is the usual 2.7.... The suggestion to type 'info libc a exp' is a good one, but it needs to be supplimented with the correct 'info libc a pow'. -- Martin Ambuhl (mambuhl AT earthlink DOT net) Note: mambuhl AT tiac DOT net will soon be inactive