Statements and Functions

Total Page:16

File Type:pdf, Size:1020Kb

Statements and Functions Statements and Functions The following statments and functions are found in ALL versions of the True BASIC Programming Language: ORDINARY STATEMENTS AND STRUCTURES: PROGRAM END LET DO Loop Structure EXIT DO LOOP FOR Loop Structure EXIT FOR NEXT SELECT CASE Structure CASE IF IF Structure ELSEIF ELSE END IF END SELECT CASE ELSE OTHER STATEMENTS: ASK FREE MEMORY DIM PAUSE RANDOMIZE REM STOP FOR LINE-NUMBERED PROGRAMS: GOSUB ON GOSUB GOTO ON GOTO RETURN TO SET VARIOUS OPTIONS: OPTION ANGLE OPTION NOLET OPTION ARITHMETIC OPTION TYPO OPTION BASE OPTION USING OPTION COLLATE True BASIC Functions and Statements — 1 INPUT AND OUTPUT STATEMENTS: DATA INPUT LINE INPUT MAT INPUT MAT LINE INPUT MAT PRINT MAT READ PRINT READ RESTORE ASK MARGIN SET MARGIN ASK ZONEWIDTH SET ZONEWIDTH FILE STATEMENTS: CLOSE #n ERASE #n INPUT #n: LINE INPUT #n: OPEN #n: RESET #n: PRINT #n: FUNCTIONS AND SUBROUTINES: CALL DECLARE DEF (FUNCTION) DEF DEF Structure EXIT DEF END DEF EXTERNAL LIBRARY LOCAL SUB Structure EXIT SUB END SUB FUNCTION FUNCTION Structure EXIT FUNCTION END FUNCTION DECLARE NUMERIC DECLARE STRING DECLARE SUB CHAIN GRAPHICS AND SOUND STATEMENTS: BOX AREA BOX CIRCLE BOX CLEAR BOX DISK BOX ELLIPSE BOX KEEP BOX LINES True BASIC Functions and Statements — 2 BOX SHOW CLEAR DRAW SOUND FLOOD PICTURE Structure EXIT PICTURE END PICTURE PLAY PLOT PLOT AREA PLOT LINES PLOT POINTS PLOT TEXT SET WINDOW SET TEXT JUSTIFY ASK BACK ASK COLOR ASK COLOR MIX ASK CURSOR ASK DIRECTORY ASK MAX COLOR ASK MAX CURSOR ASK MODE ASK NAME ASK PIXELS ASK SCREEN ASK TEXT JUSTIFY ASK WINDOW BOX DISK GET KEY GET MOUSE GET POINT MAT PLOT MAT PLOT AREA MAT PLOT LINES MAT PLOT POINTS OPEN SCREEN SET BACK SET COLOR SET COLOR MIX SET CURSOR SET DIRECTORY SET MODE SET NAME WINDOW MAT Statements: MAT PRINT MAT Assignment MAT INPUT MAT LINE INPUT MAT REDIM MAT READ MAT WRITE MAT PLOT AREA MAT PLOT LINES MAT PLOT POINTS True BASIC Functions and Statements — 3 FILE Statements: ASK #n: ACCESS ASK #n: DATUM ASK #n: ERASABLE ASK #n: FILESIZE ASK #n: FILETYPE ASK #n: MARGIN ASK #n: NAME ASK #n: ORGANIZATION ASK #n: POINTER ASK #n: RECORD ASK #n: RECSIZE ASK #n: RECTYPE ASK #n: SETTER ASK #n: ZONEWIDTH MAT INPUT #n: MAT LINE INPUT #n: MAT PRINT #n: READ #n: SET #n: MARGIN SET #n: POINTER SET #n: RECORD SET #n: RECSIZE SET #n: ZONEWIDTH UNSAVE WRITE #n: MODULE Structures: MODULE Structure PRIVATE PUBLIC SHARE DECLARE PUBLIC END MODULE Exception Handling: CAUSE ERROR CAUSE EXCEPTION CONTINUE HANDLER END HANDLER EXIT HANDLER RETRY WHEN Structure USE END WHEN DEBUGGING STATEMENTS: BREAK DEBUG TRACE BUILT-IN SUBROUTINES: Clipboard ComLib ComOpen Divide True BASIC Functions and Statements — 4 Object PackB Read_Image System Sys_Event TBD UnpackB (a function, not a subroutine) Write_Image BUILT-IN FUNCTIONS: MATHEMATICAL FUNCTIONS Function Result ABS(x) Absolute value ACOS(x) Arccosine ANGLE(x,y) Angle between x-axis and (x,y) ASIN(x) Arcsine ATN(x) Arctangent CEIL(x) Ceiling (-INT(-x)) COS(x) Cosine COSH(x) Hyperbolic cosine COT(x) Cotangent CSC(x) Cosecant DEG(x) Translates radians to degrees EPS Smallest nonzero positive number EXP(x) Exponential function FP(x) Fractional part of x INT(x) Integer part IP(x) Greatest integer <= x LOG(x) Natural logarithm LOG10(x) Common logarithm (base 10) LOG2(x) Logarithm to the base 2 MAX(x,y) Larger of two numbers MAXNUM Largest positive number MIN(x,y) Smaller of two numbers MOD(x,y) Remainder when x is divided by y PI Value of pi RAD(x) Translates degrees to radians REMAINDER(x,y) Remainder of x divided by y RND Random number between 0 and 1 ROUND(x,n) Rounds x to n decimal places SEC(x) Secant SGN(x) Sign of x SIN(x) Sine SINH(x) Hyperbolic sine SQR(x) Square root TAN(x) Tangent TANH(x) Hyperbolic tangent TRUNCATE(x,n) Truncates x to n decimal places DATE AND TIME FUNCTIONS Function Result DATE Year and day of year as a number DATE$ Year, month, and day of month as a string TIME Seconds since midnight TIME$ 24-hour clock time as a string True BASIC Functions and Statements — 5 STRING TO NUMBER FUNCTIONS Function Result CHR$(x) Character represented by ASCII number x ORD(x$) Ordinal position of x$ in ASCII character set NUM(x$) Numeric value of IEEE 8-byte string NUM$(x) IEEE 8-byte equivalent of numeric value STR$(x) Changes number to a string VAL(x$) Changes string containing digits to a number STRING TRANSFORMING FUNCTIONS Function Result LCASE$(x$) Change letters to lowercase UCASE$(x$) Change letters to uppercase LTRIM$(x$) Remove leading blanks RTRIM$(x$) Remove trailing blanks TRIM$(x$) Remove leading & trailing blanks REPEAT$(x$,n) x$ repeated n times STRING SEARCH FUNCTIONS Function Result LEN(x$) Number of characters in x$ POS(x$,y$,n) First occurrence of y$ in x$ after character n POSR(x$,y$) Ditto POS but starting from the end CPOS(x$,y$) First occurrence in x$ of any character in y$ CPOSR(x$,y$) Ditto CPOS but starting from the end NCPOS(x$,y$) First occurrence in x$ of any character not in y$ NCPOSR(x$,y$) Ditto NCPOS but starting from the end ARRAY FUNCTIONS Function Result DET(a) Determinant of the square matrix a DOT(a,b) Dot product of vectors a and b LBOUND(a,n) Lower bound of dimension n for array a UBOUND(a,n) Upper bound of dimension n for array a SIZE(a,n) Number of element in dimension n of array a MAT FUNCTIONS (that can appear only in MAT assignment statements) Function Result CON Array of ones IDN Identity matrix INV(a) Inverse of array a NUL$ Array of empty strings TRN(a) Transpose of array a ZER Array of zeroes SILVER Edition has all the above, plus an additional 1,443 pre-written interface controls and additional subroutines in compiled form. GOLD Edition has all the above, plus an additional 3,117 pre-written interface controls and additional subroutines in both compiled form and most also in source code. True BASIC - http://www.truebasic.com True BASIC Functions and Statements — 6 32-1 True BASIC Functions 32 This chapter is organized alphabetically by function name. Function names that end with a dollar sign ($) are string-valued; that is, they yield values that are strings. The others are numeric-valued. The following functions are covered here: ABS END_POSTSCRIPT MAXSIZE SEC ACOS EPS MIN SGN ADD_POSTSCRIPT EXLINE MOD SIN ANGLE EXLINE$ NCPOS SINH ASIN EXP NCPOSR SIZE ATN EXTEXT$ NUL$ SQR BEGIN_POSTSCRIPT EXTYPE NUM STR$ CHR$ FP NUM$ TAB CEIL IDN ORD TAN CON INT PACKB TANH COS INV PEEK TIME COSH IP PI TIME$ COT LBOUND POKE TRIM$ CPOS LCASE$ POS TRN CPOSR LEN POSR TRUNCATE CSC LOG RAD UBOUND DATE LOG10 REMAINDER UCASE$ DATE$ LOG2 REPEAT$ UNPACKB DEG LTRIM$ RND USING$ DET MAX ROUND VAL DIVIDE MAXLEN RUNTIME ZER DOT MAXNUM RTRIM$ 32-2 PC Pro Version Reference Manual DIVIDE, ADD_POSTSCRIPT, BEGIN_POSTSCRIPT, END_POSTSCRIPT, PACKB, and POKE are subroutines rather than functions; they must be invoked with CALL statements. The MAT functions and constants (CON, IDN, INV, NUL$, TRN, and ZER) can appear only in MAT assignment statements. TAB can appear only in PRINT statements. The picture transformations (SHIFT, SCALE, ROTATE, and 32 SHEAR) can appear only in DRAW statements and are not included here. There are many additional functions available in libraries, and they are described in each library toolkit section. For some functions, certain values of their arguments may be illegal, causing a runtime error or exception. The programmer can use a WHEN structure (see Chapter 25) to “intercept” such errors and take corrective action. If no WHEN structure is present, the program will halt. We give the number of the exception (returned by the EXTYPE function) and the error message (returned by the EXTEXT$ function) for each function that can generate an exception. The evaluation of some functions may require additional memory that is not available. We have not included this exception (5000). Neither have we included exceptions that may arise from the evaluation of the arguments of the function, which are numeric or string expressions. See Chapter 29, for these errors. The accuracy of the trigonometric and transcendental functions is at least 10 decimals; that is, the absolute error should be less than 10^(-10) in absolute value. (The TAN and EXP functions are computed to an accuracy of 10 significant figures; that is, their relative error should be less than 10^(-10) in absolute value.) If your computer has an arithmetic coprocessor, the accuracy will be that provided by the coprocessor. In what follows, we use the following terms, which are defined in Chapters 28 & 29. numex numeric expression rnumex rounded numeric expression strex string expression redim array redimensioning expression arrayarg array argument (array name with optional bowlegs) True BASIC Functions 32-3 ABS Function ABS(numex) Returns the absolute value of the argument. ABS can be defined in terms of other True BASIC statements as follows: DEF ABS(x) 32 IF x<0 then LET ABS = -x ELSE LET ABS = x END IF END DEF ACOS Function ACOS(numex) Returns the value of the arccosine function. If OPTION ANGLE DEGREES is in effect, the result is given in degrees. If OPTION ANGLE RADIANS (default) is in effect, the result is given in radians. For example, ! For DEGREES ACOS(.5) is 60 ! For RADIANS ACOS(.5) is approx. 1.04720... ACOS may be defined in terms of other True BASIC functions as follows: DEF ACOS(x) = PI/2 - ASIN(x) Exception: 3007 ASIN or ACOS argument must be between 1 and -1.
Recommended publications
  • Basic: the Language That Started a Revolution
    TUTORIAL BASIC BASIC: THE LANGUAGE THAT TUTORIAL STARTED A REVOLUTION Explore the language that powered the rise of the microcomputer – JULIET KEMP including the BBC Micro, the Sinclair ZX80, the Commodore 64 et al. ike many of my generation, BASIC was the first John Kemeny, who spent time working on the WHY DO THIS? computer language I ever wrote. In my case, it Manhattan Project during WWII, and was inspired by • Learn the Python of was on a Sharp MZ-700 (integral tape drive, John von Neumann (as seen in Linux Voice 004), was its day L very snazzy) hooked up to my grandma’s old black chair of the Dartmouth Mathematics Department • Gain common ground with children of the 80s and white telly. For other people it was on a BBC from 1955 to 1967 (he was later president of the • Realise how easy we’ve Micro, or a Spectrum, or a Commodore. BASIC, college). One of his chief interests was in pioneering got it nowadays explicitly designed to make computers more computer use for ‘ordinary people’ – not just accessible to general users, has been around since mathematicians and physicists. He argued that all 1964, but it was the microcomputer boom of the late liberal arts students should have access to computing 1970s and early 1980s that made it so hugely popular. facilities, allowing them to understand at least a little And in various dialects and BASIC-influenced about how a computer operated and what it would do; languages (such as Visual Basic), it’s still around and not computer specialists, but generalists with active today.
    [Show full text]
  • John G. Kemeny Thomas E. Kurtz Bronze EDITION GUIDE for Windows and Macos BRONZE Edition Reference Manual
    The Original from the Inventors of BASIC John G. Kemeny Thomas E. Kurtz bronze EDITION GUIDE for Windows and MacOS BRONZE Edition Reference Manual bronze Edition Guide for the True BASIC Language System Copyright © 2002 by True BASIC Incorporated ISBN: 0-939553-39-2 All rights reserved. No part of this manual may be reproduced by any means, electronic, mechanical, or photocopying, without the prior written permission of True BASIC, Inc. Address any request for reprinting portions of any material contained in this documentation, listing the purpose of the reprint or citation, and the expected edition size of the publication to True BASIC as the address listed below. Trademarks and their owners: True BASIC: True BASIC, Inc.; IBM: International Business Machines; Apple Macintosh, MacOS: Apple Computer; MS-DOS, Windows, Windows95, Windows98: Microsoft. Published by: True BASIC, Inc. 1523 Maple Street Hartford, VT 05047-0501 USA MANUAL NUMBER: 7222/M 1-800 436-2111 US & Canada Sales Department 1-802 296-2711 International Orders 1-802 296-2715 Fax (24-hour availability) [email protected] Customer Support http://www.truebasic.com Website. Printed in the United States of America. 01/2002 3 Contents 1. An Introduction to Programming .................................................................. 9 2. Why True BASIC? .............................................................................................. 11 3. Installing True BASIC and Running Demo Programs .............................. 13 Installing the BRONZE Edition on Windows
    [Show full text]
  • Tbas MANUAL V. 1.0.Beta
    tbas MANUAL v. 1.0.beta by Antonio Maschio with the great great help of Tom Lake, Bruce Axtens and Ian Jones and some suggestions by Marcus Cruz ABSTRACT Welcome to the world of tbas! tbas is a powerful con- sole BASIC interpreter, with many statements and many func- tions, and with the most advanced features for console pro- gramming. This manual is not a BASIC primer; I assume you have the most common knowledge about programming; it’s more like a reference manual that helps in using correctly the various statements, functions and their options. Read also the tbas man page for other more general info and the installing instructions. Readers are encouraged to report all errors and inconsisten- cies (and all mistakes in the English sentences) found to ing dot antonio dot maschio at gmail dot com The tbas international team wants to thank you. 14 September 2019 -2- 1. Introduction tbas is a BASIC language interpreter (with an optional built-in interac- tive session) that reads textual files written in the BASIC language; files may be in any format - UNIX, DOS, Mac. Statements may be written in lower or upper or mixed case letters, since tbas is case insensitive. Line numbers are not necessary, and are required only either as labels for the GOTO/GOSUB jumps, or in the interactive session (option -i) or in case you have to run successively your program in a different num- bered-lines BASIC interpreter or compiler. It is completed with the famous MAT statements and a large math functions and operators set.
    [Show full text]
  • The Manual for True Basic Free Is Here
    Introduction Your True BASIC Free is identical to our powerful full-featured Language System and will run programs of any size. It only has two major limitations: • New or modified programs are limited to 250 lines. • The utilities used to create free-standing, double-click applications are not included. Otherwise, your True BASIC Free is identical to our other Lan- guage System versions. You are able to run programs of any size, use libraries and modules, and invoke DO programs. All the True BASIC statements and functions are included for your use. The current True BASIC Language System series consists of: True BASIC Free - MacOS and DOS versions with line limit True BASIC Student - MacOS and DOS with no line limits True BASIC Standard - MacOS & DOS with developer tools True BASIC BRONZE - MacOS, OS/2 and Windows versions True BASIC SILVER - MacOS, OS/2 and Windows versions The www.truebasic.com website lists features, specifications, and prices of each of these editions. First release - January 1999. © True BASIC Inc. All rights reserved. 1 Many of the concepts and operations described in this guide will be new to you. To make it easier for you to understand, we use the following style conventions to make clear the many new concepts you will encounter: Important new terms: words in bold type Variable names: words in italic True BASIC keywords: ALL CAPS Program listings: Code font Items to be typed by user: Code font Important concepts: x Bold type within lines Menus & menu commands: MENU font Names of programs: ALL CAPS Names of built-in functions: ALL CAPS This guide frequently refers to the True BASIC Bible.
    [Show full text]
  • Basic Programming Software for Mac
    Basic programming software for mac Chipmunk Basic is an interpreter for the BASIC Programming Language. It runs on multiple Chipmunk Basic for Mac OS X - (Version , Apr01). Learning to program your Mac is a great idea, and there are plenty of great (and mostly free) resources out there to help you learn coding. other BASIC compiler you may have used, whether for the Amiga, PC or Mac. PureBasic is a portable programming language which currently works Linux. KBasic is a powerful programming language, which is simply intuitive and easy to learn. It is a new programming language, a further BASIC dialect and is related. Objective-Basic is a powerful BASIC programming language for Mac, which is simply intuitive and fast easy to learn. It is related to Visual Basic. Swift is a new programming language created by Apple for building iOS and Mac apps. It's powerful and easy to use, even for beginners. QB64 isn't exactly pretty, but it's a dialect of QBasic, with mac, windows, a structured basic with limited variable scoping (subroutine or program-wide), I have compiled old QBasic code unmodified provided it didn't do file. BASIC for Linux(R), Mac(R) OS X and Windows(R). KBasic is a powerful programming language, which is simply intuitive and easy to learn. It is a new. the idea to make software available for everybody: a programming language Objective-Basic requires Mac OS X Lion ( or higher) and Xcode 4 ( or. BASIC is an easy to use version of BASIC designed to teach There is hope for kids to learn an amazing programming language.
    [Show full text]
  • BASIC Compiler
    6 Example: BASIC Compiler Program ®le for this chapter: basic The BASIC programming language was designed by John Kemeny and Thomas Kurtz in the late 1960s. (The name is an acronym for Beginner's All-purpose Symbolic Instruction Code.) It was ®rst implemented on a large, central computer facility at Dartmouth; the designers' goal was to have a language that all students could use for simple problems, in contrast to the arcane programming languages used by most experts at that time. A decade later, when the microcomputer was invented, BASIC took on a new importance. Kemeny and Kurtz designed a simple language for the sake of the users, but that simplicity also made the language easy for the computer! Every programming language requires a computer program to translate it into instructions that the computer can carry out. For example, the Logo programs you write are translated by a Logo interpreter. But Logo is a relatively complex language, and a Logo interpreter is a pretty big program. The ®rst microcomputers had only a few thousand bytes of memory. (Today's home computers, by contrast, have several million bytes.) Those early personal computers couldn't handle Logo, but it was possible to write a BASIC interpreter that would ®t them. As a result, BASIC became the near-universal language for amateur computer enthusiasts in the late 1970s and early 1980s. Today's personal computers come with translators for a wide variety of programming languages, and also with software packages that enable many people to accomplish their computing tasks without writing programs of their own at all.
    [Show full text]
  • About Basic for Ms-Dos
    TERNS A\C rO\D T O\S OF SA-! A+D .CEZSE OF TAhDV COMP-TER EO, PNEhT A40 SOF-;\AQF J.RCnASE3 F33V 7AC 0 SnACI( :3VPA\'-OhhED COVP-TER CEhTERS RETA j-?RE? A\? >A0 S SrAC< F9A\Cn SEES 'IR 2EA-E;IS AT TnE R A-TnOR ZEC -0CAT OhS LIMITED WARRANTY CUSTOMER OBLIGATIONS A CUSTOMER assumes full responsibility that this computer hardware purchased (the Equipment and any copies of software included with the Equipment or licensed se arately (the Software ) meets the specifications capacity capabilities versatility and other requirements of CUETOMER 6 CUSTOMER assumes full responsibility lor the condAon and effectiveness of the operating environment in whlch toe Equipment and Software are to function and lor its installation LIMITED WARRANTIES AND CONDITIONS OF SALE A For a period of ninety (901 calendar days lrom the date of the Radio Shack sales document received upon purchase of the Equipment RADIO SHACK warrants to the original CUSTOMER that the Equipment and the medium upon which the Software is stored is free from manufacturing defects This warranty is only applicable lo purchases of Tandy Equipment by the original customer from Radlo Shack company-owned computer cenlers retail stores, and Radlo Shack franchisees and dealers at their aulhorlzed locations The warrantv is 111. 6 9ADIO SPACK sha I not be liable for any damages caused by delay in delivering or furnishing Equipment and or Softviare C No actio1 ar sin out of any claimed breach of this Warranty or transactions under this Warranty may be brought rr'ore than two 92) years after the cause of action has accrued or more than four (4) years after the date of the Radio Shack sales document for the Equlpment or Software whichever first occurs D Sore states do not a1 ow the imitat on or exclusion of incidental or coiseouential damages so the above imitationis) or exclusionls) may lot apply to CUSTOMER IV.
    [Show full text]
  • Bax58c Is a Program That Compiles Basic Programs to Generate Programs for the TI58C Emulator
    Bax58C is a program that compiles Basic programs to generate programs for the TI58C emulator. © 2011 Pierre Houbert (13/11/2020) Page 1 SUMMARY Presentation ................................................................ 4 The compilation ............................................................. 6 Using the program ............................................ 8 Basic language ........................................................... 10 • <étiquette > 11 • CALL ( statement ) 12 • CHAIN ( statement ) 13 • CLEAR ( statement ) 14 • CLS ( statement ) 15 • DIM ( statement ) 16 • DO ( statement ) 17 • END ( statement ) 18 • FOR ( statement ) 19 • GOSUB ( statement ) 20 • GOTO ( statement ) 21 • IF ( statement ) 22 • INPUT ( statement ) 23 • LET ( statement ) 24 • ON ( statement ) 25 • PRINT ( statement ) 26 • PRINT TAB ( statement ) 27 • PRINT USING ( statement ) 28 • REM ( statement ) 29 • RETURN ( statement ) 30 • SET ( statement ) 31 • SLEEP ( statement ) 32 • SOUND ( statement ) 33 • STOP ( statement ) 34 • SWAP ( statement ) 35 • ABS (...) (function) 36 • ASC (...) (function) 36 • ATN (...) (function) 36 • CHR (...) (function) 36 • COS (...) (function) 36 © 2011 Pierre Houbert (13/11/2020) Page 2 • EXP (...) (function) 36 • FRAC (...) (function) 36 • INT (...) (function) 36 • LOG (...) (function) 36 • RND(...) (function) 36 • SGN (...) (function) 36 • SIN (...) (function) 36 • SQR (...) (function) 36 • TAN (...) (function) 36 • INKEY ( variable ) 37 • DATE (...) (variable) 38 • TIME (...) (variable) 39 • PI (constant) 40 Languages
    [Show full text]
  • Gfa BASIC for Atari ST)
    TOTALLY BASIC A Reference, Cross-Reference and Substitution Guide. Covering over two dozen subsets on nearly a dozen platforms from A to ZOrder. Direct support for: AMIGA: Amiga Basic, Hi Soft BASIC and True BASIC. Apple II: Integer BASIC and Apple Soft BASIC. Atari 8 bit: Atari XL BASIC. Atari ST. ST BASIC 1.0/2.0, Hi Soft BASIC, BBC BASIC, FAST BASIC and GfA BASIC. Commodore 8 bit: PET, C-64 BASIC and C-128 BASIC. CP/M: MBASIC and ABASIC. Macintosh: MS BASIC, Z BASIC, Future BASIC, VIP BASIC and True BASIC. Mainframes: ANSI Minimal BASIC. PC DOS: Business BASIC II. BASICA, IBM BASIC, MS BASIC, GW BASIC, QBASIC, Quick BASIC, Turbo BASIC, Power BASIC, True Basic, Microsoft Professional Development Basic 7.0 and Visual BASIC. PC Windows: CA REALIZER, Visual BASIC 1 through 6 Professional. Psion: OPL. Tandy/Radio Shack: TRS-80 BASIC, Color Computer BASIC and Tandy BASIC for PC. Timex - Sinclair: 100 BASIC. Spectrum Color BASIC. VAX: DCL BASIC. Copyright © 2003 by Earl R. Dingman. All Rights Reserved. TOTALLY BASIC: A Reference ©1989-2003 Earl R. Dingman ACOS() (GfA BASIC 3.0 for Atari ST, True BASIC for Amiga, Macintosh, PC and Unix) Provides the Arc COSine for the value placed inside the parentheses. Syntax: PRINT ACOS(n) or X = ACOS(n) Substitutions: Generally use a DEF FN or DEFFN function: DEF FNACOS(n) = ATN(n / SQR(-n * n+1)) + 1.5708 Then you would use the created function in the program: FNACOS(n). Also see: DEF FN and DEFFN plus OPTION ANGLE ACS SUBSTITUTION FACTOR: Excellent PORTABILITY: None ACS (Timex/Sinclair BASIC) Returns the Arc CoSine of a value in radians.
    [Show full text]
  • The Language List - Version 2.4, January 23, 1995
    The Language List - Version 2.4, January 23, 1995 Collected information on about 2350 computer languages, past and present. Available online as: http://cui_www.unige.ch/langlist ftp://wuarchive.wustl.edu/doc/misc/lang-list.txt Maintained by: Bill Kinnersley Computer Science Department University of Kansas Lawrence, KS 66045 [email protected] Started Mar 7, 1991 by Tom Rombouts <[email protected]> This document is intended to become one of the longest lists of computer programming languages ever assembled (or compiled). Its purpose is not to be a definitive scholarly work, but rather to collect and provide the best information that we can in a timely fashion. Its accuracy and completeness depends on the readers of Usenet, so if you know about something that should be added, please help us out. Hundreds of netters have already contributed to this effort. We hope that this list will continue to evolve as a useful resource available to everyone on the net with an interest in programming languages. "YOU LEFT OUT LANGUAGE ___!" If you have information about a language that is not on this list, please e-mail the relevant details to the current maintainer, as shown above. If you can cite a published reference to the language, that will help in determining authenticity. What Languages Should Be Included The "Published" Rule - A language should be "published" to be included in this list. There is no precise criterion here, but for example a language devised solely for the compiler course you're taking doesn't count. Even a language that is the topic of a PhD thesis might not necessarily be included.
    [Show full text]
  • True BASIC by Alan Patterson) CONTENTS
    Computing Software Development [INTERMEDIATE 2] David Bethune (Adapted for True BASIC by Alan Patterson) CONTENTS Acknowledgements Alan Patterson acknowledges that he has only changed the original work by David Bethune where it was necessary to convert any references to Visual Basic into the equivalent for True BASIC. Every effort has been made to secure all copyright permissions prior to publication. The publishers will be pleased to rectify any inadvertent omissions at the earliest opportunity. Learning and Teaching Scotland gratefully acknowledge this contribution to the National Qualifications support programme for Computing. First published 2004 © Learning and Teaching Scotland 2004 This publication may be reproduced in whole or in part for educational purposes by educational establishments in Scotland provided that no profit accrues at any stage. SOFTWARE DEVELOPMENT (INT 2, COMPUTING ii INTRODUCTION Contents INTRODUCTION ................................................................................................ 3 Tutor guide 3 Student guide 4 SECTION 1 ........................................................................................................ 5 1.1 Software 5 1.2 The development process 6 1.3 A dance in the dark every Monday 8 1.4 Analysis 10 1.5 Design 11 1.6 Implementation 12 1.7 Testing 12 1.8 Documentation 13 1.9 Evaluation 13 1.10 Maintenance 14 SECTION 2 ...................................................................................................... 15 2.1 Computer languages 15 2.2 High and low level
    [Show full text]
  • Apple III Business BASIC Reference Manual Volum
    Apple Business BASIC Reference Manual - Volume 1 Notice Apple Computer reserves the right to make improvements in the product described in this manual at any time and without notice. Disclaimer of All Warranties And Liabilities Apple Computer makes no warranties, either express or implied, with respect to this manual or with respect to the software described in this manual, its . quality, performance, merchantability, or fitness for any particular purpose. Apple Computer software is sold or licensed "as is:· The entire risk as to its quality and performance is with the buyer. Should the programs prove defective following their purchase, the buyer (and not Apple Computer, its distributor, or its retailer) assumes the entire cost of all necessary servicing, repair, or correction and any incidental or consequential damages. In no event will Apple Computer be liable for direct, indirect, incidental, or consequential damages resulting from any defect in the software, even if Apple Computer has been advised of the possibility of such damages. Some states do not allow the exclusion or limitation.of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This manual is copyrighted. All rights are reserved. This document may not, in whole or part, be copied, photocopied, reproduced, translated or redu.ced to any electronic medium or machine readable form without prior consent, in writing, from Apple Computer. © 1981 by Apple Computer 10260 Bandley Drive Cupertino, California
    [Show full text]