Ask Your Question

yrogirg's profile - activity

2021-07-13 16:56:13 +0200 received badge  Notable Question (source)
2020-09-22 14:31:24 +0200 received badge  Popular Question (source)
2012-06-02 14:21:13 +0200 received badge  Student (source)
2012-06-02 02:07:22 +0200 commented question Working with series

yes, generally Puiseux series would be better, but sin t is to return Taylor expansion around zero if it doesn't specified in it's type directly.

2012-06-01 16:07:02 +0200 asked a question Working with series

I can't get how to work with series. I do

sage: R.<t> = PowerSeriesRing(QQ)
sage: t^2
t^2
sage: sin(t)

but the last rises an error. I want to do usual manipulations like sin(t)/cos(t+2)^2.

2012-06-01 15:39:47 +0200 received badge  Scholar (source)
2012-06-01 15:39:47 +0200 marked best answer Output Types in Shell

You can use the type command:

sage: a = Sq(3)
sage: type(a)
<class 'sage.algebras.steenrod.steenrod_algebra.SteenrodAlgebra_mod_two_with_category.element_class'>

sage: DE = y.diff(x,x) + y == 0
sage: z = desolve(DE, y)
sage: type(z)
<type 'sage.symbolic.expression.Expression'>
2012-05-29 14:15:00 +0200 received badge  Supporter (source)
2012-05-29 07:33:20 +0200 received badge  Editor (source)
2012-05-29 07:30:57 +0200 asked a question Output Types in Shell

Does sage use essentially typeless language? If no, is there a way to output type in the shell, preferably always along with the answer. Just like Axiom does it:

(1) -> x := series 'x

   (1)  x
                  Type: UnivariatePuiseuxSeries(Expression(Integer),x,0)
(2) -> (sin x) / (cos x)

            1  3    2  5    17  7    62   9    1382   11      12
   (2)  x + - x  + -- x  + --- x  + ---- x  + ------ x   + O(x  )
            3      15      315      2835      155925
                  Type: UnivariatePuiseuxSeries(Expression(Integer),x,0)

Fore some reason unicode doesn't display here.