Fixed error in complex documentation. Added using directive to example code, so it can be executed right away - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorBenjamin von Ardenne <Benjamin.von.Ardenne@gmail.com>2012年02月04日 17:00:46 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年02月04日 22:11:58 +0100
commitc8bb33acb055177d73fd11a807761a87b1b4a54f (patch)
treee702b8eb52ce505b2c9bda2e15f1f5e94b49e15f
parent394f355780f91bb34e28e1070915144f2d226d97 (diff)
downloadgsl-shell-c8bb33acb055177d73fd11a807761a87b1b4a54f.tar.gz
Fixed error in complex documentation. Added using directive to example code, so it can be executed right away
Diffstat
-rw-r--r--doc/user-manual/complex.rst 1
-rw-r--r--doc/user-manual/intro-example.lua 3
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/user-manual/complex.rst b/doc/user-manual/complex.rst
index 1de0276a..66e7a9ab 100644
--- a/doc/user-manual/complex.rst
+++ b/doc/user-manual/complex.rst
@@ -50,6 +50,7 @@ Basic Functions
If ``z`` is a real number returns an imaginary part equal to zero.
.. function:: conj(z)
+
Returns the complex conjugate :math:`z^\star` of the complex number ``z``.
.. data:: i
diff --git a/doc/user-manual/intro-example.lua b/doc/user-manual/intro-example.lua
index ecaf4bba..61e36fc9 100644
--- a/doc/user-manual/intro-example.lua
+++ b/doc/user-manual/intro-example.lua
@@ -1,3 +1,6 @@
+use 'math'
+use 'iter'
+
local function getunitsphere(n)
return function(x)
local s = 0
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月04日 18:10:18 +0000

AltStyle によって変換されたページ (->オリジナル) /