Ask Your Question

what is "....:"?

asked 2015-02-11 00:03:57 -0500

Nownuri gravatar image

updated 2015-02-11 03:58:27 -0500

I have just installed Sage and tested it with some equations. But I found a problem that the left side of the command line changes from "sage: " to "....: ". It was the case when I typed the following code.


Could anyone let me know what "....:" means? And how to recover the normal command line in order to use Sage again? With "....: " it seems that Sage never work.

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-11 02:16:37 -0500

updated 2015-02-11 02:22:43 -0500

The ....: prompt is a continuation prompt, indicating that Sage is waiting for extra input, considering what you input so far is not complete. It might be because you have an open parenthesis or bracket that is not matched by a closing one, or because you have started a def, for, if, while, etc.

In the example you mention, I suspect you were missing a closing parenthesis.

In that case, Sage is waiting for more input, expecting a closing parenthesis at some point.

sage: f(x)=2.4/x^2*(1-e^(-x/50) 

If you close the parenthesis, hit return, and hit return one more time, your command is evaluated and you get back the usual Sage prompt.

sage: f(x)=2.4/x^2*(1-e^(-x/50) 
....: )

Now you can use the function you defined:

sage: f(x)
-2.40000000000000*(e^(-1/50*x) - 1)/x^2

If you enter a correct expression, which is not missing a closing parenthesis, such as the one in your question, you should get the normal Sage prompt back immediately. Using your example copy-pasted from your question doesn't give me a continuation prompt:

sage: f(x)=2.4/x^2*(1-e^(-x/50))

In case you are stuck with the ....: continuation prompt, check if some opening parenthesis or bracket is unmatched by a closing one. Or you can use Ctrl-C to abandon the current input and start afresh.

edit flag offensive delete link more


Thank you so much! Now I see what happened.

Nownuri gravatar imageNownuri ( 2015-02-11 03:52:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-11 00:03:57 -0500

Seen: 90 times

Last updated: Feb 11 '15