lib/numru/derivative.rb in gphys-1.4.3.2 vs lib/numru/derivative.rb in gphys-1.5.0
- old
+ new
@@ -1,5 +1,6 @@
+# -*- coding: utf-8 -*-
require "narray"
############################################################
=begin
@@ -40,11 +41,11 @@
ARGUMENTS
* z (NArray): a NArray which you want to derivative.
* x (NArray): a NArray represents the dimension which derivative respect to.
z.rank must be 1.
* dim (Numeric): a Numeric represents the dimention which derivative respect to.
- you can give number count backward (((<dim>))<0), but ((<z.rank ¡Üdim>)) must be > 0.
+ you can give number count backward (((<dim>))<0), but ((<z.rank +dim>)) must be > 0.
* bc (Numeric) : a Numeric to represent boundary condition.
Supported conditions are expressed in terms of boundary extension
applied before differentiation:
* LINEAR_EXT(=1): default value. linear extension using two
grid points at the boundaries.
@@ -67,11 +68,11 @@
* z (NArray): a NArray which you want to derivative.
* x (NArray): a NArray represents the dimension which derivative respect
to. z.rank must be 1.
* dim (Numeric): a Numeric represents the dimention which derivative
respect to. you can give number count backward (((<dim>))<0), but
- ((<z.rank ¡Üdim>)) must be > 0.
+ ((<z.rank +dim>)) must be > 0.
* bc (Numeric) : a Numeric to represent boundary condition.
See ((<threepoint_O2nd_deriv>)) for supported conditions.
RETURN VALUE
* cderiv_data (NArray): (z_{i+1} - z_{i-1}) / (x_{i+1} - x_{i-1})
@@ -87,11 +88,11 @@
* z (NArray): a NArray which you want to derivative.
* x (NArray): a NArray represents the dimension which derivative respect
to. z.rank must be 1.
* dim (Numeric): a Numeric represents the dimention which derivative
respect to. you can give number count backward (((<dim>))<0), but
- ((<z.rank ¡Üdim>)) must be > 0.
+ ((<z.rank +dim>)) must be > 0.
* bc (Numeric) : a Numeric to represent boundary condition.
See ((<threepoint_O2nd_deriv>)) for supported conditions.
RETURN VALUE
* cderiv_data (NArray): (z_{i+1} - z_{i-1}) / (x_{i+1} - x_{i-1})
@@ -107,11 +108,11 @@
ARGUMENTS
* z (NArray): a NArray which you want to expand boundary.
* dim (Numeric): a Numeric represents the dimention which derivative
respect to. you can give number count backward (((<dim>))<0), but
- ((<z.rank ¡Üdim>)) must be > 0.
+ ((<z.rank +dim>)) must be > 0.
RETURN VALUE
* expand_data (NArray):
---cdiff(x, dim)
@@ -122,10 +123,10 @@
ARGUMENTS
* x (NArray): a NArray which you want to get difference.
* dim (Numeric): a Numeric representing the dimention which derivative
respect to. you can give number count backward (((<dim>))<0), but
- ((<z.rank ¡Üdim>)) must be > 0.
+ ((<z.rank +dim>)) must be > 0.
RETURN VALUE
* cdiff_data (NArray): (x_{i+1} - x_{i-1})
=end