Ask Your Question
1

what is "....:"?

asked 2015-02-11 07:03:57 +0100

Nownuri gravatar image

updated 2015-02-11 10:58:27 +0100

slelievre gravatar image

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.

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

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
2

answered 2015-02-11 09:16:37 +0100

slelievre gravatar image

updated 2015-02-11 09:22:43 +0100

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) 
....: )
....: 
sage:

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))
sage:

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

Comments

Thank you so much! Now I see what happened.

Nownuri gravatar imageNownuri ( 2015-02-11 10:52:50 +0100 )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

Stats

Asked: 2015-02-11 07:03:57 +0100

Seen: 348 times

Last updated: Feb 11 '15