參數(shù)資料
型號: NSB8
廠商: Electronic Theatre Controls, Inc.
英文描述: BASIC interpreter for Z80 family
中文描述: Z80的BASIC解釋為家庭
文件頁數(shù): 73/158頁
文件大?。?/td> 752K
代理商: NSB8
ITALIAN TECHNOLOGY
grifo
Page 61
NSB8 Rel. 5.10
FUNCTIONS
BUILT IN FUNCTIONS
When you want to compute the cosine or the square root of a number within your program, how can
you do this Of course, it’s always possible to write a subroutine in BASIC to compute the cosine
or square root of an arbitrary number, but doing so consumes your time, is likely to slow down your
program if the particular computation is needed often, and certainly enlarges the program.
BASIC inludes built-in functions, two of which handle cosine and square root calculations,
respectively. The other available built-in functions compute many different values, both numeric
and string, which programmers often need, and whose availability makes the task of writing efficient
programs easier.
When writing a program, if you need the cosine of 0, write COS(0). If you want the square root of
9, use SQRT(9). The function can be used in a program wherever the actual number can. COS(0)
stands for (and can be used in place of) the number 1. Writing SQRT(9) is the same as writing 3.
ARGUMENTS
The value in parentheses in a function call is called an argument to the function. The function will
use the value(s) of the specified argument(s) to generate the function value. SQRT(4), for example,
uses the numeric value 4 to generate its square root, 2.
All functions in
NSB8
require at least one argument, and some may require more. If a function
requires more than one argument, it will expect them to be separated by commas to form an argument
list within the parentheses.
Expressions can be used as arguments. COS(2*7) represents the same number as COS(14). If the
variable A contains the number 14, then COS(A) also is the same as COS(14).
Functions can be used in expressions. Thus, the statement
A=2*SQRT(100)
would put the value of 20 in A.
Because expressions can be arguments, and functions can be expressions, functions can be used as
arguments. COS(SQRT(100)/10-1) is the same as COS(0).
You must supply functions with the exact number and types of arguments they require, in exactly
the order required, or else when the program runs and the erroneous function call is found, BASIC
will halt execution and complain of a SYNTAX ERROR. Such an error will occur, for example, if
you attempt to use SQRT(“HI”) in a program or direct statement. The SQRT function wants a
numeric argument, and “HI” is a string (see section USING STRINGS). COS(2,3) causes a
SYNTAX ERROR because the COS function wants only one numeric argument.
The following pages contain a list and description of all the functions built into
NSB8
. Each function
description includes the name of the function, the order of expected arguments, as well as the type
(numeric or string) and purpose of each. A short section describes the value represented by the
function as well as how the arguments relate to that value.
相關(guān)PDF資料
PDF描述
NSB9435T1 High Current Bias Resistor Transistors(高強(qiáng)度電流偏置電阻晶體管)
NSBA114EDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBA114YDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBC143TPDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBC144EPDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
NSB8AT 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Glass Passivated General Purpose Plastic Rectifier
NSB8AT/31 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel
NSB8AT/45 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel
NSB8AT/81 功能描述:二極管 - 通用,功率,開關(guān) 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:STMicroelectronics 產(chǎn)品:Switching Diodes 峰值反向電壓:600 V 正向連續(xù)電流:200 A 最大浪涌電流:800 A 配置: 恢復(fù)時間:2000 ns 正向電壓下降:1.25 V 最大反向漏泄電流:300 uA 最大功率耗散: 工作溫度范圍: 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:ISOTOP 封裝:Tube
NSB8AT-E3/31 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel