# Revision history [back]

### Weired frontend behaviour? Weired User?

var('e', latex_name=r'\varepsilon')

var('x d_k d_e d_m r Q')

var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12

var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5

var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}')

var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4')

e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz)

print " " p = 1/(4pie)*Q/r show( SR.symbol ('p') == p)

print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4

print " " show( SR.symbol('p_ges') == p_ges )

plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) )

========================================================

I get a very long and confusing error message when i run that work sheet.

Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function.

but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then.

But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that?

Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(args, options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found

### Weired frontend behaviour? Weired User?

var('e', latex_name=r'\varepsilon')

var('x d_k d_e d_m r Q') Q')

var('e_0', latex_name=r'\varepsilon_0')
e_0 == 8.854 * 10^-12 10^-12

var('e_s', latex_name=r'\varepsilon_s')
e_s == e_0 * 3.5 3.5

var('e_m', latex_name=r'\varepsilon_m')
e_m == e_0 * 81
var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') latex_name=r'\varepsilon_{Ersatz}')

var ('p', latex_name=r'\varphi')
var('p_ges', latex_name=r'\varphi_{ges}')
var('p_1', latex_name=r'\varphi_1')
var('p_2', latex_name=r'\varphi_2')
var('p_3', latex_name=r'\varphi_3')
var('p_4', latex_name=r'\varphi_4') latex_name=r'\varphi_4')

e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) )
show( SR.symbol('e_Ersatz') == e_Ersatz) e_Ersatz)

print " "
p = 1/(4pie)*Q/r
1/(4*pi*e)*Q/r
show( SR.symbol ('p') == p) p)

print " "
p_1 = p(e = e_m,      Q = 1, r = x)
p_2 = p(e = e_m,      Q =-1, r = d_e-x)
p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2d_k)^2+x^2))
sqrt((2*d_k)^2+x^2))
p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2d_k)^2+(d_e sqrt((2*d_k)^2+(d_e -x)^2))
p_ges = p_1 + p_2 + p_3 + p_4 p_4

print " "
show( SR.symbol('p_ges') == p_ges ) )

plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ))


========================================================

I get a very long and confusing error message when i run that work sheet.

Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function.

but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then.

But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that?

Error in lines 28-28
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute
flags=compile_flags) in namespace, locals
File "", line 1, in <module>
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper
return func(args, options)
func(*args, **options)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot
G = funcs.plot(args, funcs.plot(*args, **original_opts)
File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251)
f = self._plot_fast_callable(param)
File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630)
return fast_callable(self, vars=vars, expect_one_var=True)
File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840)
et = x._fast_callable_(etb)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic
return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0]))
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242)
return self(base)exponent
self(base)**exponent
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__
return self.symbol(ex)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol
return self.etb.var(SR(ex))
File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893)

​


### Weired frontend behaviour? Weired User?

var('e', latex_name=r'\varepsilon')

var('x d_k d_e d_m r Q')

var('e_0', latex_name=r'\varepsilon_0')
e_0 == 8.854 * 10^-12

var('e_s', latex_name=r'\varepsilon_s')
e_s == e_0 * 3.5

var('e_m', latex_name=r'\varepsilon_m')
e_m == e_0 * 81
var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}')

var ('p', latex_name=r'\varphi')
var('p_ges', latex_name=r'\varphi_{ges}')
var('p_1', latex_name=r'\varphi_1')
var('p_2', latex_name=r'\varphi_2')
var('p_3', latex_name=r'\varphi_3')
var('p_4', latex_name=r'\varphi_4')

e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) )
show( SR.symbol('e_Ersatz') == e_Ersatz)

print " "
p = 1/(4*pi*e)*Q/r
show( SR.symbol ('p') == p)

print " "
p_1 = p(e = e_m,      Q = 1, r = x)
p_2 = p(e = e_m,      Q =-1, r = d_e-x)
p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2))
p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2))
p_ges = p_1 + p_2 + p_3 + p_4

print " "
show( SR.symbol('p_ges') == p_ges )

plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) )


========================================================

I get a very long and confusing error message when i run that work sheet.

Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function.

but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then.

But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that?

Error in lines 28-28
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute
flags=compile_flags) in namespace, locals
File "", line 1, in <module>
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper
return func(*args, **options)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot
G = funcs.plot(*args, **original_opts)
File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251)
f = self._plot_fast_callable(param)
File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630)
return fast_callable(self, vars=vars, expect_one_var=True)
File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840)
et = x._fast_callable_(etb)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic
return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0]))
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242)
return self(base)**exponent
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__
return self.symbol(ex)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol
return self.etb.var(SR(ex))
File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893)

