I agree that using the notebook is probably a bad idea. Have you tried
using sage's -c flag? according to the command line help "-c--
Evaluates cmd as sage code". In addition if you are using python you could
use the subprocess module. I'm thinking something like:
check_output(['/SAGEPAT
On Monday, July 21, 2014 8:56:14 AM UTC-7, Jole Bradbury wrote:
>
> Could you push me in the right direction? Would Django be a good tool to
> accomplish this with?
>
Your top-post makes it a little difficult to determine what "with" is. Do
you mean "communicating with a notebook server"? In tha
Could you push me in the right direction? Would Django be a good tool to
accomplish this with?
On Tuesday, July 15, 2014 3:32:53 PM UTC-4, Nils Bruin wrote:
>
> On Tuesday, July 15, 2014 11:28:35 AM UTC-7, Jole Bradbury wrote:
>>
>> I can't. I've tried compiling sagecell using the instructions po
The expression y = (1-x)/(1-x*cos(t)) is, as given, undefined whenever
x*cos(t)=1, for example at (x,t)=(1,0).
When x=1 it simplifies to 0/(1-cos(t)), which equals 0 except where
cos(t)=1 where it is undefined but has a limiting value of 0.
When t=0 it simplfies to (1-x)/(1-x), which equals 1 exc
Thanks for the answer, kcrisman!
> My guess is that this is more of a convention than anything else.
> [...]
> sage: 0/x
> 0
> If Mma and Maple do it too, that would be my guess. In any case, it is
> 'known' and I bet you'll find other examples with a search of the email
> lists (though searching
>
> Hi guys,
>
> This is so simple that probably someone else has already noticed it, but
> just in case:
>
> sage: x,t = var('x,t')
> sage: f = (1-x)/(1-x*cos(t))
> sage: f(x=1)
> 0
> sage: f(t=0)(x=1)
> 1
>
>
My guess is that this is more of a convention than anything el
Hi guys,
This is so simple that probably someone else has already noticed it, but
just in case:
sage: x,t = var('x,t')
sage: f = (1-x)/(1-x*cos(t))
sage: f(x=1)
0
sage: f(t=0)(x=1)
1
The second one is, of course, the correct answer. (FYI, Mathematica9 fails,
too.)
Woul