Re-composes a prime factorization and returns the product.
pd
Array of pairs of integers. The each internal pair consists of a prime number – a prime factor – and a natural number – an exponent.
For [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]]
, it returns:
p_1**e_1 * p_2**e_2 * .... * p_n**e_n. Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
The index to insert activated gem paths into the $LOAD_PATH. The activated gem’s paths are inserted before site lib directory by default.
bn.mod_add(bn1, bn2) -> aBN
bn.mod_sub(bn1, bn2) -> aBN
bn.mod_mul(bn1, bn2) -> aBN
bn.mod_sqr(bn2) => aBN
bn.mod_exp(bn1, bn2) -> aBN
If stat is readable by others, returns an integer representing the file permission bits of stat. Returns nil
otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2)
.
m = File.stat("/etc/passwd").world_readable? #=> 420 sprintf("%o", m) #=> "644"
Returns true
if stat is writable by the real user id of this process.
File.stat("testfile").writable_real? #=> true
Same as executable?
, but tests using the real owner of the process.
Returns a DRb::DRbSSLSocket
instance as a server-side connection, with the SSL connected. This is called from DRb::start_service
or while connecting to a remote object:
DRb.start_service 'drbssl://localhost:0', front, config
uri
is the URI
we are connected to, 'drbssl://localhost:0'
above, config
is our configuration. Either a Hash
or DRb::DRbSSLSocket::SSLConfig
Returns the eigenvector matrix V