Texas Instruments NS/CLM/1L1/B Reference Guide - Page 73

Important

Page 73 highlights

right( ) right(sourceString[, Num]) ⇒ string Returns the rightmost Num characters contained in character string sourceString. If you omit Num, returns all of sourceString. right(Comparison) ⇒ expression Returns the right side of an equation or inequality. Catalog > root() root(Value) ⇒ root root(Value1, Value2) ⇒ root root(Value) returns the square root of Value. root(Value1, Value2) returns the Value2 root of Value1. Value1 can be a real or complex floating point constant or an integer or complex rational constant. Note: See also Nth root template, page 1. Catalog > rotate() rotate(Integer1[,#ofRotations]) ⇒ integer In Bin base mode: Rotates the bits in a binary integer. You can enter Integer1 in any number base; it is converted automatically to a signed, 64-bit binary form. If the magnitude of Integer1 is too large for this form, a symmetric modulo operation brings it within the range. Catalog > £ ¡ ¢ To see the entire result, press and then use and to move the cursor. If #ofRotations is positive, the rotation is to the left. If #ofRotations In Hex base mode: is negative, the rotation is to the right. The default is ë1 (rotate right one bit). For example, in a right rotation: Each bit rotates right. 0b00000000000001111010110000110101 Important: To enter a binary or hexadecimal number, always use the 0b or 0h prefix (zero, not the letter O). Rightmost bit rotates to leftmost. produces: 0b10000000000000111101011000011010 The result is displayed according to the Base mode. rotate(List1[,#ofRotations]) ⇒ list In Dec base mode: Returns a copy of List1 rotated right or left by #of Rotations elements. Does not alter List1. If #ofRotations is positive, the rotation is to the left. If #of Rotations is negative, the rotation is to the right. The default is ë1 (rotate right one element). rotate(String1[,#ofRotations]) ⇒ string Returns a copy of String1 rotated right or left by #ofRotations characters. Does not alter String1. If #ofRotations is positive, the rotation is to the left. If #ofRotations is negative, the rotation is to the right. The default is ë1 (rotate right one character). TI-Nspire™ Reference Guide 67

  • 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
  • 129
  • 130

TI-Nspire™ Reference Guide
67
right(
sourceString
[
,
Num
]
)
string
Returns the rightmost
Num
characters contained in character string
sourceString
.
If you omit
Num
, returns all of
sourceString
.
right(
Comparison
)
expression
Returns the right side of an equation or inequality.
root()
Catalog >
root(
Value
)
root
root(
Value1
,
Value2
)
root
root(
Value
)
returns the square root of
Value
.
root(
Value1
,
Value2
)
returns the
Value2
root of
Value1
.
Value1
can be a real or complex floating point constant or an integer or
complex rational constant.
Note:
See also
Nth root template
, page 1.
rotate()
Catalog >
rotate(
Integer1
[
,
#ofRotations
]
)
integer
Rotates the bits in a binary integer. You can enter
Integer1
in any
number base; it is converted automatically to a signed, 64-bit binary
form. If the magnitude of
Integer1
is too large for this form, a
symmetric modulo operation brings it within the range.
In Bin base mode:
To see the entire result, press
£
and then use
¡
and
¢
to
move the cursor.
If
#ofRotations
is positive, the rotation is to the left. If
#ofRotations
is negative, the rotation is to the right. The default is
ë
1 (rotate right
one bit).
For example, in a right rotation:
In Hex base mode:
Each bit rotates right.
0b00000000000001111010110000110101
Rightmost bit rotates to leftmost.
produces:
0b10000000000000111101011000011010
The result is displayed according to the Base mode.
Important:
To enter a binary or hexadecimal number, always
use the 0b or 0h prefix (zero, not the letter O).
rotate(
List1
[
,
#ofRotations
]
)
list
Returns a copy of
List1
rotated right or left by
#of Rotations
elements. Does not alter
List1
.
If
#ofRotations
is positive, the rotation is to the left. If
#of Rotations
is negative, the rotation is to the right. The default is
ë
1 (rotate right
one element).
In Dec base mode:
rotate(
String1
[
,
#ofRotations
]
)
string
Returns a copy of
String1
rotated right or left by
#ofRotations
characters. Does not alter
String1
.
If
#ofRotations
is positive, the rotation is to the left. If
#ofRotations
is negative, the rotation is to the right. The default is
ë
1 (rotate right
one character).
right()
Catalog >