Re: [sage-support] Re: integral() error

2011-09-06 Thread robin hankin
Hello Justin

thanks for this...I'm more familiar with the R help list, where
there's a very heavy emphasis on not wasting bandwidth,
and replies not much less terse than 'rtfm' are very common.

So, I'm finding the more tolerant atmosphere in sage to take some
getting used to!

best wishes

Robin


On Mon, Sep 5, 2011 at 4:30 PM, Justin C. Walker  wrote:
> Hi, Robin,
>
> On Sep 4, 2011, at 16:10 , robin hankin wrote:
>
>> Hello Justin
>>
>> thanks for this.
>>
>> (I'm a linux user but currently getting to know macosx).
>
> If you use linux, you aren't that far from (command-line) Mac OS X.  It's 
> basically a BSD unix at that level.
>
>> $SAGE_ROOT was null, but I can run it from the commandline by changing
>> to Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/
>> and running ./sage.
>
> As I said, you had to replace "$SAGE_ROOT" with a real path.  But you've 
> gotten past this.
>
>> And the integral() command seems to work but I have other problems:
>>
>>
>> wt118:/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage%
>> ./sage
>> --
>> | Sage Version 4.7.1, Release Date: 2011-08-11                       |
>> | Type notebook() for the GUI, and license() for information.        |
>> --
>> sage: 2+2
>> 4
>> sage: integral(x^2,x)
>> 1/3*x^3
>> sage: quit()
>
> 'quit' is a command, not a procedure call; in both Python and iPython, you 
> call "quit()", but apparently, in Sage, not so much :-}.  Note that Sage is 
> essentially Python, with a modified iPython front end, and a bit of syntactic 
> sugaring with a preparser.  We throw a few things like this in just to keep 
> the hapless user on his toes.  Or hers.
>
>> I'm beginning to think I should reinstall from scratch (or indeed
>> compile my own).
>
> No need.  The precompiled version should work just fine.  You only have to 
> survive the learning curve :-}
>
> Keep asking questions and reading documentation.
>
> Apropos of documentation, there is a lot available
>
>  
>
> but what's there can always use improvement.  Feel free to browse and either 
> ask questions or submit bug reports (cf. 
> ).  Also, there is some built-in 
> documentation in Sage.  To get an idea, type (at the prompt) the beginning of 
> a procedure name (e.g., there is one that creates a number field):
>
>  sage: Number[TAB]
>
> should produce a list of four known Sage identifiers.  Typing
>
>  sage: NumberField?
>
> will get you the sourcecode documentation for this procedure.  Using "??" 
> instead of "?" will get you the documentation plus source code, so you can 
> see the implementation details.
>
> That may help get you started.
>
> We're here to help.  Sometimes, we succeed.
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon-At-Large
> Institute for the Absorption of Federal Funds
> 
> If you're not confused,
> You're not paying attention
> 
>
>
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Robin Hankin
Uncertainty Analyst
hankin.ro...@gmail.com

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: integral() error

2011-09-04 Thread Justin C. Walker
Hi, Robin,

On Sep 4, 2011, at 16:10 , robin hankin wrote:

> Hello Justin
> 
> thanks for this.
> 
> (I'm a linux user but currently getting to know macosx).

If you use linux, you aren't that far from (command-line) Mac OS X.  It's 
basically a BSD unix at that level.

> $SAGE_ROOT was null, but I can run it from the commandline by changing
> to Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/
> and running ./sage.

As I said, you had to replace "$SAGE_ROOT" with a real path.  But you've gotten 
past this.

> And the integral() command seems to work but I have other problems:
> 
> 
> wt118:/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage%
> ./sage
> --
> | Sage Version 4.7.1, Release Date: 2011-08-11   |
> | Type notebook() for the GUI, and license() for information.|
> --
> sage: 2+2
> 4
> sage: integral(x^2,x)
> 1/3*x^3
> sage: quit()

'quit' is a command, not a procedure call; in both Python and iPython, you call 
"quit()", but apparently, in Sage, not so much :-}.  Note that Sage is 
essentially Python, with a modified iPython front end, and a bit of syntactic 
sugaring with a preparser.  We throw a few things like this in just to keep the 
hapless user on his toes.  Or hers.

> I'm beginning to think I should reinstall from scratch (or indeed
> compile my own).

No need.  The precompiled version should work just fine.  You only have to 
survive the learning curve :-}

Keep asking questions and reading documentation.  

Apropos of documentation, there is a lot available

  

but what's there can always use improvement.  Feel free to browse and either 
ask questions or submit bug reports (cf. 
).  Also, there is some built-in 
documentation in Sage.  To get an idea, type (at the prompt) the beginning of a 
procedure name (e.g., there is one that creates a number field):

  sage: Number[TAB]

should produce a list of four known Sage identifiers.  Typing

  sage: NumberField?

will get you the sourcecode documentation for this procedure.  Using "??" 
instead of "?" will get you the documentation plus source code, so you can see 
the implementation details.

That may help get you started.

We're here to help.  Sometimes, we succeed.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

If you're not confused,
You're not paying attention




-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: integral() error

2011-09-04 Thread robin hankin
Hello Justin

thanks for this.

(I'm a linux user but currently getting to know macosx).

$SAGE_ROOT was null, but I can run it from the commandline by changing
to Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/
and running ./sage.

And the integral() command seems to work but I have other problems:


wt118:/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage%
./sage
--
| Sage Version 4.7.1, Release Date: 2011-08-11   |
| Type notebook() for the GUI, and license() for information.|
--
sage: 2+2
4
sage: integral(x^2,x)
1/3*x^3
sage: quit()
---
TypeError Traceback (most recent call last)

/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/ in ()

TypeError: 'str' object is not callable



I'm beginning to think I should reinstall from scratch (or indeed
compile my own).

