5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

連立方程式|x|+|y|-2>=0 x^2+2x-2y-1>=0を表す領域をDと領域Dを平面座標に表示してその面積を求めよ



from sympy import *
from sympy.abc import *
import numpy as np
import matplotlib.pyplot as plt
x1=np.linspace(0,3)
x2=np.linspace(0,3)
x3=np.linspace(-3,0)
x4=np.linspace(-3,0)
x5=np.linspace(-3,3)
print(x1)
y1=-x1+2
y2=x2-2
y3=-(-x3-2)
y4=-x4-2

y5=(x5*x5+2*x5-1)/2
plt.ylim(-3,3)
plt.grid()
plt.plot(x1,y1)
plt.plot(x2,y2)
plt.plot(x3,y3)
plt.plot(x4,y4)
plt.plot(x5,y5)

rei48.png

5
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?