Spaces:
Runtime error
Runtime error
Update Artificial_Calc_Teacher_v1.8.ipynb
Browse files
Artificial_Calc_Teacher_v1.8.ipynb
CHANGED
|
@@ -119,7 +119,7 @@
|
|
| 119 |
"source": [
|
| 120 |
"from sympy.simplify.fu import TR22\n",
|
| 121 |
"from sympy import sin,cos,ln,exp,tan,Function,Derivative,Eq,Integral,Rational\n",
|
| 122 |
-
"from sympy import factor_terms,simplify, sqrt
|
| 123 |
"from sympy.abc import x\n",
|
| 124 |
"import random\n",
|
| 125 |
"f = Function('f')\n",
|
|
@@ -135,7 +135,7 @@
|
|
| 135 |
" return x*random_value\n",
|
| 136 |
" def addSUBTR_function(x): \n",
|
| 137 |
" return x+random_value\n",
|
| 138 |
-
" funs = [sin,power_function,ln,exp,cos,tan,sqrt,
|
| 139 |
" scalar_function,addSUBTR_function] \n",
|
| 140 |
" operations = [f(g(x)),f(x)+g(x),f(x)-g(x),f(x)/g(x),f(x)*g(x), f(x)/g(x)/h(x),f(x)*g(h(x)),\n",
|
| 141 |
" f(g(h(x))),f(h(x))+g(x),f(h(x))-g(x),f(h(x))/g(x),f(x)/g(h(x)),f(h(x))*g(x), f(x)*g(x)*h(x)]\n",
|
|
@@ -153,7 +153,7 @@
|
|
| 153 |
" return x*random_value\n",
|
| 154 |
" def addSUBTR_function(x): \n",
|
| 155 |
" return x+random_value\n",
|
| 156 |
-
" funs = [sin,power_function,ln,exp,cos,tan,sqrt,
|
| 157 |
" scalar_function,addSUBTR_function] \n",
|
| 158 |
" operations = [f(g(x)),f(x)+g(x),f(x)-g(x),f(x)/g(x),f(x)*g(x)]\n",
|
| 159 |
" operation = operations[random.randrange(0,len(operations))]\n",
|
|
|
|
| 119 |
"source": [
|
| 120 |
"from sympy.simplify.fu import TR22\n",
|
| 121 |
"from sympy import sin,cos,ln,exp,tan,Function,Derivative,Eq,Integral,Rational\n",
|
| 122 |
+
"from sympy import factor_terms,simplify, sqrt\n",
|
| 123 |
"from sympy.abc import x\n",
|
| 124 |
"import random\n",
|
| 125 |
"f = Function('f')\n",
|
|
|
|
| 135 |
" return x*random_value\n",
|
| 136 |
" def addSUBTR_function(x): \n",
|
| 137 |
" return x+random_value\n",
|
| 138 |
+
" funs = [sin,power_function,ln,exp,cos,tan,sqrt,\n",
|
| 139 |
" scalar_function,addSUBTR_function] \n",
|
| 140 |
" operations = [f(g(x)),f(x)+g(x),f(x)-g(x),f(x)/g(x),f(x)*g(x), f(x)/g(x)/h(x),f(x)*g(h(x)),\n",
|
| 141 |
" f(g(h(x))),f(h(x))+g(x),f(h(x))-g(x),f(h(x))/g(x),f(x)/g(h(x)),f(h(x))*g(x), f(x)*g(x)*h(x)]\n",
|
|
|
|
| 153 |
" return x*random_value\n",
|
| 154 |
" def addSUBTR_function(x): \n",
|
| 155 |
" return x+random_value\n",
|
| 156 |
+
" funs = [sin,power_function,ln,exp,cos,tan,sqrt,\n",
|
| 157 |
" scalar_function,addSUBTR_function] \n",
|
| 158 |
" operations = [f(g(x)),f(x)+g(x),f(x)-g(x),f(x)/g(x),f(x)*g(x)]\n",
|
| 159 |
" operation = operations[random.randrange(0,len(operations))]\n",
|