From: mdruiter AT cs DOT vu DOT nl Newsgroups: comp.os.msdos.djgpp Subject: Re: how to write exponents? Date: Wed, 21 Apr 99 9:47:33 Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Lines: 12 Message-ID: <7fjvql$4ck@cs.vu.nl> References: NNTP-Posting-Host: galjas.cs.vu.nl X-Sender: mdruiter AT cs DOT vu DOT nl User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (SunOS/5.5.1 (sun4u)) X-Poster-Key: sha1:MxFmztIK7sUiVu2p8QuPMc2wfoo= Cancel-Lock: sha1:jcPOZmt4sBJzYB2HyslDyCwYQwc= To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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.