Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Print (input/)output numbers

Hey,

when I use the sage it looks like this:

sage: factor(100)
2^2 * 5^2

sage: kronecker_symbol(3,5)
-1

sage: %hist
factor(100)
kronecker_symbol(3,5)
%hist

How can I get sage to look like this: (?)

sage: factor(100)
_1 = 2^2 * 5^2

sage: kronecker_symbol(3,5)
_2 = -1

sage: %hist
1: factor(100)
2: kronecker_symbol(3,5)
3: %hist

If somebody has an idea please let me know.

Thanks a lot!

Print (input/)output numbers

Hey,

when I use the sage it looks like this:

sage: factor(100)
2^2 * 5^2

sage: kronecker_symbol(3,5)
-1

sage: %hist
factor(100)
kronecker_symbol(3,5)
%hist

How can I get sage to look like this: (?)

sage: factor(100)
_1 = 2^2 * 5^2

sage: kronecker_symbol(3,5)
_2 = -1

sage: %hist
1: factor(100)
2: kronecker_symbol(3,5)
3: %hist

If somebody has an idea please let me know.

Thanks a lot!

Print (input/)output numbers

Hey,

when I use the sage it looks like this:

sage: factor(100)
2^2 * 5^2

sage: kronecker_symbol(3,5)
-1

sage: %hist
factor(100)
kronecker_symbol(3,5)
%hist

How can I get sage to look like this: (?)

sage: factor(100)
_1 = 2^2 * 5^2

sage: kronecker_symbol(3,5)
_2 = -1

sage: %hist
1: factor(100)
2: kronecker_symbol(3,5)
3: %hist

And can i edit the prompt to view the input number? I.e. to look like

sage[2]: kronecker_symbol(3,5)

If somebody has an idea please let me know.

Thanks a lot!