Skip to content

Commit

Permalink
pseudo
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 26, 2022
1 parent 8a9a7ad commit 9487007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ \subsection{Bool}
QQ.txt.sprintf
"Coin toss: %s"
if.
random.gte 0.5
QQ.math.random.pseudo.gte 0.5
"heads"
"tail"
\end{ffcode}
Expand All @@ -177,7 +177,7 @@ \subsection{Bool}

\begin{ffcode}
while.
random.gte 0.1
QQ.math.random.pseudo.gte 0.1
[i]
QQ.io.stdout > @
QQ.txt.sprintf
Expand Down Expand Up @@ -387,7 +387,7 @@ \section{Math}\label{sec:math}
Here we define objects that represent math functions and algorithms.
All objects in this Section belong to \ff{QQ.math} package.

The object \adeff{random} is a abstraction of a random \ff{float} between zero and one inclusively.
The object \deff{random} is a abstraction of a random \ff{float} between zero and one inclusively. It has an additional attribute \adeff{pseudo} that makes \ff{random} with a pseudorandom seed.

The object \deff{angle} is a decorator of \ff{float}. It assumes that the angle is in radians and has the following attributes for trigonometric functions:
\deff{sine}, \deff{cosine}, and \deff{tangent}. There are attributes \deff{as-degrees} and \deff{as-radians} for switching from radians to degrees and backwards.
Expand Down

0 comments on commit 9487007

Please sign in to comment.