File tree 2 files changed +74
-2
lines changed
2 files changed +74
-2
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
{
13
13
"cell_type" : " code" ,
14
- "execution_count" : 3 ,
14
+ "execution_count" : 2 ,
15
15
"metadata" : {},
16
16
"outputs" : [],
17
17
"source" : [
130
130
" c = sympy.sin(x)**2 + sympy.cos(x)**2\n " ,
131
131
" c"
132
132
]
133
+ },
134
+ {
135
+ "cell_type" : " code" ,
136
+ "execution_count" : 14 ,
137
+ "metadata" : {},
138
+ "outputs" : [
139
+ {
140
+ "name" : " stdout" ,
141
+ "output_type" : " stream" ,
142
+ "text" : [
143
+ " Enter the quation in terms of x: \n " ,
144
+ " \n " ,
145
+ " x**2-1\n "
146
+ ]
147
+ },
148
+ {
149
+ "data" : {
150
+ "text/latex" : [
151
+ " $\\ displaystyle \\ left\\ {-1, 1\\ right\\ }$"
152
+ ],
153
+ "text/plain" : [
154
+ " FiniteSet(-1, 1)"
155
+ ]
156
+ },
157
+ "execution_count" : 14 ,
158
+ "metadata" : {},
159
+ "output_type" : " execute_result"
160
+ }
161
+ ],
162
+ "source" : [
163
+ " from sympy import solveset\n " ,
164
+ " x = Symbol('x')\n " ,
165
+ " print(\" Enter the quation in terms of x: \\ n\" )\n " ,
166
+ " equation = input()\n " ,
167
+ " solveset(equation)"
168
+ ]
133
169
}
134
170
],
135
171
"metadata" : {
Original file line number Diff line number Diff line change 11
11
},
12
12
{
13
13
"cell_type" : " code" ,
14
- "execution_count" : 3 ,
14
+ "execution_count" : 2 ,
15
15
"metadata" : {},
16
16
"outputs" : [],
17
17
"source" : [
130
130
" c = sympy.sin(x)**2 + sympy.cos(x)**2\n " ,
131
131
" c"
132
132
]
133
+ },
134
+ {
135
+ "cell_type" : " code" ,
136
+ "execution_count" : 14 ,
137
+ "metadata" : {},
138
+ "outputs" : [
139
+ {
140
+ "name" : " stdout" ,
141
+ "output_type" : " stream" ,
142
+ "text" : [
143
+ " Enter the quation in terms of x: \n " ,
144
+ " \n " ,
145
+ " x**2-1\n "
146
+ ]
147
+ },
148
+ {
149
+ "data" : {
150
+ "text/latex" : [
151
+ " $\\ displaystyle \\ left\\ {-1, 1\\ right\\ }$"
152
+ ],
153
+ "text/plain" : [
154
+ " FiniteSet(-1, 1)"
155
+ ]
156
+ },
157
+ "execution_count" : 14 ,
158
+ "metadata" : {},
159
+ "output_type" : " execute_result"
160
+ }
161
+ ],
162
+ "source" : [
163
+ " from sympy import solveset\n " ,
164
+ " x = Symbol('x')\n " ,
165
+ " print(\" Enter the quation in terms of x: \\ n\" )\n " ,
166
+ " equation = input()\n " ,
167
+ " solveset(equation)"
168
+ ]
133
169
}
134
170
],
135
171
"metadata" : {
You can’t perform that action at this time.
0 commit comments