Hp Prime Graphing Calculator Manual de usuario Pagina 536

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 608
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 535
532 Programming
DIM Syntax: dim (str)
Returns the number of characters in string str.
Example: dim("12345") returns 5, dim("""") and
dim("\n") return 1. (Notice the use of the two double
quotes and the escape sequence.)
STRING Syntax: string (object);
Returns a string representation of the object. The result
varies depending on the type of object.
string(2/3); results in the string 0.666666666667
Examples:
INSTRING Syntax: inString (str1,str2)
Returns the index of the first occurrence of str2 in str1.
Returns 0 if str2 is not present in str1. Note that the first
character in a string is position 1.
Examples:
inString("vanilla","van") returns 1.
inString ("banana","na") returns 3
inString("ab","abc") returns 0
LEFT Syntax: left (str,n)
Return the first n characters of string str. If or
, returns str. If n == 0 returns the empty string.
Example: left("MOMOGUMBO",3) returns "MOM"
String Result
string(F1), when F1(X)
= COS(X)
"COS(X)"
string(L1) when L1 =
{1,2,3}
"{1,2,3}"
string(M1) when M1 = "[[1,2,3],[4,5,6]]"
123
456
ndimstr
n 0
Vista de pagina 535
1 2 ... 531 532 533 534 535 536 537 538 539 540 541 ... 607 608

Comentarios a estos manuales

Sin comentarios