€csage.server.notebook.notebook Notebook q)q}q(U_Notebook__worksheetsq}q(Umath2q(csage.server.notebook.worksheet Worksheet qoq}q (U_Worksheet__filenameq Umath2q U_Worksheet__cellsq ]q ((csage.server.notebook.cell Cell qoq}q(U _Cell__inqUaU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsq‰U_Cell__introspectq‰U_Cell__out_htmlqUU	_Cell__idqMU_Cell__is_htmlq‰U_before_preparseqULos.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/math2/cells/0")
aqU
_Cell__dirqU&sage_notebook/worksheets/math2/cells/0qU
_Cell__outqT]
Timeout exceeded in read_nonblocking().

version: 2.0 ($Revision: 1.151 $)
command: /Volumes/HOME/bin/math
args: ['/Volumes/HOME/bin/math']
patterns:
    In[[0-9]+]:=
buffer (last 100 chars): 
before (last 100 chars): Mathematica 5.2 for Mac OS X
Copyright 1988-2005 Wolfram Research, Inc.

after: 
match: None
match_index: None
exitstatus: None
flag_eof: 0
pid: 8660
child_fd: 3
timeout: 30
delimiter: 
logfile: None
maxread: 100
searchwindowsize: None
delaybeforesend: 0
Exception pexpect.ExceptionPexpect: ExceptionPexpect() in > ignored
Traceback (most recent call last):
  File "", line 1, in 
  File "/Volumes/HOME/Desktop/a/sage_notebook/worksheets/math2/code/1.py", line 4, in 
    print _support_.syseval(mathematica, ur'''a''')
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/server/support.py", line 283, in syseval
    return system.eval(cmd)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 321, in eval
    s = Expect.eval(self, code)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 411, in eval
    return '\n'.join([self._eval_line(L) for L in code.split('\n') if L != ''])
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 367, in _eval_line
    allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 350, in _eval_line
    self._start()
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 268, in _start
    raise RuntimeError, "Unable to start %s"%self.__name
RuntimeError: Unable to start mathematicaqUhas_new_outputq ‰U_Cell__sageq!csage.interfaces.sage0
reduce_load_Sage
q")Rq#U_Cell__versionq$KU_Cell__typeq%Uwrapq&U_Cell__timeq'‰U_Cell__interruptedq(‰ub(hoq)}q*(hUbhU!
q+hhh‰h‰hUhMh‰hULos.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/math2/cells/1")
bq,hU&sage_notebook/worksheets/math2/cells/1q-hT”

Traceback (most recent call last):
  File "", line 1, in 
  File "/Volumes/HOME/Desktop/a/sage_notebook/worksheets/math2/code/2.py", line 4, in 
    print _support_.syseval(mathematica, ur'''b''')
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/server/support.py", line 283, in syseval
    return system.eval(cmd)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 321, in eval
    s = Expect.eval(self, code)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 411, in eval
    return '\n'.join([self._eval_line(L) for L in code.split('\n') if L != ''])
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 367, in _eval_line
    allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 350, in _eval_line
    self._start()
  File "/Volumes/HOME/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 226, in _start
    raise RuntimeError, 'Unable to start %s (%s failed to start during this SAGE session; not attempting to start again)\n%s'%(self.__name, self.__name, self._install_hints())
RuntimeError: Unable to start mathematica (mathematica failed to start during this SAGE session; not attempting to start again)

In order to use the Mathematica interface you need to have Mathematica
installed and have a script in your PATH called "math" that runs the
command-line version of Mathematica. 

  (1) You might have to buy Mathematica (for at most $1880) at
      http://www.wolfram.com/.
      
  (2) * LINUX: The math script comes standard with your Mathematica install.
        

      * APPLE OS X:
          (a) create a file called math (in your PATH):
              #!/bin/sh
              /Applications/Mathematica\ 5.2.app/Contents/MacOS/MathKernel $@

          Note that the 5.2 part will depend on the version of
          Mathematica you have, and the above path could be different
          if you installed mathematica elsewhere.
          
          (b) Make the file executable. 
                chmod +x math

      * WINDOWS:
        The following only works with SAGE for Cygwin (not colinux).
        Note that SAGE colinux is the preferred way to run SAGE in Windows,
        and I do not know how to use mathematica from colinux SAGE (unless
        you install Mathematica-for-linux into the colinux machine, which
        is possible).

        Create a file named "math", which you place in the SAGE root
        directory.  The file contained a single line, which was the
        path to the mathematica math.exe file.  In my case, this might be:

        C:/Program Files/Wolfram Research/Mathematica/4.0/math.exe

        The key points are 
        1) there is a file named "math.exe", and it will generally be
           located in a place analagous to the above (depending on where
           Mathematica has been installed).  This file is used only for
           launching the kernel with a text-based interface.
        2) a cygwin batch file must be created which executes this file,
           which means using forward slashes rather than back slashes,
           and probably surrounding everything in quotes
        3) this cygwin batch file must be on the path for SAGE (placing
           it in /local/bin/ is an easy way to ensure this).
