ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 08 Jan 2012 13:47:31 -0600Calculating eigenvectors in Chttp://ask.sagemath.org/question/8617/calculating-eigenvectors-in-c/Using Sage's notebook I was able to successfully calculate the eigenvectors of a Stochastic matrix with the method eigenvectors_right(). Now, if possible, I'd like to be able to perform the same kind calculation from a program in C. Does anyone know what framework and function is behind the eigenvectors_right() method? And would I be able to call it directly from a C program?
Thank you,
Dalmo
DalmoSun, 08 Jan 2012 13:47:31 -0600http://ask.sagemath.org/question/8617/development of a framework for numeral systemshttp://ask.sagemath.org/question/8492/development-of-a-framework-for-numeral-systems/I plan do build a framework for numeral systems. Below you find some
thoughts written down. A draft of the possible class hierachy can also
be found there.
If you have any comments on those things or anything that should be
also included in that framework, then don't hesidate to post them.
Daniel
-----------------------
Numeral Systems in Sage
-----------------------
draft
Goals
-----
- representation of elements as digital expansions
- support of infinite expansions, multi-expansions (one position can
have
more digits)
- (fast) arithmetic of expansions (+, -, \*, /, **)
- action of expansion on something (e.g. act on points of elliptic
curve
and e.g. performed a by a Horner scheme)
- support of languages on the expansion (e.g. w-NAF (non-adjacent
form))
- different algorithms to calculate expansions (e.g. w-NAF (non-
adjacent
form))
- test for optimality of language
- calculation of sequences in conjunction with dynamical system
together
with the calculation of the expansions (cf. shift radix systems)
- support of continued fractions (some algorithms already exist for
that and
maxima supports continued fractions)
- support of joint expansions (digits are tuples)
- numeral systems often have connections to transducer; keep that in
mind
during the design process
Class Hierachy
--------------
Examples (of classes) of numeral systems are written with [].
NumeralSystem
+-- PositionalNumeralSystem
| +-- IntegerTupleIndexNumeralSystem
| +-- IntegerIndexNumeralSystem
| | +-- AbstractNumeralSystem
| | | +-- BaseNumeralSystem
| | | +-- AlgebraicBaseNumeralSystem
| | | +-- ImaginaryQuadraticBaseNumeralSystem
| | | | +-- [QuaterImaginary]
| | | | +--
[ImaginaryQuadraticBaseMNRDigits]
| | | +-- RealBaseNumeralSystem
| | | +-- IntegerBaseNumeralSystem
| | | | +--
PositiveIntegerBaseNumeralSystem
| | | | | +-- [Binary]
| | | | | +-- [Decimal]
| | | | | +-- [BalancedTernary]
| | | | | +-- [Babylonian]
| | | | +--
NegativeIntegerBaseNumeralSystem
| | | +-- [GoldenRatioBase]
| | +-- MixedRadixNumeralSystem
| | | +-- RecurrenceNumeralSystem
| | | | +-- [FibonacciBase]
| | | +-- [Money]
| | | +-- [FactorialNumeralSystem]
| | | +-- [DateTime]
| | +-- [FactorNumeralSystem]
| +-- [IntegerDoubleBases]
+-- [RomanNumeralSystem]
+-- [UnaryNumeralSystem]
Some Notes on the classes
-------------------------
NumeralSystem:
- base class for everything (abstract base class)
- elements have +,-,*,/, but none is implemented (implementation in
inherited class)
PositionalNumeralSystem:
- has function ``value_at_position(position, value)`` which gives
value
of singleton
- operation to add singletons can be given (e.g. addition)
- the positions can be everything (every hashable element of Sage)
IntegerTupleIndexNumeralSystem:
- positions are tuples (of fixed length) of integers
IntegerIndexNumeralSystem:
- positions are integers, special case of
IntegerTupleIndexNumeralSystem
AbstractNumeralSystem:
- function `\phi` from base `i` to base `i+1`
MixedRadixNumeralSystem
- bases are fixed numbers `b_0, b_1, b_2,...`
- digits and bases are multiplied
BaseNumeralSystem
- inherited from both AbstractNumeralSystem and
MixedRadixNumeralSystem
- bases are `b^i`
AlgebraicBaseNumeralSystem
- base `b` is a complex number (root of polynomial over ZZ)
ImaginaryQuadraticBaseNumeralSystem, RealBaseNumeralSystem, ...
- special cases of AlgebraicBaseNumeralSystem
RecurrenceNumeralSystem:
- recurrence on bases, e.g. `b_n=2*b_{n-1}+b_{n-2}`
- e.g. [FibonacciBase] # `b_n = b_{n-1} + b_{n-2}`
[Money]
- bases, e.g. for Euro, are 0.01, 0.02, 0.05, 0.10, 0.20, 0.50, 1, 2,
5,
10, 20, 50, 100, 200, 500
[FactorialNumeralSystem]
- bases 0!,1!,2!,... digits for position `n!` are `0...(n-1)`
[DateTime]
- bases year, month, day, hour, minute, second
Daniel KrennSat, 19 Nov 2011 06:22:37 -0600http://ask.sagemath.org/question/8492/PyQt package on a machttp://ask.sagemath.org/question/7623/pyqt-package-on-a-mac/I'd like to install the experimental PyQt package. One of its dependencies is sip. When I try to install sip (sip-4.9.3) I get an error about needing a framework build of python. What is the current status of making sage use a framework build on OS X? Is it possible at all?mhamptonSun, 29 Aug 2010 04:41:42 -0500http://ask.sagemath.org/question/7623/