868件ヒット
[801-868件を表示]
(0.110秒)
ライブラリ
- ビルトイン (187)
-
bigdecimal
/ math (11) - cmath (48)
- delegate (22)
- forwardable (77)
- getoptlong (11)
- json (11)
- matrix (22)
- mkmf (22)
- openssl (33)
- pp (11)
- prettyprint (11)
- psych (11)
-
rdoc
/ context (77) -
rdoc
/ parser / ruby (11) -
rdoc
/ single _ class (11) -
rdoc
/ top _ level (44) -
rexml
/ sax2listener (11) - rubygems (22)
-
rubygems
/ specification (11) -
shell
/ process-controller (6) - singleton (44)
- tracer (11)
- win32ole (11)
クラス
- BasicObject (33)
- Delegator (22)
-
Gem
:: Specification (11) - Matrix (11)
-
Matrix
:: LUPDecomposition (11) - Module (33)
- Object (66)
-
OpenSSL
:: PKCS7 (11) - PP (11)
- PrettyPrint (11)
-
Psych
:: Nodes :: Scalar (11) -
RDoc
:: Context (77) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: TopLevel (44) -
Shell
:: ProcessController (6) - Tracer (11)
- WIN32OLE (11)
モジュール
- BigMath (11)
- CMath (48)
-
Gem
:: QuickLoader (22) - JSON (11)
- Kernel (22)
- Math (44)
-
OpenSSL
:: SSL (22) -
REXML
:: SAX2Listener (11) - SingleForwardable (66)
- Singleton (33)
オブジェクト
- main (11)
キーワード
- MinusInfinity (11)
- MissingArgument (11)
-
OP
_ SINGLE _ DH _ USE (11) -
OP
_ SINGLE _ ECDH _ USE (11) - SINGLE (11)
-
SINGLE
_ QUOTED (11) - Single (11)
- SingleClass (11)
- SingleForwardable (11)
- Singleton (11)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) -
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ module (11) -
add
_ signer (11) -
all
_ classes _ and _ modules (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
-
attribute
_ alias _ singular (11) - bigdecimal (11)
-
bigdecimal
/ math (11) - classes (11)
- clone (11)
-
const
_ missing (22) -
def
_ delegator (11) -
def
_ delegators (11) -
def
_ single _ delegator (11) -
def
_ single _ delegators (11) -
define
_ singleton _ method (22) - delegate (11)
- dup (11)
-
each
_ classmodule (11) -
find
_ class _ named (11) -
find
_ enclosing _ module _ named (11) -
find
_ local _ symbol (11) - instance (11)
-
method
_ missing (33) -
processing
_ instruction (11) -
rb
_ define _ singleton _ method (11) -
rb
_ f _ missing (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ singleton _ class (11) -
rb
_ singleton _ class _ attached (11) -
rb
_ singleton _ class _ clone (11) -
rb
_ singleton _ class _ new (11) -
rdoc
/ single _ class (11) -
respond
_ to _ missing? (22) -
run
_ single _ final (11) -
set
_ visibility _ for (11) - sin! (6)
-
single
_ delegate (11) -
singleline
_ format (11) -
singleline
_ pp (11) - singleton (11)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - singular? (22)
- sinh (17)
- sinh! (6)
-
try
_ link (22) - using (22)
検索結果
先頭5件
-
Kernel
# try _ link(src , opt = "" , *options) -> bool (6112.0) -
C プログラムのソースコード src をコンパイル、リンクします。
...ル、リンクします。
このメソッドは $CFLAGS と $LDFLAGS の値もコンパイラまたはリ
ンカに渡します。
問題なくリンクできたら true を返します。
コンパイルとリンクに失敗したら false を返します。
@param src C プログラムのソ......ースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "sin() exists"
end... -
Kernel
# try _ link(src , opt = "" , *options) { . . . } -> bool (6112.0) -
C プログラムのソースコード src をコンパイル、リンクします。
...ル、リンクします。
このメソッドは $CFLAGS と $LDFLAGS の値もコンパイラまたはリ
ンカに渡します。
問題なくリンクできたら true を返します。
コンパイルとリンクに失敗したら false を返します。
@param src C プログラムのソ......ースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "sin() exists"
end... -
bigdecimal
/ math (6012.0) -
BigDecimalを使った数学的な機能を提供します。
...cimalを使った数学的な機能を提供します。
以下の計算が行えます。
* sqrt(x, prec)
* sin (x, prec)
* cos (x, prec)
* atan(x, prec)
* PI (prec)
* E (prec)
引数:
: x
計算対象の BigDecimal オブジェクト。
: prec
計算結果の精度。
//emlist......[例][ruby]{
require "bigdecimal"
require "bigdecimal/math"
include BigMath
a = BigDecimal((PI(100)/2).to_s)
puts sin(a,100)
#=> 0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998765917571575217785e0
//}... -
bigdecimal (6006.0)
-
bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。
...bigdecimal は浮動小数点数演算ライブラリです。
任意の精度で 10 進表現された浮動小数点数を扱えます。
//emlist[][ruby]{
require 'bigdecimal'
a = BigDecimal("0.123456789123456789")
b = BigDecimal("123456.78912345678", 40)
print a + b # => 0.123456912580245903456......cimal では正確な値を得る事ができます。
//emlist[例1: 0.0001 を 10000 回足す場合。][ruby]{
sum = 0
for i in (1..10000)
sum = sum + 0.0001
end
print sum # => 0.9999999999999062
//}
//emlist[例2: 0.0001 を 10000 回足す場合。(BigDecimal)][ruby]{
require 'bigdecimal'......//emlist[pi.rb][ruby]{
#!/usr/local/bin/ruby
require "bigdecimal"
#
# Calculates 3.1415.... (the number of times that a circle's diameter
# will fit around the circle) using J. Machin's formula.
#
def big_pi(sig) # sig: Number of significant figures
exp = -sig
pi = BigDecimal("0")
tw... -
Singleton
# dup (6000.0) -
@raise TypeError このメソッドを呼び出した場合に発生します。
@raise TypeError このメソッドを呼び出した場合に発生します。 -
Singleton
. instance -> object (6000.0) -
そのクラスの唯一のインスタンスを返します。 最初に呼ばれたときはそのインスタンスを生成します。
...そのクラスの唯一のインスタンスを返します。
最初に呼ばれたときはそのインスタンスを生成します。
Singleton を include したクラスで定義されますので、
正確には Singleton モジュールのメソッドではありません。... -
OpenSSL
:: PKCS7 # add _ signer(singer) -> self (3200.0) -
署名者を追加します。
...署名者を追加します。
このメソッドは使わないでください。
このメソッドは PKCS#7 の低レベル API であり、正しく使うのは
難しいでしょう。
@param signer 追加する署名者(OpenSSL::PKCS7::SignerInfo オブジェクト)...