Compile-time rational arithmetic

Da cppreference.com.
< cpp‎ | numeric

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale(C++11)
Generici operazioni numeriche
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
Compilare aritmetica razionale del tempo
ratio(C++11)
Aritmetica
Original:
Arithmetic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ratio_add(C++11)
ratio_subtract(C++11)
ratio_multiply(C++11)
ratio_divide(C++11)
Confronto
Original:
Comparison
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ratio_equal(C++11)
ratio_not_equal(C++11)
ratio_less(C++11)
ratio_less_equal(C++11)
ratio_greater(C++11)
ratio_greater_equal(C++11)
 
Il std::ratio modello di classe e modelli associati fornire in fase di compilazione il supporto razionale aritmetica. Ogni istanza di questo modello rappresenta esattamente qualsiasi numero finito razionale.
Original:
The class template std::ratio and associated templates provide compile-time rational arithmetic support. Each instantiation of this template exactly represents any finite rational number.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]In fase di compilazione frazioni

Definizione nell'header <ratio>
rappresenta esatta frazione razionale
Original:
represents exact rational fraction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)
Typedef convenienza diverse corrispondenti ai rapporti SI sono fornite dalla libreria standard:
Original:
Several convenience typedefs that correspond to the SI ratios are provided by the standard library:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definizione nell'header <ratio>
Tipo
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
yocto
std::ratio<1, 1000000000000000000000000>, se std::intmax_t può rappresentare il denominatore
Original:
std::ratio<1, 1000000000000000000000000>, if std::intmax_t can represent the denominator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
zepto
std::ratio<1, 1000000000000000000000>, se std::intmax_t può rappresentare il denominatore
Original:
std::ratio<1, 1000000000000000000000>, if std::intmax_t can represent the denominator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
attostd::ratio<1, 1000000000000000000>
femtostd::ratio<1, 1000000000000000>
picostd::ratio<1, 1000000000000>
nanostd::ratio<1, 1000000000>
microstd::ratio<1, 1000000>
millistd::ratio<1, 1000>
centistd::ratio<1, 100>
decistd::ratio<1, 10>
decastd::ratio<10, 1>
hectostd::ratio<100, 1>
kilostd::ratio<1000, 1>
megastd::ratio<1000000, 1>
gigastd::ratio<1000000000, 1>
terastd::ratio<1000000000000, 1>
petastd::ratio<1000000000000000, 1>
exastd::ratio<1000000000000000000, 1>
zetta
std::ratio<1000000000000000000000, 1>, se std::intmax_t può rappresentare il numeratore
Original:
std::ratio<1000000000000000000000, 1>, if std::intmax_t can represent the numerator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
yotta
std::ratio<1000000000000000000000000, 1>, se std::intmax_t può rappresentare il numeratore
Original:
std::ratio<1000000000000000000000000, 1>, if std::intmax_t can represent the numerator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]In fase di compilazione aritmetica razionale

Modelli di classi diverse, che eseguono operazioni aritmetiche su oggetti ratio in fase di compilazione sono disponibili.
Original:
Several class templates, that perform arithmetic operations on ratio objects at compile-time are provided.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definizione nell'header <ratio>
(C++11)
aggiunge due oggetti ratio a tempo di compilazione
Original:
adds two ratio objects at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
sottrae due oggetti ratio a tempo di compilazione
Original:
subtracts two ratio objects at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
moltiplica due oggetti ratio a tempo di compilazione
Original:
multiplies two ratio objects at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
divide due oggetti ratio a tempo di compilazione
Original:
divides two ratio objects at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]

[modifica]In fase di compilazione confronto razionale

Modelli di classi diverse, che eseguono le operazioni di confronto su oggetti ratio in fase di compilazione sono disponibili.
Original:
Several class templates, that perform comparison operations on ratio objects at compile-time are provided.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definizione nell'header <ratio>
confronta due oggetti ratio per l'uguaglianza a tempo di compilazione
Original:
compares two ratio objects for equality at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
confronta due oggetti ratio per la disuguaglianza a tempo di compilazione
Original:
compares two ratio objects for inequality at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
confronta due oggetti ratio per meno a tempo di compilazione
Original:
compares two ratio objects for less than at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
compares two ratio objects for less than or equal to at compile-time
(classe template)[modifica]
confronta due oggetti ratio per superiore a tempo di compilazione
Original:
compares two ratio objects for greater than at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
confronta due oggetti ratio per maggiore o uguale a al momento della compilazione
Original:
compares two ratio objects for greater than or equal to at compile-time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe template)[modifica]
close