Sharp OZ-707 Operation Manual - Page 21

Concepts And, Terms Of Basic

Page 21 highlights

When calculated in succession, the result of 4/3 is obtained internally in 24 digits and is used for calculation and then rounded. When calculated independently, the displayed value (20 digits) is used for the calculation. Errors due to Function Determining Algorithms The Card uses a variety of algorithms to calculate the values of functions, such as power and trigonometric functions. When . calculations use such functions, an additional source of error IS introduced. This error factor increases with the number of functions used in the calculation. The actual error for each function varies according to the values used and is greatest around singularities and inflection points {e.g., when an angle approaches 90 degrees, the tangent approaches infinity}. 2. CONCEPTS AND TERMS OF BASIC In this chapter we will examine some concepts and terms of the BASIC language. String Constants In addition to numbers, there are many ways that the Card uses letters and special symbols. These letters, numbers, and special symbols are called characters. In BASIC, a collection of characters is called a string. In order for the Card to tell the difference between a string and other parts of a program, such as commands or variable names, you must enclose the characters of the string in quotation marks ("). The following are examples of string constants: "HELLO" "Goodbye" "SHARP BASIC CARD" The following are not valid string constants: "ORGANIZER No ending quote "VALUE OF "AnIS" Quote cannot be used within a string 30 31

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

When calculated in succession, the result of 4/3 is obtained internally
in 24 digits and is used for calculation and then rounded.
When calculated independently, the displayed value (20 digits) is used
for the calculation.
Errors due to Function Determining Algorithms
The Card uses a variety of algorithms to calculate the values of
functions, such as power and trigonometric functions. When .
calculations use such functions, an additional source of error
IS
introduced. This error factor increases with the number of functions
used
in
the calculation. The actual error for each function varies
according to the values used and is greatest around singularities and
inflection points {e.g., when
an
angle approaches 90 degrees, the
tangent approaches infinity}.
30
2.
CONCEPTS AND
TERMS OF BASIC
In this chapter we will examine some concepts and terms of the BASIC
language.
String Constants
In addition to numbers, there
are
many ways that the Card uses letters
and special symbols. These letters, numbers, and special symbols are
called characters.
In BASIC, a collection of characters is called a string.
In
order for the
Card to tell the difference between a string and other parts of a
program, such as commands or variable names, you must enclose the
characters of the string in quotation marks (").
The following are examples of string constants:
"HELLO"
"Goodbye"
"SHARP BASIC CARD"
The following are not valid string constants:
"ORGANIZER
"VALUE OF
"AnIS"
No ending quote
Quote cannot be used within a string
31