1 ❤️
上半部分:
y
=
1
−
(
∣
x
∣
−
1
)
2
y=\sqrt{1-(|x|-1)^2}
y=1−(∣x∣−1)2
下半部分:
y
=
a
r
c
c
o
s
(
1
−
∣
x
∣
)
−
π
y=arccos(1-|x|)-\pi
y=arccos(1−∣x∣)−π
2 L
y = 1 x y=\frac{1}{x} y=x1
3 O
x 2 + y 2 = 4 x^2+y^2=4 x2+y2=4
4 V
y = 2 ∣ x ∣ y=2|x| y=2∣x∣
5 E
x = − 2 ∣ s i n ( 1.5 y ) ∣ x=-2|sin(1.5y)| x=−2∣sin(1.5y)∣
% LOVE
clc;
clear;
close all
x=-2:0.01:2;
x1=0:0.01:2;
love1=sqrt(1-(abs(x)-1).^2); % 上半部分
love2=acos(1-abs(x))-pi; % 下半部分
L=1./x1;
O1=sqrt(4-x.^2);
O2=-sqrt(4-x.^2);
V=2*abs(x);
E=-2*abs(sin(1.5*x));
figure(1)
% L
subplot(1,5,1)
plot(x1,L,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);
% O
subplot(1,5,2)
plot(x,O1,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);
hold on
plot(x,O2,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);
% ❤
subplot(1,5,3)
plot(x,love1,'linewidth',5,'color','r')
hold on
plot(x,love2,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);
% V
subplot(1,5,4)
plot(x,V,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);
% E
subplot(1,5,5)
plot(E,x,'linewidth',5,'color','r')
set(gca,'XTick',[],'YTick',[]);