Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,7 @@
MODE ℵ SIMPLEOUT = UNION (≮INT≯, ≮REAL≯, ≮COMPL≯, BOOL, ≮BITS≯, CHAR, [ ] CHAR);
PROC cos = ( REAL x) REAL: ¢ a real value close to the cosine of 'x' ¢;
PROC complex cos = ( COMPL z) COMPL: ¢ a complex value close to the cosine of 'z' ¢;
PROC arccos = ( REAL x) REAL: ¢ if ABS x ≤ 1, a real value close
to the inverse cosine of 'x', 0 ≤ arccos (x) ≤ pi ¢;

View file

@ -0,0 +1,6 @@
PROC long long cos = (LONG LONG REAL x) LONG LONG REAL: ¢ a real value close to the cosine of 'x' ¢;
PROC long long complex cos = (LONG LONG COMPL z) LONG LONG COMPL: ¢ a complex value close to the cosine of 'z' ¢;
PROC long long arccos = (LONG LONG REAL x) LONG LONG REAL: ¢ if ABS x ≤ 1, a real value close
to the inverse cosine of 'x', 0 ≤ arccos (x) ≤ pi ¢;

View file

@ -0,0 +1,8 @@
'pr' quote 'pr'
'mode' 'xint' = 'int';
'xint' sum sq:=0;
'for' i 'while'
sum sq≠70×70
'do'
sum sq+:=i↑2
'od'

View file

@ -0,0 +1,8 @@
.PR UPPER .PR
MODE XINT = INT;
XINT sum sq:=0;
FOR i WHILE
sum sq/=70*70
DO
sum sq+:=i**2
OD

View file

@ -0,0 +1,8 @@
.PR POINT .PR
.MODE .XINT = .INT;
.XINT SUM SQ:=0;
.FOR I .WHILE
SUM SQ .NE 70*70
.DO
SUM SQ .PLUSAB I .UP 2
.OD

View file

@ -0,0 +1,8 @@
.PR RES .PR
mode .xint = int;
.xint sum sq:=0;
for i while
sum sq≠70×70
do
sum sq+:=i↑2
od