music
OSdata.com: programming text book 

OSdata.com

trigonometric functions

summary

    This subchapter looks at trigonometric fucntions.

free computer programming text book project

table of contents
If you like the idea of this project,
then please donate some money.
more information on donating

Google

stub section

    This subchapter is a stub section. It will be filled in with instructional material later. For now it serves the purpose of a place holder for the order of instruction.

    Professors are invited to give feedback on both the proposed contents and the propsed order of this text book. Send commentary to Milo, PO Box 1361, Tustin, California, 92781, USA.

trigonometric functions

    This subchapter looks at trigonometric functions.

    Note that all other trignometric functions can be derived from just the three functions sine, cosine, and arc tangent. Some programming languages, such as ALGOL and Pascal, use this to simplify the construction of a compiler for the programming language.

ALGOL    sine(E) — ALGOL-60 library function that returns the sine of an expression.
BASIC    SIN(x) — BASIC library function that returns the sine of an expression.

ALGOL    cos(E) — ALGOL-60 library function that returns the cosine of an expression.
BASIC    COS(x) — BASIC library function that returns the cosine of an expression. The expression is in radians.
Pascal    cos(x) — Pascal standard function that returns the REAL cosine of an argument x expressed in radians.

BASIC    TAN(x) — BASIC library function that returns the tangent of an expression. The expression is in radians.

ALGOL    arctan(E) — ALGOL-60 library function that returns the arc tangent of an expression.
BASIC    ATN(x) — BASIC library function that returns the arc tangent of an expression.
LISP    ATAN(x) — LISP function (ATAN Y X) that takes two arguments of type float or fix and returns the arc tangent of y/x in the quadrant determined by the signs of x and y. The value of ATAN is an angle θ such that y = r sin(θ) and x = r cos(θ) for some r. The result is undefined if both x and y are zero.
Pascal    arctan(x) — Pascal standard function that returns the REAL arc tangent of an argument x expressed in radians.

BASIC    ACS(x) — BASIC library function that returns the arc cosine of an expression. The expression is in radians (57 degrees approximately = 1 radian). The Sinclair ZX80 uses ARCOS and the SHARP 1211 (TRS-80 Pocket Computer) uses AC.
BASIC    ACSD(x) — BASIC library function for some forms of BASIC that returns the arc cosine of an expression. The expression is in degrees.
BASIC    ACSG(x) — BASIC library function for some forms of BASIC that returns the arc cosine of an expression. The expression is in grads (110 grads = 90 degrees).
PL/I    ACOS(x) — Pl/I built-in function that returns the arc cosine (angle in radians whose cosine is) of a variable or expression.

Ada

    “42.1/2 The predefined standard library packages provide facilities such as string manipulation, containers of various kinds (vectors, lists, maps, etc.), mathematical functions, random number generation, and access to the execution environment.” —:Ada-Europe’s Ada Reference Manual: Introduction: Language Summary See legal information


free music player coding example

    Coding example: I am making heavily documented and explained open source code for a method to play music for free — almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).

    View music player in action: www.musicinpublic.com/.

    Create your own copy from the original source code/ (presented for learning programming).


return to table of contents
free downloadable college text book

view text book
HTML file

Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.

previous page next page
previous page next page

free computer programming text book project

Building a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming.

If you like the idea of this project,
then please donate some money.

send donations to:
Milo
PO Box 1361
Tustin, California 92781

Supporting the entire project:

    If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church)

more information on donating

Some or all of the material on this web page appears in the
free downloadable college text book on computer programming.


Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2010 Milo

    Created: October 31, 2010

    Last Updated: December 13, 2010


return to table of contents
free downloadable college text book

previous page next page
previous page next page