Espacios de nombres
Variantes
Acciones

Compile-time rational arithmetic

De cppreference.com
< cpp‎ | numeric

 
 
Numéricos biblioteca
Funciones matemáticas comunes
Floating-point medio ambiente
Los números complejos
Matrices numéricas
Pseudo-aleatoria de generación de números
En tiempo de compilación aritmética racional (C++11)
Genéricos operaciones numéricas
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
 
Compilar aritmética tiempo racional
ratio(C++11)
Aritmética
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)
Comparación
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)
 
El std::ratio plantilla de clase y las plantillas asociadas proporcionan en tiempo de compilación apoyo aritmética racional. Cada instancia de esta plantilla exactamente representa cualquier número racional finito .
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.

[editar] En tiempo de compilación fracciones

Defined in header <ratio>
representa la fracción racional exacta
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.

(clase de plantilla)
Typedefs Varios de conveniencia que corresponden a las proporciones de la IS son proporcionados por la biblioteca estándar:
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.
Defined in 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>, si std::intmax_t puede representar el denominador
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>, si std::intmax_t puede representar el denominador
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.
atto std::ratio<1, 1000000000000000000>
femto std::ratio<1, 1000000000000000>
pico std::ratio<1, 1000000000000>
nano std::ratio<1, 1000000000>
micro std::ratio<1, 1000000>
milli std::ratio<1, 1000>
centi std::ratio<1, 100>
deci std::ratio<1, 10>
deca std::ratio<10, 1>
hecto std::ratio<100, 1>
kilo std::ratio<1000, 1>
mega std::ratio<1000000, 1>
giga std::ratio<1000000000, 1>
tera std::ratio<1000000000000, 1>
peta std::ratio<1000000000000000, 1>
exa std::ratio<1000000000000000000, 1>
zetta
std::ratio<1000000000000000000000, 1>, si std::intmax_t puede representar el numerador
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>, si std::intmax_t puede representar el numerador
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.

[editar] En tiempo de compilación aritmética racional

Varias plantillas de clase, que realizan operaciones aritméticas con objetos ratio en tiempo de compilación se proporcionan .
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.
Defined in header <ratio>
(C++11)
se agregan dos objetos ratio en tiempo de compilación
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.

(clase de plantilla) [edit]
resta dos objetos ratio en tiempo de compilación
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.

(clase de plantilla) [edit]
multiplica dos objetos ratio en tiempo de compilación
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.

(clase de plantilla) [edit]
divide dos objetos ratio en tiempo de compilación
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.

(clase de plantilla) [edit]

[editar] En tiempo de compilación comparación racional

Varias plantillas de clase, que realizan operaciones de comparación en los objetos ratio en tiempo de compilación se proporcionan .
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.
Defined in header <ratio>
compara dos objetos ratio de la igualdad en tiempo de compilación
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.

(clase de plantilla) [edit]
compara dos objetos ratio de la desigualdad en tiempo de compilación
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.

(clase de plantilla) [edit]
compara dos objetos ratio por menos que en tiempo de compilación
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.

(clase de plantilla) [edit]
compares two ratio objects for less than or equal to at compile-time
(clase de plantilla) [edit]
compara dos objetos ratio para' mayor que en tiempo de compilación
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.

(clase de plantilla) [edit]
compara dos objetos ratio para mayor que o igual a en tiempo de compilación
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.

(clase de plantilla) [edit]