aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/numtheor.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-10-25 03:47:29 +0000
committerdos-reis <gdr@axiomatics.org>2011-10-25 03:47:29 +0000
commit2092a554d70524bc90440d96367e32c9ede28ee8 (patch)
treef60d455b9d03bfe6454bb2ae33b82114aeb3f91b /src/algebra/numtheor.spad.pamphlet
parent99aeb02edd1614d30e308a9267325f138617d58f (diff)
downloadopen-axiom-2092a554d70524bc90440d96367e32c9ede28ee8.tar.gz
* algebra/perman.spad.pamphlet (Permanent): Specify type of local
variable j. * algebra/patmatch1.spad.pamphlet (PatternMatchTools): Tidy. * algebra/padic.spad.pamphlet: Restrict type of literal constants. * algebra/sttf.spad.pamphlet: Likewise. * algebra/puiseux.spad.pamphlet: Likewise. * algebra/odealg.spad.pamphlet (SystemODESolver) [applyLodo0]: Specify type of local variable ans. * algebra/numtheor.spad.pamphlet (IntegerNumberTheoryFunctions): Tidy. * algebra/naalgc.spad.pamphlet (MonadWithUnit) [rightPower]: Specify type of local variable res. [leftPower]: Likewise. * algebra/lodop.spad.pamphlet (NonCommutativeOperatorDivision) [leftLcm]: Specify type of local variable v. * algebra/intfact.spad.pamphlet (IntegerRoots) [approxSqrt]: Specify type of local variables old and new. * algebra/elfuts.spad.pamphlet (EllipticFunctionsUnivariateTaylorSeries): Restrict types of literal constants. * algebra/ffnb.spad.pamphlet (FiniteFieldNormalBasisExtensionByPolynomial): Likewise. * algebra/fnla.spad.pamphlet (FreeNilpotentLie): Likewise. * algebra/intaux.spad.pamphlet (IntegrationResult): Likewise. * algebra/defintef.spad.pamphlet (ElementaryFunctionDefiniteIntegration) [checkSMP]: Specify type in the definition of local variable n. * algebra/combinat.spad.pamphlet (IntegerCombinatoricFunctions): Tidy definition of local variables. * algebra/clifford.spad.pamphlet (CliffordAlgebra): Specify type in the definition of local variables k, exchanges, bz. * algebra/catdef.spad.pamphlet (CartesianTensor): Specify type in the definition of local varibles rx and offz. Remove useless variables zol, xol, oly, and zoly.
Diffstat (limited to 'src/algebra/numtheor.spad.pamphlet')
-rw-r--r--src/algebra/numtheor.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/numtheor.spad.pamphlet b/src/algebra/numtheor.spad.pamphlet
index f1251618..4a8101ea 100644
--- a/src/algebra/numtheor.spad.pamphlet
+++ b/src/algebra/numtheor.spad.pamphlet
@@ -335,8 +335,8 @@ IntegerNumberTheoryFunctions(): Exports == Implementation where
fibonacci n ==
n = 0 => 0
negative? n => (odd? n => 1; -1) * fibonacci(-n)
- f1, f2 : I
- (f1,f2) := (0,1)
+ f1: I := 0
+ f2: I := 1
for k in length(n)-2 .. 0 by -1 repeat
t := f2**2
(f1,f2) := (t+f1**2,t+2*f1*f2)