best wishes

Robin






On Mon, Sep 5, 2011 at 9:40 AM, Justin C. Walker  wrote:
>
> On Sep 4, 2011, at 14:02 , robin hankin wrote:
>
>> Hi.
>>
>> thanks for this.
>>
>> @justin:  how do I run sage from the command line?  I  use the
>> precompiled version and am unsure how commandline sage works.
>
> You open a Terminal window, first, and make sure that window has focus.
>
> Next, switch to the directory containing the precompiled version (referred to 
> by the cognoscenti as $SAGE_ROOT):
>
>  $ cd $SAGE_ROOT
>
> (replacing "$SAGE_ROOT" with "/path/to/directory/containing/sage") (without 
> the "'s :-})
>
> Then, type
>  $ ./sage
>
> From there, you should see a banner, announcing the version number and other 
> niceties, and the sage prompt:
>  sage:
>
> From here, it's much like using the notebook, except you don't have cells, 
> you just type "return" when done, and you do have "readline" functionality 
> (using "emacs" key bindings).  I assume you know what all that jargon means, 
> and have some familiarity with shell usage.  If not, ask here for more 
> pointers, or do a little googling :-}
>
> HTH
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon at Large
> Institute for the Absorption of Federal Funds
> ---
> My wife 'n kids 'n dogs are gone,
> I can't get Jesus on the phone,
> But Ol' Milwaukee's Best is my best friend.
> ---
>
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Robin Hankin
Uncertainty Analyst
hankin.ro...@gmail.com

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: integral() error

2011-09-04 Thread Justin C. Walker

On Sep 4, 2011, at 14:02 , robin hankin wrote:

> Hi.
> 
> thanks for this.
> 
> @justin:  how do I run sage from the command line?  I  use the
> precompiled version and am unsure how commandline sage works.

You open a Terminal window, first, and make sure that window has focus.

Next, switch to the directory containing the precompiled version (referred to 
by the cognoscenti as $SAGE_ROOT):

 $ cd $SAGE_ROOT

(replacing "$SAGE_ROOT" with "/path/to/directory/containing/sage") (without the 
"'s :-})

Then, type
 $ ./sage

>From there, you should see a banner, announcing the version number and other 
>niceties, and the sage prompt:
 sage: 

>From here, it's much like using the notebook, except you don't have cells, you 
>just type "return" when done, and you do have "readline" functionality (using 
>"emacs" key bindings).  I assume you know what all that jargon means, and have 
>some familiarity with shell usage.  If not, ask here for more pointers, or do 
>a little googling :-}

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: integral() error

2011-09-04 Thread robin hankin
Hi.

thanks for this.

@justin:  how do I run sage from the command line?  I  use the
precompiled version and am unsure how commandline sage works.

@kcrisman:  'maxima_console()' appears to hang, giving message:



;;; Loading #P"/tmp/sage-mac-app/local/lib/ecl/sb-bsd-sockets.fas"
;;; Loading #P"/tmp/sage-mac-app/local/lib/ecl/sockets.fas"
;;; Loading #P"/tmp/sage-mac-app/local/lib/ecl/defsystem.fas"
;;; Loading #P"/tmp/sage-mac-app/local/lib/ecl/cmp.fas"
Maxima 5.23.2 http://maxima.sourceforge.net
using Lisp ECL 11.1.1
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1)


x.simplify() seems to hang too.


Best wishes

Robin





On Sat, Sep 3, 2011 at 12:10 AM, kcrisman  wrote:
>
>
> On Sep 1, 11:19 pm, "Justin C. Walker"  wrote:
>> On Sep 1, 2011, at 19:31 , robin hankin wrote:
>>
>> > Hi.
>>
>> > sage 4.7.1, macosx 10.6.8, firefox 5.0.
>>
>> > When I use the sage notebook the following happens:
>>
>> > var('x')
>> > integral(exp(x),x)
>>
>> > Traceback (click to the left of this block for traceback)
>> > ...
>> > RuntimeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined.
>>
>
> What happens if you do
>
> sage: maxima_console()
>
> and what happens with
>
> sage: x.simplify()
>
> (which just sends it to Maxima and back)?
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Robin Hankin
Uncertainty Analyst
hankin.ro...@gmail.com

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: integral() error

2011-09-02 Thread kcrisman


On Sep 1, 11:19 pm, "Justin C. Walker"  wrote:
> On Sep 1, 2011, at 19:31 , robin hankin wrote:
>
> > Hi.
>
> > sage 4.7.1, macosx 10.6.8, firefox 5.0.
>
> > When I use the sage notebook the following happens:
>
> > var('x')
> > integral(exp(x),x)
>
> > Traceback (click to the left of this block for traceback)
> > ...
> > RuntimeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined.
>

What happens if you do

sage: maxima_console()

and what happens with

sage: x.simplify()

(which just sends it to Maxima and back)?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: integral() error

2011-09-01 Thread Maarten Derickx
I have OS X 10.6.8 also but I don't have the same version of sage installed 
currently as you (I have sage 4.7.2.alpha2 and 4.6.1) and I don't seem to be 
able to replicate your error in both the older and the newer install. I 
don't have firefox so could you please try it from the command line (i.e. a 
sage terminal session) to rule out the unlikely case the the macsyma error 
is caused by firefox?

I guess since everything works ok for me, installing a newer version of sage 
should make your problem go away.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org