On Jun 20, 2:13 pm, Chris Seberino wrote:
> Is there a problem with Latex commands that begin with \t for some
> reason?
That's just python's string escaping. Use html(r'$\tan$') instead.
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send
Thank you for your tips.
I use SAGE 4.7
%latex_debug shows that latex complains about \floor is an undefined
control sequence (as if the latex_extra_preamble() has no effect)
! Undefined control sequence.
\floor
l.31 $\floor
{y}$
What did I miss here?
On Jun 20, 7:06 pm, Joh
On Monday, June 20, 2011 6:30:07 PM UTC-7, pong wrote:
>
> In notebook, I want to define \floor{x} as \lfloor x \rfloor so I
> tried
>
> from sage.misc.latex import latex_extra_preamble
>
> latex_extra_preamble()
> '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}'
>
> %latex
> $\floor{x}, \
In notebook, I want to define \floor{x} as \lfloor x \rfloor so I
tried
from sage.misc.latex import latex_extra_preamble
latex_extra_preamble()
'\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}'
%latex
$\floor{x}, \lfloor x \rfloor$
shows that \floor{x} does not typeset correctly and the system
http://phil4.com/public/Trig2.sws works perfectly in Firefox but has
issues in Chrome and
Internet Explorer.
The slider of interact widget didn't work for one student in Internet
Explorer.
The html text was messed up for students using Chrome. It seems
multiple lines were on top of each other.
On Jun 20, 10:41 am, kcrisman wrote:
> Type "%auto" on a line by itself at the beginning of a cell to
> automatically evaluate the cell when the worksheet is first opened.
kcrisman
That works one one! Thanks! I made a little worksheet that %auto
still doesn't seem to work on...
http://phil4
I display some Latex commands in HTML on the small worksheet below...
http://phil4.com/public/Trig.sws
Notice all the trig functions are fine except for tan.
Is there a problem with Latex commands that begin with \t for some
reason?
Sincerely,
Chris
--
To post to this group, send email to sa
How delete published worksheet if you already deleted the copy in your
account folder?
Normally I could just "unpublish" a worksheetbut since I deleted
the original version, I can't do that!?!?
Sincerely,
Chris
--
To post to this group, send email to sage-support@googlegroups.com
To unsubs
I am running sage on a server and accessing it on a separate
computer. When I entered 3+3 in the expression field, then click
"evaluate", the cell changes to green(running), and never returns a
result. But when I took a look at the server, there is little load.
Do I need to enable something to ge
The comma operator creates tuples in Python (the surrounding braces actually
don't do anything):
sage: 1, 2, 3
(1, 2, 3)
sage: 1,
(1,)
A function that just prints something but doesn't call return() will return
None. That should make the output clear:
sage: def comma():
: print "*"
Hi, look at the following lines:
sage: def comma():
... print "*"
sage: comma(), #<= the "," has no effect; this
is expected?
sage: comma()
sage: print comma() #The print commando (function) has
effect, and yields None
*
*
*
None
Roland (version 4.7,
OK, I managed to get it done with ".subs_expr". Here is the output.
sage: var('x1,t1,x2,t2,dT,dt,u,c',domain=RR);assume(u>0);assume(c>u);
(x1, t1, x2, t2, dT, dt, u, c)
sage: T1 = (t1-((u*x1)/(c^2)))/sqrt(1-((u^2)/(c^2)))
sage: T2 = (t2-((u*x2)/(c^2)))/sqrt(1-((u^2)/(c^2)))
sage: dT = T2-T1
sage:
This was fixed by Sebastien during Sage Days 31 (3 days ago). Already got
that merged in my repo.
http://code.google.com/r/rkirov-flask/source/detail?r=b732dafbff2259938b55873e247213f9a82fe9e3
I will make sure William updates sagenb.com to incorporate those fixes.
--
To post to this group, sen
Sorry. Dumb question. Nevermind.
You need to type URLs on the second text box...NOT the first box which
is for local files.
:)
cs
On Jun 20, 11:04 am, kcrisman wrote:
> ?? You should be able to type a URL (ending in .sws or .txt or
> something like that) in the text area. I used that just
I can also do this in Mathematica the following way,
$Assumptions = True;
T1 = (t1 - ((u x1)/c^2))/Sqrt[1 - (u^2/c^2)];
T2 = (t2 - ((u x2)/c^2))/Sqrt[1 - (u^2/c^2)];
dT = T2 - T1;
FullSimplify[dT /. t2 -> dt + t1]
(c^2*dt + u*(x1 - x2))/(c^2*Sqrt[1 - u^2/c^2])
FullSimplify[dT /. t2 -> dt +
On Jun 20, 11:49 am, Kirill Vankov wrote:
> Once I moved the compiled sage into /usr/local/ I cannot install
> additional R-packages anymore. Have to move it back.
You shouldn't have to move it anywhere; Sage doesn't have to live
anyplace in particular. Is it only after you move it that you
e
?? You should be able to type a URL (ending in .sws or .txt or
something like that) in the text area. I used that just the other
day.
What server are you using? Or, if local, what version? This could
conceivably be related to the recent updating of the sagenb.org family
of servers.
On Jun 20,
Once I moved the compiled sage into /usr/local/ I cannot install
additional R-packages anymore. Have to move it back.
It is better to instruct whoever is going to compile sage on Mac to do
so at the final destination folder.
K.
--
To post to this group, send email to sage-support@googlegroups.
On Jun 20, 11:12 am, Chris Seberino wrote:
> I created a little worksheet
> calledhttp://phil4.com/public/sage/Scientific_Notation.sws
> to illustrate the problem.
>
> The single cell with code has this...
>
> %hide
> %auto
> @interact
> def _(exponent=(-6..6)):
> html('The Number: $%f$'%(5 *
When I try to type a URL for a worksheet to upload, I can't type.
Instead, the browse popup appears and I'm forced to browse for a local
file!!!
Was the typing in the text field disabled somehow?
cs
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this g
I created a little worksheet called
http://phil4.com/public/sage/Scientific_Notation.sws
to illustrate the problem.
The single cell with code has this...
%hide
%auto
@interact
def _(exponent=(-6..6)):
html('The Number: $%f$'%(5 * 10**exponent))
html('In Scientific Notation: $5 \cdot 10^{%d}$
21 matches
Mail list logo