​


### Weired frontend behaviour? Weired User?

var('e', latex_name=r'\varepsilon')

latex_name=r'\varepsilon')
var('x d_k d_e d_m r Q')

Q') var('e_0', latex_name=r'\varepsilon_0')
e_0 == 8.854 * 10^-12

var('e_s', latex_name=r'\varepsilon_s')
e_s == e_0 * 3.5

var('e_m', latex_name=r'\varepsilon_m')
e_m == e_0 * 81
var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}')

var ('p', latex_name=r'\varphi')
var('p_ges', latex_name=r'\varphi_{ges}')
var('p_1', latex_name=r'\varphi_1')
var('p_2', latex_name=r'\varphi_2')
var('p_3', latex_name=r'\varphi_3')
var('p_4', latex_name=r'\varphi_4')

e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) )
show( SR.symbol('e_Ersatz') == e_Ersatz)

print " "
p = 1/(4*pi*e)*Q/r
show( SR.symbol ('p') == p)

print " "
p_1 = p(e = e_m,      Q = 1, r = x)
p_2 = p(e = e_m,      Q =-1, r = d_e-x)
p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2))
p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2))
p_ges = p_1 + p_2 + p_3 + p_4

print " "
show( SR.symbol('p_ges') == p_ges )

plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) )
======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function.  but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then.  But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute
flags=compile_flags) in namespace, locals
File "", line 1, in <module>
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper
return func(*args, **options)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot
G = funcs.plot(*args, **original_opts)
File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251)
f = self._plot_fast_callable(param)
File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630)
return fast_callable(self, vars=vars, expect_one_var=True)
File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840)
et = x._fast_callable_(etb)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__
return self.arithmetic(div, div.operator())
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic
return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0]))
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242)
return self(base)**exponent
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__
return self.arithmetic(ex, operator)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda>
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296)
return ExpressionCall(self, fn, [self(a) for a in args])
File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431)
return fc(self)
File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484)
return fast_callable(self, etb)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable
return FastCallableConverter(ex, etb)()
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__
return self.symbol(ex)
File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol
return self.etb.var(SR(ex))
File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893)



 5 None updated 2019-02-13 00:14:25 -0500 Weired frontend behaviour? Weired User? var('e', latex_name=r'\varepsilon') latex_name=r'\varepsilon') var('x d_k d_e d_m r Q') Q') var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12 var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5 var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4') e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz) print " " p = 1/(4*pi*e)*Q/r show( SR.symbol ('p') == p) print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4 print " " show( SR.symbol('p_ges') == p_ges ) plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ) ======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function. but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then. But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(*args, **options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(*args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)**exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found ​ 6 None updated 2019-02-13 00:15:27 -0500 Weired frontend behaviour? Weired User? var('e', latex_name=r'\varepsilon') latex_name=r'\varepsilon') var('x d_k d_e d_m r Q') Q') var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12 var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5 var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4') e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz) print " " p = 1/(4*pi*e)*Q/r show( SR.symbol ('p') == p) print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4 print " " show( SR.symbol('p_ges') == p_ges ) plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ) ======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function. but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then. But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(*args, **options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(*args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)**exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found ​ 7 None updated 2019-02-13 00:17:06 -0500 Weired frontend behaviour? Weired User? var('e', latex_name=r'\varepsilon') latex_name=r'\varepsilon') var('x d_k d_e d_m r Q') Q') var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12 var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5 var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4') e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz) print " " p = 1/(4*pi*e)*Q/r show( SR.symbol ('p') == p) print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4 print " " show( SR.symbol('p_ges') == p_ges ) plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ) ======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function. but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then. But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(*args, **options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(*args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)**exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found ​ 8 None updated 2019-02-13 00:17:49 -0500 Weired frontend behaviour? Weired User? var('e', latex_name=r'\varepsilon') latex_name=r'\varepsilon') var('x d_k d_e d_m r Q') Q') var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12 var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5 var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4') e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz) print " " p = 1/(4*pi*e)*Q/r show( SR.symbol ('p') == p) print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4 print " " show( SR.symbol('p_ges') == p_ges ) plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ) ======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function. but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then. But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(*args, **options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(*args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)**exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found ​ 9 None updated 2019-02-13 00:19:05 -0500 Weired frontend behaviour? Weired User? This is my code var('e', latex_name=r'\varepsilon') var('x d_k d_e d_m r Q') Q') var('e_0', latex_name=r'\varepsilon_0') e_0 == 8.854 * 10^-12 var('e_s', latex_name=r'\varepsilon_s') e_s == e_0 * 3.5 var('e_m', latex_name=r'\varepsilon_m') e_m == e_0 * 81 var('e_Ersatz', latex_name=r'\varepsilon_{Ersatz}') var ('p', latex_name=r'\varphi') var('p_ges', latex_name=r'\varphi_{ges}') var('p_1', latex_name=r'\varphi_1') var('p_2', latex_name=r'\varphi_2') var('p_3', latex_name=r'\varphi_3') var('p_4', latex_name=r'\varphi_4') e_Ersatz = d_k * ( (e_m/d_m) + (e_s/(d_k-d_m) ) ) show( SR.symbol('e_Ersatz') == e_Ersatz) print " " p = 1/(4*pi*e)*Q/r show( SR.symbol ('p') == p) print " " p_1 = p(e = e_m, Q = 1, r = x) p_2 = p(e = e_m, Q =-1, r = d_e-x) p_3 = p(e = e_Ersatz, Q =-1, r = sqrt((2*d_k)^2+x^2)) p_4 = p(e = e_Ersatz, Q = 1, r = sqrt((2*d_k)^2+(d_e -x)^2)) p_ges = p_1 + p_2 + p_3 + p_4 print " " show( SR.symbol('p_ges') == p_ges ) plot( p_ges.subs( d_e == 1, d_k == 1, d_m == .05 ), ( x,0.01,.99 ) ) ======================================================== I get a very long and confusing error message when i run that work sheet. Sometimes, if i reload the website and comment out the very first line (var('e' ...) it gives me a plot, but it thinks e is the exp function. but in fact e is supposed to be the greek epsilon and it should use the epsilons as material constants. p_ges looks good, then. But in that case, it does not manage to plot the graph. i get this error in that case. How do i fix that? Error in lines 28-28 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags) in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 492, in wrapper return func(*args, **options) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/plot/plot.py", line 1941, in plot G = funcs.plot(*args, **original_opts) File "sage/symbolic/expression.pyx", line 12059, in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63251) f = self._plot_fast_callable(param) File "sage/symbolic/expression.pyx", line 12105, in sage.symbolic.expression.Expression._plot_fast_callable (build/cythonized/sage/symbolic/expression.cpp:63630) return fast_callable(self, vars=vars, expect_one_var=True) File "sage/ext/fast_callable.pyx", line 495, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4840) et = x._fast_callable_(etb) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 124, in _fast_callable_ return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 216, in __call__ return self.arithmetic(div, div.operator()) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1772, in arithmetic return self.etb.call(_operator.truediv, 1, self.etb.call(sqrt, operands[0])) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 779, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7242) return self(base)**exponent File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 217, in __call__ return self.arithmetic(ex, operator) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in arithmetic return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1779, in <lambda> return reduce(lambda x,y: self.etb.call(operator, x,y), operands) File "sage/ext/fast_callable.pyx", line 781, in sage.ext.fast_callable.ExpressionTreeBuilder.call (build/cythonized/sage/ext/fast_callable.c:7296) return ExpressionCall(self, fn, [self(a) for a in args]) File "sage/ext/fast_callable.pyx", line 656, in sage.ext.fast_callable.ExpressionTreeBuilder.__call__ (build/cythonized/sage/ext/fast_callable.c:6431) return fc(self) File "sage/symbolic/expression.pyx", line 11942, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:62484) return fast_callable(self, etb) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1851, in fast_callable return FastCallableConverter(ex, etb)() File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 211, in __call__ return self.symbol(ex) File "/ext/sage/sage-8.6_1804/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py", line 1800, in symbol return self.etb.var(SR(ex)) File "sage/ext/fast_callable.pyx", line 728, in sage.ext.fast_callable.ExpressionTreeBuilder.var (build/cythonized/sage/ext/fast_callable.c:6893) raise ValueError("Variable '%s' not found" % var_name) ValueError: Variable 'x' not found ​ 


 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license. about | faq | help | privacy policy | terms of service Powered by Askbot version 0.7.56 Please note: Askbot requires javascript to work properly, please enable javascript in your browser, here is how //IE fix to hide the red margin var noscript = document.getElementsByTagName('noscript')[0]; noscript.style.padding = '0px'; noscript.style.backgroundColor = 'transparent'; askbot['urls']['mark_read_message'] = '/messages/markread/'; askbot['urls']['get_tags_by_wildcard'] = '/get-tags-by-wildcard/'; askbot['urls']['get_tag_list'] = '/get-tag-list/'; askbot['urls']['follow_user'] = '/followit/follow/user/{{userId}}/'; askbot['urls']['unfollow_user'] = '/followit/unfollow/user/{{userId}}/'; askbot['urls']['user_signin'] = '/account/signin/'; askbot['urls']['getEditor'] = '/get-editor/'; askbot['urls']['apiGetQuestions'] = '/api/get_questions/'; askbot['urls']['ask'] = '/questions/ask/'; askbot['urls']['questions'] = '/questions/'; askbot['settings']['groupsEnabled'] = false; askbot['settings']['static_url'] = '/m/'; askbot['settings']['minSearchWordLength'] = 4; askbot['settings']['mathjaxEnabled'] = true; askbot['settings']['sharingSuffixText'] = ''; askbot['settings']['errorPlacement'] = 'after-label'; askbot['data']['maxCommentLength'] = 800; askbot['settings']['editorType'] = 'markdown'; askbot['settings']['commentsEditorType'] = 'rich-text'; askbot['messages']['askYourQuestion'] = 'Ask Your Question'; askbot['messages']['questionSingular'] = 'question'; askbot['messages']['answerSingular'] = 'answer'; askbot['messages']['acceptOwnAnswer'] = 'accept or unaccept your own answer'; askbot['messages']['followQuestions'] = 'follow questions'; askbot['settings']['allowedUploadFileTypes'] = [ "jpg", "jpeg", "gif", "bmp", "png", "tiff" ]; askbot['data']['haveFlashNotifications'] = true; askbot['data']['activeTab'] = 'questions'; askbot['settings']['csrfCookieName'] = 'asksage_csrf'; askbot['data']['searchUrl'] = ''; /*<![CDATA[*/ $('.mceStatusbar').remove();//a hack to remove the tinyMCE status bar$(document).ready(function(){ // focus input on the search bar endcomment var activeTab = askbot['data']['activeTab']; if (inArray(activeTab, ['users', 'questions', 'tags', 'badges'])) { var searchInput = $('#keywords'); } else if (activeTab === 'ask') { var searchInput =$('#id_title'); } else { var searchInput = undefined; animateHashes(); } if (searchInput) { searchInput.focus(); putCursorAtEnd(searchInput); } var haveFullTextSearchTab = inArray(activeTab, ['questions', 'badges', 'ask']); var haveUserProfilePage = $('body').hasClass('user-profile-page'); if ((haveUserProfilePage || haveFullTextSearchTab) && searchInput && searchInput.length) { var search = new FullTextSearch(); askbot['controllers'] = askbot['controllers'] || {}; askbot['controllers']['fullTextSearch'] = search; search.setSearchUrl(askbot['data']['searchUrl']); if (activeTab === 'ask') { search.setAskButtonEnabled(false); } search.decorate(searchInput); } else if (activeTab === 'tags') { var search = new TagSearch(); search.decorate(searchInput); } if (askbot['data']['userIsAdminOrMod']) {$('body').addClass('admin'); } if (askbot['settings']['groupsEnabled']) { askbot['urls']['add_group'] = "/add-group/"; var group_dropdown = new GroupDropdown(); $('.groups-dropdown').append(group_dropdown.getElement()); } var userRep =$('#userToolsNav .reputation'); if (userRep.length) { var showPermsTrigger = new ShowPermsTrigger(); showPermsTrigger.decorate(userRep); } }); if (askbot['data']['haveFlashNotifications']) { $('#validate_email_alert').click(function(){notify.close(true)}) notify.show(); } var langNav =$('.lang-nav'); if (langNav.length) { var nav = new LangNav(); nav.decorate(langNav); } /*]]>*/ if (typeof MathJax != 'undefined') { MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], tex2jax: {inlineMath: [["$","$"],["\$","\$"]]} }); } else { console.log('Could not load MathJax'); } var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker('UA-61392941-1'); pageTracker._trackPageview(); } catch(err) {} //todo - take this out into .js file $(document).ready(function(){$('div.revision div[id^=rev-header-]').bind('click', function(){ var revId = this.id.substr(11); toggleRev(revId); }); lanai.highlightSyntax(); }); function toggleRev(id) { var arrow = $("#rev-arrow-" + id); var visible = arrow.attr("src").indexOf("hide") > -1; if (visible) { var image_path = '/m/default/media/images/expander-arrow-show.gif?v=19'; } else { var image_path = '/m/default/media/images/expander-arrow-hide.gif?v=19'; } image_path = image_path + "?v=19"; arrow.attr("src", image_path);$("#rev-body-" + id).slideToggle("fast"); } for (url_name in askbot['urls']){ askbot['urls'][url_name] = cleanUrl(askbot['urls'][url_name]); }