ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 11 Feb 2015 10:52:50 +0100what is "....:"?https://ask.sagemath.org/question/25800/what-is/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.
Wed, 11 Feb 2015 07:03:57 +0100https://ask.sagemath.org/question/25800/what-is/Answer by slelievre for <p>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.</p>
<pre><code>f(x)=2.4/x^2*(1-e^(-x/50))
</code></pre>
<p>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.</p>
<p>Thank you. </p>
https://ask.sagemath.org/question/25800/what-is/?answer=25802#post-id-25802The `....:` 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.Wed, 11 Feb 2015 09:16:37 +0100https://ask.sagemath.org/question/25800/what-is/?answer=25802#post-id-25802Comment by Nownuri for <p>The <code>....:</code> 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 <code>def</code>, <code>for</code>, <code>if</code>, <code>while</code>, etc.</p>
<p>In the example you mention, I suspect you were missing a closing parenthesis.</p>
<p>In that case, Sage is waiting for more input, expecting a closing parenthesis at some point.</p>
<pre><code>sage: f(x)=2.4/x^2*(1-e^(-x/50)
....:
</code></pre>
<p>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.</p>
<pre><code>sage: f(x)=2.4/x^2*(1-e^(-x/50)
....: )
....:
sage:
</code></pre>
<p>Now you can use the function you defined:</p>
<pre><code>sage: f(x)
-2.40000000000000*(e^(-1/50*x) - 1)/x^2
</code></pre>
<p>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:</p>
<pre><code>sage: f(x)=2.4/x^2*(1-e^(-x/50))
sage:
</code></pre>
<p>In case you are stuck with the <code>....:</code> 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.</p>
https://ask.sagemath.org/question/25800/what-is/?comment=25804#post-id-25804Thank you so much! Now I see what happened.Wed, 11 Feb 2015 10:52:50 +0100https://ask.sagemath.org/question/25800/what-is/?comment=25804#post-id-25804