q.h ‰h!h#h$Kh%h&h'‰h(‰ub(hoq/}q0(hUhhh‰hUhMhU&sage_notebook/worksheets/math2/cells/2q1hUh ‰h$Kh%h&h(‰ubeU_Worksheet__synchroq2KU_Worksheet__comp_is_runningq3‰U_Worksheet__dirq4Usage_notebook/worksheets/math2q5U_Worksheet__attachedq6}q7U_Worksheet__passcodeq8U
11G3BJNEUV/Pkq9U_Worksheet__queueq:]q;U_Worksheet__next_idqUmath2q?U_Worksheet__saltq@U1163810142.380190qAU_Worksheet__notebookqBhU_Worksheet__next_block_idqCKU_Worksheet__idqDKU_Worksheet__systemqEUmathematicaqFubU	_scratch_qG(hoqH}qI(U_Worksheet__filenameqJU	_scratch_qKU_Worksheet__cellsqL]qM((hoqN}qO(U	_Cell__inqPU1/2qQU_Cell__introspect_htmlqRU!
qSU_Cell__worksheetqThHU_Cell__completionsqU‰U_Cell__introspectqV‰U_Cell__out_htmlqWUU	_Cell__idqXKU_Cell__is_htmlqY‰U_before_preparseqZURos.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/_scratch_/cells/0")
1/2q[U
_Cell__dirq\U*sage_notebook/worksheets/_scratch_/cells/0q]U
_Cell__outq^U 
        1
        -
        2

q_Uhas_new_outputq`‰U_Cell__versionqaKU_Cell__sageqbh")RqcU_Cell__typeqdh&U_Cell__timeqe‰U_Cell__interruptedqf‰ub(hoqg}qh(hPUBernoulliB[100]qihU!
qjhThHhU‰h‰hWUhXKh‰hU^os.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/_scratch_/cells/1")
BernoulliB[100]qkh\U*sage_notebook/worksheets/_scratch_/cells/1qlh^Us
        -(9459803781912212529522743306949372187270284153306693613338569620431 
>       1395415197247711 / 33330)

qmh`‰h!hchaKhdUwrapqnh'‰hf‰ub(hoqo}qp(hUExpand[(x+10)^100]qqhU!
qrhhHh‰h‰hUhKh‰hUaos.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/_scratch_/cells/2")
Expand[(x+10)^100]qshU*sage_notebook/worksheets/_scratch_/cells/2qthTC1
        100000000000000000000000000000000000000000000000000000000000000000000 
>     00000000000000000000000000000000 + 
 
>    100000000000000000000000000000000000000000000000000000000000000000000000 
>      000000000000000000000000000000 x + 
 
>    495000000000000000000000000000000000000000000000000000000000000000000000 
                                       2
>      000000000000000000000000000000 x  + 
 
>    161700000000000000000000000000000000000000000000000000000000000000000000 
                                        3
>      0000000000000000000000000000000 x  + 
 
>    392122500000000000000000000000000000000000000000000000000000000000000000 
                                        4
>      0000000000000000000000000000000 x  + 
 
>    752875200000000000000000000000000000000000000000000000000000000000000000 
                                        5
>      0000000000000000000000000000000 x  + 
 
>    119205240000000000000000000000000000000000000000000000000000000000000000 
                                         6
>      00000000000000000000000000000000 x  + 
 
>    160075608000000000000000000000000000000000000000000000000000000000000000 
                                         7
>      00000000000000000000000000000000 x  + 
 
>    186087894300000000000000000000000000000000000000000000000000000000000000 
                                         8
>      00000000000000000000000000000000 x  + 
 
>    190223180840000000000000000000000000000000000000000000000000000000000000 
                                         9
>      00000000000000000000000000000000 x  + 
 
>    173103094564400000000000000000000000000000000000000000000000000000000000 
                                         10
>      00000000000000000000000000000000 x   + 
 
>    141629804643600000000000000000000000000000000000000000000000000000000000 
                                         11
>      00000000000000000000000000000000 x   + 
 
>    105042105110670000000000000000000000000000000000000000000000000000000000 
                                         12
>      00000000000000000000000000000000 x   + 
 
>    711054249979920000000000000000000000000000000000000000000000000000000000 
                                        13
>      0000000000000000000000000000000 x   + 
 
>    441869426773236000000000000000000000000000000000000000000000000000000000 
                                        14
>      0000000000000000000000000000000 x   + 
 
>    253338471349988640000000000000000000000000000000000000000000000000000000 
                                        15
>      0000000000000000000000000000000 x   + 
 
>    134586062904681465000000000000000000000000000000000000000000000000000000 
                                        16
>      0000000000000000000000000000000 x   + 
 
>    665013487293720180000000000000000000000000000000000000000000000000000000 
                                       17
>      000000000000000000000000000000 x   + 
 
>    306645108029882083000000000000000000000000000000000000000000000000000000 
                                       18
>      000000000000000000000000000000 x   + 
 
>    132341572939212267400000000000000000000000000000000000000000000000000000 
                                       19
>      000000000000000000000000000000 x   + 
 
>    535983370403809682970000000000000000000000000000000000000000000000000000 
                                      20
>      00000000000000000000000000000 x   + 
 
>    204184141106213212560000000000000000000000000000000000000000000000000000 
                                      21
>      00000000000000000000000000000 x   + 
 
>    733206688517765626920000000000000000000000000000000000000000000000000000 
                                     22
>      0000000000000000000000000000 x   + 
 
>    248652703062546603912000000000000000000000000000000000000000000000000000 
                                     23
>      0000000000000000000000000000 x   + 
 
>    797760755659003687551000000000000000000000000000000000000000000000000000 
                                    24
>      000000000000000000000000000 x   + 
 
>    242519269720337121015504000000000000000000000000000000000000000000000000 
                                    25
>      000000000000000000000000000 x   + 
 
>    699574816500972464467800000000000000000000000000000000000000000000000000 
                                   26
>      00000000000000000000000000 x   + 
 
>    191735320078044305076360000000000000000000000000000000000000000000000000 
                                   27
>      00000000000000000000000000 x   + 
 
>    499881370203472652520510000000000000000000000000000000000000000000000000 
                                  28
>      0000000000000000000000000 x   + 
 
>    124108478119482865453368000000000000000000000000000000000000000000000000 
                                  29
>      0000000000000000000000000 x   + 
 
>    293723398216109448239637600000000000000000000000000000000000000000000000 
                                 30
>      000000000000000000000000 x   + 
 
>    663246383068634237960472000000000000000000000000000000000000000000000000 
                                31
>      00000000000000000000000 x   + 
 
>    143012501349174257560226775000000000000000000000000000000000000000000000 
                                32
>      00000000000000000000000 x   + 
 
>    294692427022540894366527900000000000000000000000000000000000000000000000 
                               33
>      0000000000000000000000 x   + 
 
>    580717429720889409486981450000000000000000000000000000000000000000000000 
                              34
>      000000000000000000000 x   + 
 
>    109506715318796288646116502000000000000000000000000000000000000000000000 
                              35
>      000000000000000000000 x   + 
 
>    197720458214493298944377017500000000000000000000000000000000000000000000 
                             36
>      00000000000000000000 x   + 
 
>    342002954749393814390273760000000000000000000000000000000000000000000000 
                            37
>      0000000000000000000 x   + 
 
>    567004898663468692278611760000000000000000000000000000000000000000000000 
                           38
>      000000000000000000 x   + 
 
>    901392403003463049263434080000000000000000000000000000000000000000000000 
                          39
>      00000000000000000 x   + 1374623414580281150126736972000000000000000000 
                                                    40
>      0000000000000000000000000000000000000000000 x   + 
 
>    201164402133699680506351752000000000000000000000000000000000000000000000 
                         41
>      0000000000000000 x   + 28258808871162574166368460400000000000000000000 
                                                 42
>      0000000000000000000000000000000000000000 x   + 
 
>    381165328959867279453342024000000000000000000000000000000000000000000000 
                       43
>      00000000000000 x   + 4937823579707371574736476220000000000000000000000 
                                             44
>      000000000000000000000000000000000000 x   + 
 
>    614484712141361795967205929600000000000000000000000000000000000000000000 
                     45
>      000000000000 x   + 734709981908149973439050568000000000000000000000000 
                                         46
>      00000000000000000000000000000000 x   + 
 
>    844134872830640395015079376000000000000000000000000000000000000000000000 
                   47
>      0000000000 x   + 93206558875049876949581681100000000000000000000000000 
                                     48
>      0000000000000000000000000000 x   + 
 
>    989130828878080326811887228000000000000000000000000000000000000000000000 
                 49
>      00000000 x   + 1008913445455641933348124972560000000000000000000000000 
                                  50
>      0000000000000000000000000 x   + 
 
>    989130828878080326811887228000000000000000000000000000000000000000000000 
               51
>      000000 x   + 932065588750498769495816811000000000000000000000000000000 
                             52
>      00000000000000000000 x   + 
 
>    844134872830640395015079376000000000000000000000000000000000000000000000 
             53
>      0000 x   + 73470998190814997343905056800000000000000000000000000000000 
                         54
>      0000000000000000 x   + 61448471214136179596720592960000000000000000000 
                                    55
>      000000000000000000000000000 x   + 
 
>    49378235797073715747364762200000000000000000000000000000000000000000000 
           56
>      00 x   + 3811653289598672794533420240000000000000000000000000000000000 
                    57
>      00000000000 x   + 2825880887116257416636846040000000000000000000000000 
                            58
>      0000000000000000000 x   + 
 
>    2011644021336996805063517520000000000000000000000000000000000000000000 
 
       59
>     x   + 13746234145802811501267369720000000000000000000000000000000000000 
             60
>      0000 x   + 90139240300346304926343408000000000000000000000000000000000 
                 61
>      00000000 x   + 5670048986634686922786117600000000000000000000000000000 
                    62
>      00000000000 x   + 3420029547493938143902737600000000000000000000000000 
                      63
>      0000000000000 x   + 19772045821449329894437701750000000000000000000000 
                       64
>      00000000000000 x   + 1095067153187962886461165020000000000000000000000 
                       65
>      00000000000000 x   + 5807174297208894094869814500000000000000000000000 
                     66
>      000000000000 x   + 294692427022540894366527900000000000000000000000000 
                  67
>      000000000 x   + 143012501349174257560226775000000000000000000000000000 
              68
>      00000 x   + 663246383068634237960472000000000000000000000000000000000 
 
       69                                                             70
>     x   + 29372339821610944823963760000000000000000000000000000000 x   + 
 
                                                              71
>    1241084781194828654533680000000000000000000000000000000 x   + 
 
                                                            72
>    49988137020347265252051000000000000000000000000000000 x   + 
 
                                                           73
>    1917353200780443050763600000000000000000000000000000 x   + 
 
                                                         74
>    69957481650097246446780000000000000000000000000000 x   + 
 
                                                        75
>    2425192697203371210155040000000000000000000000000 x   + 
 
                                                      76
>    79776075565900368755100000000000000000000000000 x   + 
 
                                                     77
>    2486527030625466039120000000000000000000000000 x   + 
 
                                                   78
>    73320668851776562692000000000000000000000000 x   + 
 
                                                  79
>    2041841411062132125600000000000000000000000 x   + 
 
                                                80
>    53598337040380968297000000000000000000000 x   + 
 
                                               81
>    1323415729392122674000000000000000000000 x   + 
 
                                             82
>    30664510802988208300000000000000000000 x   + 
 
                                           83
>    665013487293720180000000000000000000 x   + 
 
                                          84
>    13458606290468146500000000000000000 x   + 
 
                                        85
>    253338471349988640000000000000000 x   + 
 
                                      86
>    4418694267732360000000000000000 x   + 
 
                                    87                                 88
>    71105424997992000000000000000 x   + 1050421051106700000000000000 x   + 
 
                                 89                             90
>    14162980464360000000000000 x   + 173103094564400000000000 x   + 
 
                             91                         92
>    1902231808400000000000 x   + 18608789430000000000 x   + 
 
                         93                     94                  95
>    160075608000000000 x   + 1192052400000000 x   + 7528752000000 x   + 
 
                  96              97           98         99    100
>    39212250000 x   + 161700000 x   + 495000 x   + 1000 x   + x

quh ‰h!hch$Kh%h&h'‰h(‰ub(hoqv}qw(hUb := 5qxhU!
qyhhHh‰h‰hUhKh‰hUUos.chdir("/Volumes/HOME/Desktop/a/sage_notebook/worksheets/_scratch_/cells/3")
b := 5qzhU*sage_notebook/worksheets/_scratch_/cells/3q{hU


q|h ‰h!hch$Kh%h&h'‰h(‰ub(hoq}}q~(hUhhHh‰hUhKhU*sage_notebook/worksheets/_scratch_/cells/4qhUh ‰h$Kh%h&h(‰ubeU_Worksheet__synchroq€KU_Worksheet__nameqU	_scratch_q‚U_Worksheet__attachedqƒ}q„U_Worksheet__saltq…U1163810057.189030q†U_Worksheet__dirq‡U"sage_notebook/worksheets/_scratch_qˆU_Worksheet__queueq‰]qŠU_Worksheet__next_idq‹KU_Worksheet__passcryptqŒˆU_Worksheet__comp_is_runningq‰U_Worksheet__passcodeqŽU
11G3BJNEUV/PkqU_Worksheet__notebookqhU_Worksheet__idq‘KU_Worksheet__next_block_idq’KU_Worksheet__systemq“hFubuU_Notebook__historyq”]q•(UO# Worksheet '_scratch_' (2006-11-17 at 16:34)
sage: 1/2

1
 -
        2


q–UU# Worksheet '_scratch_' (2006-11-17 at 16:34)
sage: 1/2
        1
        -
        2q—UY# Worksheet '_scratch_' (2006-11-17 at 16:35)
sage: Bernoulli[100]
        Bernoulli[100]q˜U´# Worksheet '_scratch_' (2006-11-17 at 16:35)
sage: BernoulliB[100]
        -(9459803781912212529522743306949372187270284153306693613338569620431 
>       1395415197247711 / 33330)q™Uc# Worksheet '_scratch_' (2006-11-17 at 16:35)
sage: (x+10)^100
                100
        (10 + x)qšT# Worksheet '_scratch_' (2006-11-17 at 16:35)
sage: Expand[(x+10)^100]
        100000000000000000000000000000000000000000000000000000000000000000000 
>     00000000000000000000000000000000 + 
 
>    100000000000000000000000000000000000000000000000000000000000000000000000 
>      000000000000000000000000000000 x + 
 
>    495000000000000000000000000000000000000000000000000000000000000000000000 
                                       2
>      000000000000000000000000000000 x  + 
 
>    161700000000000000000000000000000000000000...q›U;# Worksheet '_scratch_' (2006-11-17 at 16:35)
sage: b := 5
qœT# Worksheet 'math2' (2006-11-17 at 16:36)
sage: a
Timeout exceeded in read_nonblocking().

version: 2.0 ($Revision: 1.151 $)
command: /Volumes/HOME/bin/math
args: ['/Volumes/HOME/bin/math']
patterns:
    In[[0-9]+]:=
buffer (last 100 chars): 
before (last 100 chars): Mathematica 5.2 for Mac OS X
Copyright 1988-2005 Wolfram Research, Inc.

after: 
match: None
match_index: None
exitstatus: None
flag_eof: 0
pid: 8660
child_fd: 3
timeout: 30
delimi...qT# Worksheet 'math2' (2006-11-17 at 16:36)
sage: b
Traceback (most recent call last):
...
RuntimeError: Unable to start mathematica (mathematica failed to start during this SAGE session; not attempting to start again)

In order to use the Mathematica interface you need to have Mathematica
installed and have a script in your PATH called "math" that runs the
command-line version of Mathematica. 

  (1) You might have to buy Mathematica (for at most $1880) at
      http://www.wolfram.com/.
      
  (2) * LINU...qžeU_Notebook__defaultsqŸ}q (Ucell_output_colorq¡U#0000EEq¢Umax_history_lengthq£MôUcell_input_colorq¤U#0000000q¥Uword_wrap_colsq¦KduU_Notebook__worksheet_dirq§Usage_notebook/worksheetsq¨U_Notebook__filenameq©Usage_notebook/nb.sobjqªU_Notebook__default_worksheetq«hHU_Notebook__next_worksheet_idq¬KU_default_filenameq­U-/Volumes/HOME/Desktop/a/sage_notebook/nb.sobjq®U_Notebook__systemq¯hFU_Notebook__show_debugq°‰U_Notebook__dirq±U
sage_notebookq²U_Notebook__authq³U:U_Notebook__colorq´NU_Notebook__object_dirqµUsage_notebook/objectsq¶ub.