# 기초수학 실습 - 길한얼 2016-01-18

## 2395 days 전, charta 작성

#지수함수와 로그함수의 그래프 그리기 f(x)=4^(-x) plot(f(x), (x, -3, 3), ymax=30)
f(x)=2^(-abs(x)) plot(f(x), (x, -3, 3), ymax=2)
f(x)=-(1/2)^x plot(f(x), (x, -3, 3))
f(x)=(1/2)^x+(1/2)^(-x) plot(f(x), (x, -3, 3))
f(x)=2^x g(x)=2^x+2 h(x)=2^(x+1)-2 plot(f(x), (x, -3, 3))+plot(g(x), (x, -3, 3), color='red')+plot(h(x), (x, -3, 3),color='black')
f(x)=log(x,2) g(x)=log(x-2,2) h(x)=log(x,2)+3 t(x)=log(x-2,2)+3 plot(f(x), (x, 0, 5))+plot(g(x), (x, 2, 5), color='red')+plot(h(x), (x, 0, 5),color='black')+plot(t(x), (x, 2, 5), color='green')
f(x)=log(abs(x), 10) plot(f, (x, -3, 3), ymin=-1)
f(x)=abs(log(x, 10)) plot(f, (x, 0, 3))
# 간단한 지수방정식과 로그방정식 풀기 solve((1/2)^x==4,x)
 [x == -2] [x == -2]
solve(1/27==x^(-1),x)
 [x == 27] [x == 27]
solve(exp(3+3*x)==exp(-8*x), x)
 [x == (-3/11)] [x == (-3/11)]
solve(log(1/8,x)==-1/3,x)
 [x == 512] [x == 512]
solve(log(x,16)==1/2,x)
 [x == e^(1/2*log(16))] [x == e^(1/2*log(16))]
solve(log(log(x,2),2)==1,x)
 [x == 4] [x == 4]
solve(exp(x)-5+6*exp(-x)==0,x)
 [x == log(3), x == log(2)] [x == log(3), x == log(2)]
solve(log(x^2)==(log(x))^2,x)
 [log(x^2) == log(x)^2] [log(x^2) == log(x)^2]
#삼각함수의 그래프 그리기 f(x)=sin(x) plot(f(x), (x, -pi, 3*pi))
f(x)=cos(x) plot(f(x), (x, -pi, 3*pi))
f(x)=tan(x) plot(f(x), (x, -pi, 3*pi), ymax=5, ymin=-5)
f(x)=sin(x) g(x)=2*sin(x) h(x)=(1/2)*sin(x) p1=plot(f(x), (x, -2*pi, 2*pi)) #기본크기 p2=plot(g(x), (x, -2*pi, 2*pi), color='red') #두배크기 p3=plot(h(x), (x, -2*pi, 2*pi), color='green') #절반크기 p1+p2+p3
f(x)=sin(x) t(x)=sin(2*x) u(x)=sin((1/2)*x) p1=plot(f(x), (x, -2*pi, 2*pi)) # 기본주기 p4=plot(t(x), (x, -2*pi, 2*pi), color='black') #두배주기 p5=plot(u(x), (x, -2*pi, 2*pi), color='yellow') #절반주기 p1+p4+p5
f(x)=cos(x) g(x)=cos(x-1)+2 plot(f(x), (x, -2*pi, 2*pi))+plot(g(x), (x, -2*pi, 2*pi), color='red')+plot(1, (x, -2*pi, 2*pi), color='green')
f(x)=4*sin(x-1)+2 plot(f(x), (x, -2*pi, 2*pi))
f(x)=sin(abs(x)) plot(f(x), (x, -2*pi, 2*pi))
f(x)=abs(cos(x-pi/2)) plot(f(x), (x, -2*pi, 2*pi))
f(x)=sin(x)+sin(2*x) plot(f(x), (x, -2*pi, 2*pi))
f(x)=cot(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)
f(x)=cot(x) g(x)=tan(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)+plot(g(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10, color='red')
f(x)=sec(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)
f(x)=sec(x) g(x)=cos(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)+plot(g(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10, color='red')
f(x)=csc(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)
f(x)=csc(x) g(x)=sin(x) plot(f(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10)+plot(g(x), (x, -2*pi, 2*pi), ymax=10, ymin=-10, color='red')