* complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
Daubert. [Feature #5623] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
45c6daeed7
commit
af9398ab38
@ -1,3 +1,8 @@
|
|||||||
|
Fri Feb 24 09:05:40 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
|
||||||
|
Daubert. [Feature #5623]
|
||||||
|
|
||||||
Fri Feb 24 08:52:09 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Feb 24 08:52:09 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (parser_tokadd_string, parser_yylex): insert a backslash
|
* parse.y (parser_tokadd_string, parser_yylex): insert a backslash
|
||||||
|
@ -1981,6 +1981,9 @@ Init_Complex(void)
|
|||||||
rb_define_method(rb_cFloat, "angle", float_arg, 0);
|
rb_define_method(rb_cFloat, "angle", float_arg, 0);
|
||||||
rb_define_method(rb_cFloat, "phase", float_arg, 0);
|
rb_define_method(rb_cFloat, "phase", float_arg, 0);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* (0+1i)
|
||||||
|
*/
|
||||||
rb_define_const(rb_cComplex, "I",
|
rb_define_const(rb_cComplex, "I",
|
||||||
f_complex_new_bang2(rb_cComplex, ZERO, ONE));
|
f_complex_new_bang2(rb_cComplex, ZERO, ONE));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user