Ask Your Question

JPI's profile - activity

2016-08-26 06:52:35 +0200 received badge  Famous Question (source)
2016-02-23 10:30:49 +0200 received badge  Notable Question (source)
2014-06-29 21:30:30 +0200 received badge  Popular Question (source)
2014-06-29 21:30:30 +0200 received badge  Notable Question (source)
2014-04-25 17:14:15 +0200 received badge  Popular Question (source)
2013-03-12 10:47:33 +0200 asked a question How to create a Sage directory of all functions?

Can one easily get the list of all defined functions in Sage to something like a directory including at least following information:


  • function name
  • allowed input argument numbers (possibly several)
  • allowed input argument types for each allowed input argument
  • function result values numbers (possibly several depending on input arguments)
  • function result values types for each result value


  • next similar etc.


so that for example one could easily construct an expression-set having all allowed functions in function argument places up to a given level?

For example:

Expression-set for 3 levels is something like:










(All combinations. Here only 3 levels given as an example. Here function myfun may have several return variables each can be a variable, vector, matrix, function name etc.)

2013-03-12 10:01:36 +0200 asked a question How to calculate element-wise matrix functions in Sage

In MATLAB one can write:

A = [1,2,3]; B = 2*A.^3;

where B gets element-wise result of the function 2*A.^3 given matrix (or vector) A.

In Sage the notation .^ does not function. How to do this in Sage?

Then how to calculate the element-wise sin(A) in Sage?

2013-03-07 12:28:18 +0200 asked a question polynomial digits of pi

How to find polynomial p_N(n) coefficients a_i_N,

p_N(n) = sum_i ( a_i_N * n^i , i=0:N )

such that p_N(n) gives the decimals of pi (where n=0...N) up to N:th decimal place. I did not find this in Sage ready made.

Does Sage have a function or another way to do this (returning a_i_N for each p_N, N ={1,2,...})? It should be both a numerical value up to a certain precision and a symbolic accurate answer?