divisor_25 {exams.forge}R Documentation

Number Properties

Description

Usage

divisor_25(x)

denominator_25(x)

is_terminal(x)

round_25(x)

prime_numbers(n, sieve = FALSE)

primes(x, min = 2)

has_digits(
  x,
  digits = 2,
  tol = 10^{
     -digits - 6
 }
)

all_integer(x)

only_digits(
  x,
  digits = 2,
  tol = 10^{
     -digits - 6
 }
)

is_term(x)

denom_25(x)

Arguments

x

numeric: values to test/check

n

integer: find all prime numbers up to n

sieve

logical: should in any case the Sieve of Eratosthenes be used to compute prime numbers (default: FALSE)

min

integer: the minimum prime number used (default: 2)

digits

numeric: number of digits to check (default: 2)

tol

numeric: max. deviation from the rounded x (default: 1e-6)

Value

logical

Examples

is_terminal(2/3)   # 0.6666... non-terminal
is_terminal(1/5)   # 0.2       terminal
divisor_25(1:25)
prime_numbers(100) # all prime numbers less equal 100
primes(1:20)       # prime factorization of 1 to twenty

[Package exams.forge version 1.0.10 Index]