Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Číselné obory -- ukázkový zápisník pro M2142
Project: M2142
Path: Ciselne_obory.sagews
Views: 460Image: ubuntu2004

<class 'sage.rings.integer.Integer'>
13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096
Některé operace voláme jako funkce programu sage, tj. funkce(objekt), některé jako metody aplikované na daný objekt, tj. objekt.funkce(). V případě příkazu is_prime je možné použít obojí.
Set of all prime numbers: 2, 3, 5, 7, ...
[, , , ]
Celočíselné dělení.
Zbytek po celočíselném dělení.
(, )
pro celočíselné argumenty je % modulo (zbytek po dělení)
Racionální čísla
<class 'sage.rings.rational.Rational'>
Čísla s pohyblivou desetinnou čárkou
<class 'sage.symbolic.expression.Expression'>
<class 'sage.rings.real_mpfr.RealNumber'>
2.718281828
<class 'sage.rings.real_mpfr.RealNumber'>
Počítání s odmocninami
Algebraicka cisla: Koreny ireducibilnich polynomu nad racionalnimi cisly - tvori teleso.
<class 'sage.rings.qqbar.AlgebraicNumber'>
[, ]
[, ]

<class 'sage.rings.number_field.number_field_element_quadratic.NumberFieldElement_gaussian'>