Well, the behaviour is erratic, indeed. Sometimes it works, sometimes
it does not. I deleted the %hide command and then it worked once or
twice, then it didn't any more etc. Could it have something to do with
other notebooks that I have open at the same time? It's a mystery and
obviously difficult to analyse if it is not reproducible.

I put the text version of the notebook after it produced the error
below.

Stan


Bugs
system:sage

{{{id=11|
%html
<h1>For testing purposes:
///
}}}

{{{id=8|
var('ab av jbiom lwat p rwat biom veloc mort epot esv etv esb etb wv
wb qbv qvb bv')
///

(ab, av, jbiom, lwat, p, rwat, biom, veloc, mort, epot, esv, etv, esb,
etb, wv, wb, qbv, qvb, bv)
}}}

{{{id=9|
dwaterv = (av*p - esv - etv - qvb + qbv)
dwaterb = (ab*p - esb + qvb - qbv)
ab = 1 - av
qvb = veloc*wv/av
qbv = veloc*wb/ab
esv = av*lwat*(wv/av)
etv = av*rwat*(wv/av)*(bv/av)^2
esb = ab*lwat*wb/ab
dbv = jbiom*etv - mort*bv
///
}}}

{{{id=18|
%hide
%html
where av and ab are the area fractions by the vegetated and bare soil
box respectively. av+ab=1.
///

<html><font color='black'>where av and ab are the area fractions by
the vegetated and bare soil box respectively. av+ab=1.</font></html>
}}}

{{{id=19|
assume(p>0, veloc>0,
mort>0,lwat>0,jbiom>0,rwat>0,av>=0,av<=1,wv>=0,wb>=0,bv>=0)
///
}}}

{{{id=20|
dwaterv.subs(locals())
///

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/
234.py", line 6, in <module>
    exec compile(ur'dwaterv.subs(locals())' + '\n', '', 'single')
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>

NameError: name 'dwaterv' is not defined
}}}

{{{id=31|

///
}}}

{{{id=25|
dwaterv
///
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/
46.py", line 6, in <module>
    exec compile(ur'dwaterv' + '\n', '', 'single')
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>

  File "sage_object.pyx", line 92, in
sage.structure.sage_object.SageObject.__repr__ (sage/structure/
sage_object.c:795)
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4922, in _repr_
    return self._simp._repr_(simplify=False)
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
AttributeError: 'dict' object has no attribute '_repr_'
}}}

{{{id=26|
type(dwaterv)
///
<class 'sage.calculus.calculus.SymbolicArithmetic'>
}}}

{{{id=27|
dwaterv.diff
///
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/
53.py", line 6, in <module>
    exec compile(ur'dwaterv.diff' + '\n', '', 'single')
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>

  File "sage_object.pyx", line 92, in
sage.structure.sage_object.SageObject.__repr__ (sage/structure/
sage_object.c:795)
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4922, in _repr_
    return self._simp._repr_(simplify=False)
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
  File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/
sage/calculus/calculus.py", line 4928, in _repr_
    s = [x._repr_(simplify=simplify) for x in ops]
AttributeError: 'dict' object has no attribute '_repr_'
}}}

{{{id=28|
dwaterv{1}
///
Syntax Error:
    dwaterv{1}
}}}

{{{id=29|
search_src('simplify')
///
<html><font color="black"><h2>Search Source Code: simplify</h2></
font><font color="darkpurple"><ol><li><a href="/src/calculus/
all.py"><tt>calculus/all.py</tt></a>
<li><a href="/src/calculus/calculus.py"><tt>calculus/calculus.py</tt></
a>
<li><a href="/src/calculus/equations.py"><tt>calculus/equations.py</
tt></a>
<li><a href="/src/calculus/functional.py"><tt>calculus/functional.py</
tt></a>
<li><a href="/src/calculus/tests.py"><tt>calculus/tests.py</tt></a>
<li><a href="/src/calculus/wester.py"><tt>calculus/wester.py</tt></a>
<li><a href="/src/functions/constants.py"><tt>functions/constants.py</
tt></a>
<li><a href="/src/functions/elementary.py"><tt>functions/
elementary.py</tt></a>
<li><a href="/src/graphs/graph.py"><tt>graphs/graph.py</tt></a>
<li><a href="/src/interfaces/maple.py"><tt>interfaces/maple.py</tt></
a>
<li><a href="/src/libs/pari/decl.pxi"><tt>libs/pari/decl.pxi</tt></a>
<li><a href="/src/libs/pari/functional.py"><tt>libs/pari/
functional.py</tt></a>
<li><a href="/src/libs/pari/gen.pyx"><tt>libs/pari/gen.pyx</tt></a>
<li><a href="/src/libs/symmetrica/symmetrica.pxi"><tt>libs/symmetrica/
symmetrica.pxi</tt></a>
<li><a href="/src/logic/logic.py"><tt>logic/logic.py</tt></a>
<li><a href="/src/matrix/matrix_symbolic_dense.pyx"><tt>matrix/
matrix_symbolic_dense.pyx</tt></a>
<li><a href="/src/misc/sage_input.py"><tt>misc/sage_input.py</tt></a>
<li><a href="/src/plot/plot3d/transform.pyx"><tt>plot/plot3d/
transform.pyx</tt></a>
<li><a href="/src/rings/polynomial/polynomial_element.pyx"><tt>rings/
polynomial/polynomial_element.pyx</tt></a>
<li><a href="/src/rings/qqbar.py"><tt>rings/qqbar.py</tt></a>
<li><a href="/src/structure/factorization.py"><tt>structure/
factorization.py</tt></a>
</ol></font></html>
}}}

{{{id=30|

///
}}}

{{{id=39|

///
}}}
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to