Functions | |
id | m () |
!assert (all(m==(3:-1:2))) | |
!assert (all(m==(3:-1:2)')) | |
id | a () |
!assert ([a-1], 1) | |
!fail ("[m ']") | |
all([3 2]==(3:-1:2 | assert () |
!assert (all([m(1)]==(3:-1:1))) | |
!assert ([m(1)], 3) | |
!assert (all([a-1]==(1:-2:-1))) | |
"query","Octave:str-to-num" | warning () |
!warning ("off","Octave:str-to-num") | |
!assert ("d"+0, 100) | |
!warning (wsn.state,"Octave:str-to-num") | |
!warning ("on","Octave:str-to-num") | |
!fail ("'d' + 0","warning") | |
!warning ("off","Ocave:imag-to-real") | |
!assert (eye(1+i), 1) | |
!warning (wir.state,"Ocave:imag-to-real") | |
!warning ("on","Ocave:imag-to-real") | |
!fail ("eye (1+i)","warning") | |
!warning ("off","Octave:resize-on-range-error") | |
!a (2) | |
a (3) | |
!assert (all(a==[0, 1, 2])) | |
!warning (wrre.state,"Octave:resize-on-range-error") | |
!a (1) | |
a (2) | |
!assert (all(a==[1, 2])) | |
id | print_answer_id_name () |
!print_answer_id_name (0) | |
!print_answer_id_name (1) | |
id | print_empty_dimensions () |
!print_empty_dimensions (0) | |
!assert (!isempty(findstr(b{1},"[]"))) | |
!assert (isempty(findstr(b{1},"[](0x0)"))) | |
!print_empty_dimensions (ped) | |
!print_empty_dimensions (1) | |
!assert (!isempty(findstr(b{1},"[](0x0)"))) | |
0, 1 | zeros () |
id | save_precision () |
!save_precision (1) | |
!save ("-text", nm,"x") | |
!load (nm) | |
!unlink (nm) | |
!assert (x, 3) | |
!save_precision (sp) | |
!save_precision (5) | |
!assert (x, 3.1416) | |
id | silent_functions () |
!silent_functions (0) | |
Variables | |
!clear | a |
!a | |
!b = type ("-q", "a") | |
!x = pi | |
!nm = tmpnam() | |
!clear | x |
!a | ( | 1 | ) |
!a | ( | 2 | ) |
!assert | ( | x | , | |
3. | 1416 | |||
) |
!assert | ( | x | , | |
3 | ||||
) |
!assert | ( | ! | isemptyfindstr(b{1},"[](0x0)") | ) |
!assert | ( | isempty(findstr(b{1},"[](0x0)")) | ) |
!assert | ( | ! | isemptyfindstr(b{1},"[]") | ) |
!assert | ( | all(a==[1, 2]) | ) |
!assert | ( | all(a==[0, 1, 2]) | ) |
!assert | ( | eye(1+i) | , | |
1 | ||||
) |
!assert | ( | "d"+ | 0, | |
100 | ||||
) |
!assert | ( | all([a-1]==(1:-2:-1)) | ) |
!assert | ( | 3 | ) |
!assert | ( | all([m(1)]==(3:-1:1)) | ) |
!assert | ( | 1 | ) |
!assert | ( | all(m==(3:-1:2)') | ) |
!assert | ( | all(m==(3:-1:2)) | ) |
!fail | ( | "eye (1+i)" | , | |
"warning" | ||||
) |
!fail | ( | "'d' + 0" | , | |
"warning" | ||||
) |
!fail | ( | "" | [m '] | ) |
!load | ( | nm | ) |
!print_answer_id_name | ( | 1 | ) |
!print_answer_id_name | ( | 0 | ) |
!print_empty_dimensions | ( | 1 | ) |
!print_empty_dimensions | ( | ped | ) |
!print_empty_dimensions | ( | 0 | ) |
!save | ( | "-text" | , | |
nm | , | |||
"x" | ||||
) |
!save_precision | ( | 5 | ) |
!save_precision | ( | sp | ) |
!save_precision | ( | 1 | ) |
!silent_functions | ( | 0 | ) |
!unlink | ( | nm | ) |
!warning | ( | "on" | , | |
"Ocave:imag-to-real" | ||||
) |
!warning | ( | wir. | state, | |
"Ocave:imag-to-real" | ||||
) |
!warning | ( | "off" | , | |
"Ocave:imag-to-real" | ||||
) |
a | ( | 2 | ) |
a | ( | 3 | ) |
id a | ( | ) | [virtual] |
all ([3 2] == (3:-1:2 assert | ( | ) | [virtual] |
id m | ( | ) | [virtual] |
id print_answer_id_name | ( | ) | [virtual] |
id print_empty_dimensions | ( | ) | [virtual] |
id save_precision | ( | ) | [virtual] |
id silent_functions | ( | ) | [virtual] |
0, 1 zeros | ( | ) | [virtual] |
!a |
Initial value:
1 %! print_answer_id_name (pid)
!b = type ("-q", "a") |
!nm = tmpnam() |
!x = pi |
! clear a |
! clear x |