| |||||||||||||||
|
|
![]() Predefine Functions Some mathematical functions, for example, square root and tangent, are used so frequently that they have been incorporated into the BASIC language as predefine functions. You can use these to compute the same mathematical function with many different values. Rather than writing the coding required to do each calculation, you may use the "function" capability of the BASIC language. For example:
This will cause the computer to calculate the square root of 36 and assign that value to X. Table 2-4 shows a list of some of these predefine mathematical functions.Table 2-4.—Predefined Functions
FUNDAMENTAL CONCEPTS Up to this point, we have been discussing the mechanics of the BASIC programming language. We will now discuss fundamental concepts and how you use these in your interaction with the computer in keying in and running your programs. This will include more about statement numbers, spacing within statements, keying statements into the computer, methods of correcting mistakes, how the computer responds when your program contains a syntax error, and the use of the REMARK statement. |
|
Privacy Statement - Press Release - Copyright Information. - Contact Us - Support Integrated Publishing |