home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SDN¹ Plus
/
SDN1_.cdr
/
sdn
/
lang
/
realfun.sda
< prev
next >
Wrap
Text File
|
1992-04-13
|
2KB
|
35 lines
REALFUN MATH LIBRARY Registration (docs)
LANG FEB92 MATH LIBRARY QUICK BASIC QBASIC PROGRAMMING
FILES realfun.sdn
One of the nice things about BASIC is that it's an
easy language to learn and use, especially in the QuickBASIC
environment. However, this ease of use comes at the expense
of programming power. As it is packaged, QuickBASIC just
doesn't have the same number-crunching capability as FORTRAN,
for example. In much of my personal programming, I wanted to
use functions, like hyperbolic trigonometric functions, that
were available in FORTRAN. The essential pieces were there
(arithmetic operators and the EXP function), but not in the
forms I wanted. So I set out to create a set of libraries
that would contain all the functions I'd ever want to use,
and then some.
Along the way, I realized that some of the intrinsic
functions in QuickBASIC don't quite function the way I'd
like. For example, the modulo function (MOD) only returns
integers, which is not helpful if you're trying to find 1000
mod 3.14159. The arctangent function (ATN) only takes one
argument, so you can't tell what quadrant your angle is in.
Specifically, if the sides of your angle are x and y, with x
= -1 and y = -1, ATN(y/x) will give you the same result as it
would if x and y were both 1. And of course, QuickBASIC does
not handle complex numbers (as such). This package is a
compilation of my efforts to make QuickBASIC more powerful
and more productive. I hope you find it useful.
_____________________________________________________________
(SDA Format (c)Copyright 1992 The SDN Project - SDNet/Works!)
_____________________________________________________________
_____________________________________________________________