Programming Assignment #02 (Section 4)

In [1]:
import math
import matplotlib.pyplot as plt
#------------------------------------
def setup_T(min_t, max_t, dt):
    T = []; t = min_t
    while t <= max_t:             
        T.append(t)
        t += dt
    if t != max_t: T.append(max_t)
    return T
#------------------------------------
def plot(x, y, min_t, max_t, dt):
    T = setup_T(min_t, max_t, dt)
    X = [x(t) for t in T] 
    Y = [y(t) for t in T]
    plt.plot( X, Y, 'blue' )
#====================================

Prog-02: Beautiful Parametric Equations
?????????? ???? ????
$ x(t) = 11cos(t)-6cos(11t/6) $
$ y(t) = 11sin(t)-6sin(11t/6) $
โปรแกรมนี้วาดลูกบอลลวดลายดาวได้สวยงามสุดๆ
ขอยืนยันว่าผมเป็นผู้เลือกสมการและมาเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [2]:
def x(t):
    xt = 11*math.cos(t)-6*math.cos(11*t/6)
    return xt

def y(t):
    yt = 11*math.sin(t)-6*math.sin(11*t/6)
    return yt

plot(x, y, -20,20 , 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=cos(7t)cos(3t)$
$y(t)=cos(7t)sin(3t)$
โปรแกรมนี้วาดลวดลายได้ออกมาน่ารักและสวยงาม
ดิฉันเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [3]:
def x(t):
    xt =  math.cos(7*t)*math.cos(3*t)
    return xt

def y(t):
    yt =  math.cos(7*t)*math.sin(3*t)

    return yt

plot(x, y, 0, 2*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric
?????????? ???? ????
$ x(t) = \cos(1t)-(\cos(80t))^3 $
$ y(t) = \sin(t)-(\sin(40t))^4 $
เป็นโปรแกรมที่น่าเหลือเชื่อมากที่สามารถสร้างกราฟที่มีลายเส้นสวดงามและความละเอียดสูงมาก
ผมเป็นคนเลือกรูปภาพนี้เองและเป็นคนที่เขียนนิพจน์คณิตศาสตร์ขึ้นมาด้วยตนเอง

In [4]:
def x(t):
    xt = math.cos(1*t)-(math.cos(80*t))**3
    return xt

def  y(t):
    yt = math.sin(1*t)-(math.sin(40*t))**4
    return yt
plot(x,y,-10,10,0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x(t) = 15sin(30t)-9\pi tcos(50t) $
$ y(t) = 17cos(30t)-4sin(50t) $
โปรแกรมนี้วาดลวดลายที่แปลกตาไม่เหมือนใคร
ผมเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [5]:
def x(t):
    xt = 15*math.sin(30*t)-9*math.cos(50*t)*math.pi*t
    return xt
def y(t):
    yt = 17*math.cos(30*t)-4*math.sin(50*t)
    return yt
plot(x, y, 0, 2*math.pi, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=7cos(t) + 4cos(7t/3)$
$y(t)=7sin(t) - 4sin(7t/3)$
งานนี้สวยสุดแล้ว
ผมทำงานนี้เองทั้งหมดครับ

In [6]:
def x(t):
    xt = 7*math.cos(t) + 4*math.cos(7*t/3)
    return xt

def y(t):
    yt = 7*math.sin(t) - 4*math.sin(7*t/3)
    return yt

plot(x, y, -15, 15, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=2cos(t)+sin(2t)cos(60t)$
$y(t)=sin(2t)+sin(60t)$
โปรแกรมนี้แสดงภาพกราฟสมการพาราเมตริกซ์ที่สวยงาม
ผมขอยืนยันว่าเป็นผู้เขียนโปรแกรมนี้ด้วยตัวเอง

In [7]:
def x(t): 
    xt = 2*math.cos(t)+(math.sin(2*t)*math.cos(60*t))
    return xt

def y(t):
    yt = math.sin(2*t)+math.sin(60*t)
    return yt

plot(x, y, 0, 2*math.pi, 0.0001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x = rcos(\theta) $
$ y = rsin(\theta) $
$ z = \theta $
โปรแกรมนี้สามารถทำรูปออกมาได้สร้างสรรค์และยังสามารถทำรูปเป็น 3 มิติได้อีกด้วย
ผมเป็นผู้เลือกสมการข้างต้นด้วยตนเองและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง

In [8]:
# Prog-02: Beautiful Parametric Equation
# 6330120021 ญาณภัทร อมรสมานกุล
# $ x = rcos(\theta) $
# $ y = rsin(\theta) $
# $ z = \theta $
# โปรแกรมนี้สามารถทำรูปออกมาได้สร้างสรรค์และยังสามารถทำรูปเป็น 3 มิติได้อีกด้วย
# ผมเป็นผู้เลือกสมการข้างต้นด้วยตนเองและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง


import math
import numpy as np

r   = 2
tht = np.linspace(0, 15* np.pi, 1000)

x = r* np.cos(tht)
y = r* np.sin(tht)
z = tht

import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d

fig = plt.figure('Parametric curves')
ax  = fig.add_subplot(111, projection='3d')

ax.plot(x, y, z, '-r', linewidth = 3)

ax.set_xlabel('X', fontweight = 'bold', fontsize = 15)
ax.set_ylabel('Y', fontweight = 'bold', fontsize = 15)
ax.set_zlabel('Z', fontweight = 'bold', fontsize = 15)

plt.title('Parametric Curve', fontweight = 'bold', fontsize = 16)


plt.show()

# reference https://github.com/PyPhy/Python/blob/master/Maths/Parametric_equation.py

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=cos(19t)+cos(3t)/2+sin(16t)/3$
$y(t)=sin(19t)+sin(3t)/2+cos(16t)/3$
วาดได้ลายอลังการสวยงามดีค่ะ
เป็นคนค้นคว้าหาสมการนี้และเขียนนิพจน์คณิตศาสตร์ด้วยตัวเองค่ะ

In [9]:
def x(t):
  xt = math.cos(19*t)+math.cos(3*t)/2+math.sin(16*t)/3
  return xt

def y(t):
  yt = math.sin(19*t)+math.sin(3*t)/2+math.cos(16*t)/3
  return yt

plot(x, y, -4, 4, 0.005)
plt.show()

Prog-02 : Beautiful Parametric Equation
?????????? ???? ????
$x(t)=12cos(-11/4t)+7cos(t)$
$y(t)=12sin(-11/4t)+7sin(t)$
โปรแกรมนี้เขียนด้วยความตั้งใจและเขยนด้วยความดีเลิศประเสริฐศรีและใส่ใจอย่างมากที่สุด
ข้าพเจ้าเลือกนิพจน์สมการด้ยตนเองและเขียนนิพจน์ของสมการที่เลือกมา

In [10]:
def x(t):
    xt = (12*math.cos(-11/4*t))+(7*math.cos(t))
    return xt
def y(t):
    yt = (12*math.sin(-11/4*t))+(7*math.sin(t))
    return yt
plot(x ,y ,-30 ,30 ,0.0001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x(t)=cos(t) - cos(60t)^3 $
$ y(t)=sin(60t) - sin(60t)^4 $
โปรแกรมทำให้ได้รูปที่น่าสนใจมากเลยค่ะ
ขอยืนยันว่าดิฉนเป็นผู้เลือกสมการข้างต้นด้วยตัวเองค่ะ

In [11]:
def x(t):
    xt = math.cos(1*t) - (math.cos(60*t))**3 
    return xt

def y(t):
    yt = math.sin(60*t) - (math.sin(60*t))**4
    return yt

plot(x, y, -10, 10, 0.0001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย???? ????
$x(t)=sin(t){e^cos(t)-2cos(4t)-(sin(t/12))^5}$
$x(t)=cos(t){e^cos(t)-2cos(4t)-(sin(t/12))^5}$
โปรแกรมนี้วาดลายสวยงามมากๆสะดุดตาสุดๆ
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตนเองแม้มันจะเป็นภาพผีเสื้อที่ไม่ค่อยสวยแต่ผมพิมพ์เองครับ ผมไม่เก่งคอม ได้รูปนี้ก็ภูมิใจแล้วครับ

In [12]:
def x(t) :
    xt = math.sin(t)*(((math.e)**math.cos(t))-2*math.cos(4*t)-(math.sin(t/12)**5))
    return xt
def y(t) :
    yt = math.cos(t)*(((math.e)**math.cos(t))-2*math.cos(4*t)-(math.sin(t/12)**5))
    return yt
plot(x, y, -6, 6, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นางสาว???? ????
$x(t)=10sin(3t+\frac{\pi }{4})$
$y(t)=10sin(4t)$
โปรแกรมนี้เป็นกราฟที่มีลักษณะเหมือนซอสที่ราดบนขนม
ขอยืนยันว่าเป็นคนเลือกและเขียนนิพจน์สมการนี้เอง

In [13]:
def x(t):
 xt = 10*math.sin(3*t+math.pi/4)
 return xt
def y(t):
 yt = 10*math.sin(4*t)
 return yt
plot(x, y, -10, 10, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)= cos(t)+ sin(t)$
$y(t)= sin(t) + sin(t)^2$
โปรแกรมนี้วำดลวดลำยอ่อนชอ้ยสวยงำมสะดุดตำ
ดีฉันเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [14]:
def x(t):
     xt = math.cos(t) + math.sin(t)
     return xt
def y(t):
     yt = math.sin(t) + math.sin(t)**2
     return yt
plot(x, y, -7, 7, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x(t)=3sin(sin3t))cos(cos^2(3-1.45t)) $
$ y(t)=1.5cos^2(2t)3sin(t) $
โปรแกรมที่ผมเขียนขึ้นมานี้แสดงถึงความสวยงามของร่างแหของบ้านต้นไม้ใต้ดิน
ผมยืนยันว่าโปรแกรมผมเขียนนิพจน์นี้ขึ้นมาเองและเลือกสมการมาด้วยตัวเอง

In [15]:
def x(t):
    xt = 3*math.sin(math.sin(3*t))*math.cos(math.cos((3-1.45)*t)**2)
    return xt
def y(t):
    yt = 1.5 * math.cos(2*t)*math.cos(2*t)*3*math.sin(t) 
    return yt
plot(x, y, -30,35,0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=sin(t)$
$y(t)=sin(t)cos(t)$
โปรแกรมนี้วาดสัญักษณ์อินฟินิตี้ได้อย่างงดงาม
ขอยืนยันว่า นิสิตเป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [16]:
def x(t):
    xt = math.sin(t)
    return xt
                                
def y(t):
    yt = math.sin(t)*math.cos(t)
    return yt
                                
            
plot(x, y,  0, 2*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)= -\frac{4}{37}sin(\frac{14}{13}-60t)-\frac{1}{26}sin(\frac{8}{7}-58t)-\frac{3}{25}sin(\frac{48}{47}-56t)-\frac{5}{18}sin(\frac{66}{67}-55t)\\-\frac{4}{23}sin(\frac{29}{22}-49t)-\frac{1}{8}sin(\frac{1}{13}-47t)-\frac{11}{27}sin(\frac{1}{8}-43t)-\frac{2}{5}sin(\frac{3}{26}-42t)\\-\frac{9}{23}sin(\frac{29}{22}-38t)-\frac{12}{73}sin(\frac{31}{29}-35t)-\frac{27}{32}sin(\frac{44}{43}-33t)-\frac{43}{64}sin(\frac{5}{28}-31t)\\-\frac{23}{30}sin(\frac{74}{49}-29t)-\frac{1}{6}sin(\frac{1}{9}-26t)-\frac{59}{39}sin(\frac{41}{29}-21t)-\frac{11}{30}sin(\frac{17}{39}-20t)\\-\frac{211}{17}sin(\frac{1}{35}-9t)-\frac{241}{19}sin(\frac{23}{17}-7t)+\frac{36430}{149}sin(t+\frac{5}{18})+\frac{2217}{46}sin(2t+\frac{73}{20})\\+\frac{327}{38}sin(3t+\frac{11}{8})+\frac{833}{125}sin(4t+\frac{111}{40})+\frac{376}{37}sin(5t+\frac{121}{27})+\frac{193}{31}sin(6t+\frac{77}{40})\\+\frac{115}{22}sin(8t+\frac{19}{14})+\frac{600}{49}sin(10t+\frac{57}{86})+\frac{212}{39}sin(11t+\frac{11}{16})+\frac{141}{37}sin(12t+\frac{26}{7})\\+\frac{32}{13}sin(13t+\frac{38}{45})+\frac{101}{31}sin(14t+\frac{21}{25})+\frac{175}{34}sin(15t+\frac{22}{25})+\frac{62}{21}sin(16t+\frac{131}{32})\\+\frac{31}{30}sin(17t+\frac{139}{49})+\frac{33}{46}sin(18t+\frac{37}{46})+\frac{61}{18}sin(19t+\frac{22}{17})+\frac{25}{29}sin(22t+\frac{5}{22})\\+\frac{27}{16}sin(23t+\frac{89}{36})+\frac{41}{32}sin(24t+\frac{62}{45})+\frac{23}{30}sin(25t+\frac{143}{53})+\frac{10}{19}sin(27t+\frac{85}{26})\\+\frac{13}{17}sin(28t+\frac{75}{26})+\frac{4}{13}sin(30t+\frac{51}{50})+\frac{31}{72}sin(32t+\frac{226}{55})+\frac{14}{29}sin(34t+\frac{75}{16})\\+\frac{8}{27}sin(36t+\frac{34}{9})+\frac{14}{41}sin(37t+\frac{23}{20})+\frac{11}{30}sin(39t+\frac{53}{34})+\frac{11}{54}sin(40t+\frac{87}{26})\\+\frac{4}{29}sin(41t+\frac{17}{32})+\frac{14}{31}sin(44t+\frac{2}{11})+\frac{1}{4}sin(45t+\frac{49}{11})+\frac{13}{48}sin(46t+\frac{18}{25})\\+\frac{1}{19}sin(48t+\frac{12}{11})+\frac{6}{35}sin(50t+\frac{220}{63})+\frac{8}{21}sin(51t+\frac{12}{13})+\frac{13}{53}sin(52t+\frac{83}{45})\\+\frac{3}{14}sin(53t+\frac{11}{26})+\frac{10}{33}sin(54t+\frac{86}{21})+\frac{3}{40}sin(57t+\frac{133}{100})+\frac{9}{64}sin(59t+\frac{49}{23})\\+\frac{3}{11}sin(61t+\frac{133}{52})+\frac{1}{33}sin(62t+\frac{141}{31})-\frac{59191}{111}$
$y(t)= -\frac{2}{27}sin(\frac{12}{25}-55t)-\frac{16}{63}sin(\frac{26}{47}-54t)-\frac{19}{94}sin(\frac{1}{2}-53t)-\frac{5}{22}sin(\frac{77}{96}-52t)\\-\frac{1}{21}sin(\frac{15}{32}-48t)-\frac{8}{25}sin(\frac{31}{41}-47t)-\frac{1}{4}sin(\frac{32}{41}-46t)-\frac{1}{27}sin(\frac{61}{44}-35t)\\-\frac{29}{64}sin(\frac{377}{251}-33t)-\frac{24}{35}sin(\frac{33}{25}-26t)-\frac{9}{7}sin(\frac{35}{44}-19t)-\frac{182}{29}sin(\frac{44}{43}-9t)\\-\frac{355}{32}sin(\frac{15}{16}-6t)-\frac{1513}{36}sin(\frac{16}{11}-5t)-\frac{3265}{48}sin(\frac{27}{25}-4t)-\frac{4349}{20}sin(\frac{82}{55}-t)\\+\frac{3312}{29}sin(2t+\frac{55}{34})+18sin(3t+\frac{85}{19})+\frac{93}{14}sin(7t+\frac{159}{50})+\frac{131}{23}sin(8t+\frac{75}{28})\\+\frac{105}{44}sin(10t+\frac{41}{9})+\frac{151}{26}sin(11t+\frac{4}{27})+\frac{51}{23}sin(12t+\frac{29}{15})+\frac{65}{17}sin(13t+\frac{63}{95})\\+\frac{28}{25}sin(14t+\frac{93}{25})+\frac{17}{22}sin(15t+\frac{283}{71})+\frac{100}{37}sin(16t+\frac{84}{23})+\frac{46}{21}sin(17t+\frac{21}{5})\\+\frac{28}{43}sin(18t+\frac{103}{30})+\frac{20}{19}sin(20t+\frac{28}{23})+\frac{26}{37}sin(21t+\frac{35}{36})+\frac{8}{7}sin(22t+\frac{26}{15})\\+\frac{11}{35}sin(23t+\frac{59}{23})+\frac{35}{52}sin(24t+\frac{161}{37})+\frac{1}{6}sin(25t+\frac{9}{28})+\frac{11}{49}sin(27t+\frac{16}{7})\\+\frac{32}{35}sin(28t+\frac{206}{55})+\frac{37}{32}sin(29t+\frac{36}{11})+\frac{29}{40}sin(30t+\frac{66}{23})+\frac{20}{61}sin(31t+\frac{85}{32})\\+\frac{32}{51}sin(32t+\frac{29}{37})+\frac{27}{55}sin(34t+\frac{34}{25})+\frac{13}{28}sin(36t+\frac{49}{23})+\frac{11}{25}sin(37t+\frac{61}{14})\\+\frac{17}{21}sin(38t+\frac{31}{8})+\frac{11}{29}sin(39t+\frac{121}{29})+\frac{50}{151}sin(40t+\frac{93}{40})+\frac{2}{19}sin(41t+\frac{19}{47})\\+\frac{15}{46}sin(42t+\frac{88}{27})+\frac{8}{19}sin(43t+\frac{103}{22})+\frac{2}{13}sin(44t+\frac{156}{41})+\frac{1}{17}sin(45t+\frac{109}{24})\\+\frac{11}{24}sin(49t+\frac{24}{13})+\frac{40}{121}sin(50t+\frac{25}{9})+\frac{1}{9}sin(51t+\frac{80}{51})+\frac{7}{32}sin(56t+\frac{31}{36})\\+\frac{2}{21}sin(57t+\frac{85}{38})+\frac{7}{33}sin(58t+\frac{58}{31})+\frac{3}{37}sin(59t+\frac{202}{47})+\frac{7}{30}sin(60t+\frac{71}{25})\\+\frac{2}{15}sin(61t+\frac{49}{32})+\frac{22}{59}sin(62t+\frac{91}{36})-\frac{37783}{23}$
โปรแกรมนี้วาดรูปสุนัขบูลด็อกที่เป็นที่น่ารักและมีสมการที่ยาวมาก
ผมเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [17]:
def x(t):
    xt = -(4/37)*math.sin((14/13)-60*t)-(1/26)*math.sin((8/7)-58*t)-(3/25)*math.sin((48/47)-56*t)-(5/18)*math.sin((66/67)-55*t)\
         -(4/23)*math.sin((29/22)-49*t)-(1/8)*math.sin((1/13)-47*t)-(11/27)*math.sin((1/8)-43*t)-(2/5)*math.sin((3/26)-42*t)\
         -(9/23)*math.sin((29/22)-38*t)-(12/73)*math.sin((31/29)-35*t)-(27/32)*math.sin((44/43)-33*t)-(43/64)*math.sin((5/28)-31*t)\
         -(23/30)*math.sin((74/49)-29*t)-(1/6)*math.sin((1/9)-26*t)-(59/39)*math.sin((41/29)-21*t)-(11/30)*math.sin((17/39)-20*t)\
         -(211/17)*math.sin((1/35)-9*t)-(241/19)*math.sin((23/17)-7*t)+(36430/149)*math.sin(t+(5/18))+(2217/46)*math.sin(2*t+(73/20))\
         +(327/38)*math.sin(3*t+(11/8))+(833/125)*math.sin(4*t+(111/40))+(376/37)*math.sin(5*t+(121/27))+(193/31)*math.sin(6*t+(77/40))\
         +(115/22)*math.sin(8*t+(19/14))+(600/49)*math.sin(10*t+(57/86))+(212/39)*math.sin(11*t+(11/16))+(141/37)*math.sin(12*t+(26/7))\
         +(32/13)*math.sin(13*t+(38/45))+(101/31)*math.sin(14*t+(21/25))+(175/34)*math.sin(15*t+(22/25))+(62/21)*math.sin(16*t+(131/32))\
         +(31/30)*math.sin(17*t+(139/49))+(33/46)*math.sin(18*t+(37/46))+(61/18)*math.sin(19*t+(22/17))+(25/29)*math.sin(22*t+(5/22))\
         +(27/16)*math.sin(23*t+(89/36))+(41/32)*math.sin(24*t+(62/45))+(23/30)*math.sin(25*t+(143/53))+(10/19)*math.sin(27*t+(85/26))\
         +(13/17)*math.sin(28*t+(75/26))+(4/13)*math.sin(30*t+(51/50))+(31/72)*math.sin(32*t+(226/55))+(14/29)*math.sin(34*t+(75/16))\
         +(8/27)*math.sin(36*t+(34/9))+(14/41)*math.sin(37*t+(23/20))+(11/30)*math.sin(39*t+(53/34))+(11/54)*math.sin(40*t+(87/26))\
         +(4/29)*math.sin(41*t+(17/32))+(14/31)*math.sin(44*t+(2/11))+(1/4)*math.sin(45*t+(49/11))+(13/48)*math.sin(46*t+(18/25))\
         +(1/19)*math.sin(48*t+(12/11))+(6/35)*math.sin(50*t+(220/63))+(8/21)*math.sin(51*t+(12/13))+(13/53)*math.sin(52*t+(83/45))\
         +(3/14)*math.sin(53*t+(11/26))+(10/33)*math.sin(54*t+(86/21))+(3/40)*math.sin(57*t+(133/100))+(9/64)*math.sin(59*t+(49/23))\
         +(3/11)*math.sin(61*t+(133/52))+(1/33)*math.sin(62*t+(141/31))-(59191/111)                                                                                                                
    return xt
def y(t):
    yt = -(2/27)*math.sin((12/25)-55*t)-(16/63)*math.sin((26/47)-54*t)-(19/94)*math.sin((1/2)-53*t)-(5/22)*math.sin((77/96)-52*t)\
         -(1/21)*math.sin((15/32)-48*t)-(8/25)*math.sin((31/41)-47*t)-(1/4)*math.sin((32/41)-46*t)-(1/27)*math.sin((61/44)-35*t)\
         -(29/64)*math.sin((337/251)-33*t)-(24/35)*math.sin((33/25)-26*t)-(9/7)*math.sin((35/44)-19*t)-(182/29)*math.sin((44/43)-9*t)\
         -(355/32)*math.sin((15/16)-6*t)-(1513/36)*math.sin((16/11)-5*t)-(3265/48)*math.sin((27/25)-4*t)-(4349/20)*math.sin((82/55)-t)\
         +(3212/29)*math.sin(2*t+(55/34))+18*math.sin(3*t+(85/19))+(93/14)*math.sin(7*t+(159/50))+(131/23)*math.sin(8*t+(75/28))\
         +(105/44)*math.sin(10*t+(41/9))+(151/26)*math.sin(11*t+(4/27))+(51/23)*math.sin(12*t+(29/15))+(65/17)*math.sin(13*t+(63/95))\
         +(28/25)*math.sin(14*t+(93/25))+(17/22)*math.sin(15*t+(283/71))+(100/37)*math.sin(16*t+(84/23))+(46/21)*math.sin(17*t+(21/5))\
         +(28/43)*math.sin(18*t+(103/30))+(20/19)*math.sin(20*t+(28/23))+(26/37)*math.sin(21*t+(35/36))+(8/7)*math.sin(22*t+(26/15))\
         +(11/35)*math.sin(23*t+(59/23))+(35/52)*math.sin(24*t+(161/37))+(1/6)*math.sin(25*t+(9/28))+(11/49)*math.sin(27*t+(16/7))\
         +(32/35)*math.sin(28*t+(206/55))+(37/32)*math.sin(29*t+(36/11))+(29/40)*math.sin(30*t+(66/23))+(20/61)*math.sin(31*t+(85/32))\
         +(32/51)*math.sin(32*t+(29/37))+(27/55)*math.sin(34*t+(34/25))+(13/28)*math.sin(36*t+(49/23))+(11/25)*math.sin(37*t+(61/14))\
         +(17/21)*math.sin(38*t+(31/8))+(11/29)*math.sin(39*t+(121/29))+(50/151)*math.sin(40*t+(93/40))+(2/19)*math.sin(41*t+(19/47))\
         +(15/46)*math.sin(42*t+(88/27))+(8/19)*math.sin(43*t+(103/22))+(2/13)*math.sin(44*t+(156/41))+(1/17)*math.sin(45*t+(109/24))\
         +(11/24)*math.sin(49*t+(24/13))+(40/121)*math.sin(50*t+(25/9))+(1/9)*math.sin(51*t+(80/51))+(7/32)*math.sin(56*t+(31/36))\
         +(2/21)*math.sin(57*t+(85/38))+(7/33)*math.sin(58*t+(58/31))+(3/37)*math.sin(59*t+(202/47))+(7/30)*math.sin(60*t+(71/25))\
         +(2/15)*math.sin(61*t+(49/32))+(22/59)*math.sin(62*t+(91/36))-(37783/23)
    return yt
plot(x, y, 0, 2*math.pi, 0.02)
plt.show()

Prog-02 : Beautiful Parametric Equation
?????????? ???? ????
$ -35cos(t) + 65sin(-0.35t) $
$ -35sin(t) + 65cos(-0.35t) $
โปรแกรมนี้ มีความสวยงามพอที่จะให้ผู้อื่นต้องหันมาชม
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง

In [18]:
def x(t):
    xt = -35*math.cos(t) + 65*math.sin(-0.35*t)
    return xt

def y(t):
    yt =  -35*math.sin(t) + 65*math.cos(-0.35*t)
    return yt

plot(x, y, -100, 100, 0.01 )
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย ???? ????
$x(t)=−(721sin(t))/4+196/3sin(2t)−86/3sin(3t)−131/2sin(4t)+477/14sin(5t)+27sin(6t)−29/2sin(7t)+68/5sin(8t)+1/10sin(9t)+23/4sin(10t)−19/2sin(12t)−85/21sin(13t)+2/3sin(14t)+27/5sin(15t)+7/4sin(16t)+17/9sin(17t)−4sin(18t)−1/2sin(19t)+1/6sin(20t)+6/7sin(21t)−1/8sin(22t)+1/3sin(23t)+3/2sin(24t)+13/5sin(25t)+sin(26t)−2sin(27t)+3/5sin(28t)−1/5sin(29t)+1/5sin(30t)+(2337cos(t))/8−43/5cos(2t)+322/5cos(3t)−117/5cos(4t)−26/5cos(5t)−23/3cos(6t)+143/4cos(7t)−11/4cos(8t)−31/3cos(9t)−13/4cos(10t)−9/2cos(11t)+41/20cos(12t)+8cos(13t)+2/3cos(14t)+6cos(15t)+17/4cos(16t)−3/2cos(17t)−29/10cos(18t)+11/6cos(19t)+12/5cos(20t)+3/2cos(21t)+11/12cos(22t)−4/5cos(23t)+cos(24t)+17/8cos(25t)−7/2cos(26t)−5/6cos(27t)−11/10cos(28t)+1/2cos(29t)−1/5cos(30t)$
$y(t)=−(637sin(t))/2−188/5sin(2t)−11/7sin(3t)−12/5sin(4t)+11/3sin(5t)−37/4sin(6t)+8/3sin(7t)+65/6sin(8t)−32/5sin(9t)−41/4sin(10t)−38/3sin(11t)−47/8sin(12t)+5/4sin(13t)−41/7sin(14t)−7/3sin(15t)−13/7sin(16t)+17/4sin(17t)−9/4sin(18t)+8/9sin(19t)+3/5sin(20t)−2/5sin(21t)+4/3sin(22t)+1/3sin(23t)+3/5sin(24t)−3/5sin(25t)+6/5sin(26t)−1/5sin(27t)+10/9sin(28t)+1/3sin(29t)−3/4sin(30t)−(125cos(t))/2−521/9cos(2t)−359/3cos(3t)+47/3cos(4t)−33/2cos(5t)−5/4cos(6t)+31/8cos(7t)+9/10cos(8t)−119/4cos(9t)−17/2cos(10t)+22/3cos(11t)+15/4cos(12t)−5/2cos(13t)+19/6cos(14t)+7/4cos(15t)+31/4cos(16t)−cos(17t)+11/10cos(18t)−2/3cos(19t)+13/3cos(20t)−5/4cos(21t)+2/3cos(22t)+1/4cos(23t)+5/6cos(24t)+3/4cos(26t)−1/2cos(27t)−1/10cos(28t)−1/3cos(29t)−1/19cos(30t)$
เขียนแมว เป็นรูปร่างแมว แมวที่พบเห็นบ่อยๆในกราฟและในแผนที่โลก เป็นแมวที่กำลังสนุกกับการอยู่บนกราฟ
เลือกกราฟและ พิมพ์นิพจน์ผ่านโปรแกรมคอมพืวเตอร์เองครับ

In [19]:
from math import *
def x(t):
    xt = -(721*sin(t))/4 + 196/3*sin(2* t) - 86/3 *sin(3* t) - 131/2 *sin(4* t) + 477/14* sin(5 *t) + 27 *sin(6* t) - 29/2 *sin(7* t) + 68/5 *sin(8 *t) + 1/10 *sin(9* t) + 23/4 *sin(10* t) - 19/2 *sin(12* t) - 85/21 *sin(13*t) + 2/3 *sin(14 *t) + 27/5 *sin(15 *t) + 7/4 *sin(16*t) + 17/9 *sin(17*t) - 4 *sin(18*t) - 1/2 *sin(19*t) + 1/6 *sin(20*t) + 6/7 *sin(21*t) - 1/8 *sin(22*t) + 1/3 *sin(23*t) + 3/2 *sin(24*t) + 13/5 *sin(25*t) + sin(26*t) - 2 *sin(27*t) + 3/5 *sin(28*t) - 1/5 *sin(29*t) + 1/5 *sin(30*t) + (2337*cos(t))/8 - 43/5*cos(2*t) + 322/5*cos(3*t) - 117/5*cos(4*t) - 26/5*cos(5*t) - 23/3*cos(6*t) + 143/4*cos(7*t) - 11/4*cos(8*t) - 31/3*cos(9*t) - 13/4*cos(10*t) - 9/2*cos(11*t) + 41/20*cos(12*t) + 8*cos(13*t) + 2/3*cos(14*t) + 6*cos(15*t) + 17/4*cos(16*t) - 3/2*cos(17*t) - 29/10*cos(18*t) + 11/6*cos(19*t) + 12/5*cos(20*t) + 3/2*cos(21*t) + 11/12*cos(22*t) - 4/5*cos(23*t) +cos(24*t) + 17/8*cos(25*t) - 7/2*cos(26*t) - 5/6*cos(27*t) - 11/10*cos(28*t) + 1/2*cos(29*t) - 1/5*cos(30*t)
    return xt
def y(t):
    yt =-(637*sin(t))/2 - 188/5*sin(2* t) - 11/7 *sin(3* t) - 12/5 *sin(4* t) + 11/3 *sin(5* t) - 37/4* sin(6* t) + 8/3* sin(7* t) + 65/6 *sin(8*t) - 32/5* sin(9 *t) - 41/4 *sin(10 *t) - 38/3 *sin(11 *t) - 47/8 *sin(12 *t) + 5/4 *sin(13 *t) - 41/7 *sin(14 *t) - 7/3 *sin(15*t) - 13/7 *sin(16*t) + 17/4 *sin(17*t) - 9/4 *sin(18*t) + 8/9 *sin(19*t) + 3/5 *sin(20*t) - 2/5 *sin(21*t) + 4/3 *sin(22*t) + 1/3 *sin(23*t) + 3/5 *sin(24*t) - 3/5 *sin(25*t) + 6/5 *sin(26*t) - 1/5 *sin(27*t) + 10/9 *sin(28*t) + 1/3 *sin(29*t) - 3/4 *sin(30*t) - (125*cos(t))/2 - 521/9*cos(2*t) - 359/3*cos(3*t) + 47/3*cos(4*t) - 33/2*cos(5*t) - 5/4*cos(6*t) + 31/8*cos(7*t) + 9/10*cos(8*t) - 119/4*cos(9*t) - 17/2*cos(10*t) + 22/3*cos(11*t) + 15/4*cos(12*t) - 5/2*cos(13*t) + 19/6*cos(14*t) + 7/4*cos(15*t) + 31/4*cos(16*t) -cos(17*t) + 11/10*cos(18*t) - 2/3*cos(19*t) + 13/3*cos(20*t) - 5/4*cos(21*t) + 2/3*cos(22*t) + 1/4*cos(23*t) + 5/6*cos(24*t) + 3/4*cos(26*t) - 1/2*cos(27*t) - 1/10*cos(28*t) - 1/3*cos(29*t) - 1/19*cos(30*t)
    return yt
plot(x, y, 0,2*math.pi,0.001)
plt.show()
#x(t)=−(721sin(t))/4+196/3sin(2t)−86/3sin(3t)−131/2sin(4t)+477/14sin(5t)+27sin(6t)−29/2sin(7t)+68/5sin(8t)+1/10sin(9t)+23/4sin(10t)−19/2sin(12t)−85/21sin(13t)+2/3sin(14t)+27/5sin(15t)+7/4sin(16t)+17/9sin(17t)−4sin(18t)−1/2sin(19t)+1/6sin(20t)+6/7sin(21t)−1/8sin(22t)+1/3sin(23t)+3/2sin(24t)+13/5sin(25t)+sin(26t)−2sin(27t)+3/5sin(28t)−1/5sin(29t)+1/5sin(30t)+(2337cos(t))/8−43/5cos(2t)+322/5cos(3t)−117/5cos(4t)−26/5cos(5t)−23/3cos(6t)+143/4cos(7t)−11/4cos(8t)−31/3cos(9t)−13/4cos(10t)−9/2cos(11t)+41/20cos(12t)+8cos(13t)+2/3cos(14t)+6cos(15t)+17/4cos(16t)−3/2cos(17t)−29/10cos(18t)+11/6cos(19t)+12/5cos(20t)+3/2cos(21t)+11/12cos(22t)−4/5cos(23t)+cos(24t)+17/8cos(25t)−7/2cos(26t)−5/6cos(27t)−11/10cos(28t)+1/2cos(29t)−1/5cos(30t)y(t)=−(637sin(t))/2−188/5sin(2t)−11/7sin(3t)−12/5sin(4t)+11/3sin(5t)−37/4sin(6t)+8/3sin(7t)+65/6sin(8t)−32/5sin(9t)−41/4sin(10t)−38/3sin(11t)−47/8sin(12t)+5/4sin(13t)−41/7sin(14t)−7/3sin(15t)−13/7sin(16t)+17/4sin(17t)−9/4sin(18t)+8/9sin(19t)+3/5sin(20t)−2/5sin(21t)+4/3sin(22t)+1/3sin(23t)+3/5sin(24t)−3/5sin(25t)+6/5sin(26t)−1/5sin(27t)+10/9sin(28t)+1/3sin(29t)−3/4sin(30t)−(125cos(t))/2−521/9cos(2t)−359/3cos(3t)+47/3cos(4t)−33/2cos(5t)−5/4cos(6t)+31/8cos(7t)+9/10cos(8t)−119/4cos(9t)−17/2cos(10t)+22/3cos(11t)+15/4cos(12t)−5/2cos(13t)+19/6cos(14t)+7/4cos(15t)+31/4cos(16t)−cos(17t)+11/10cos(18t)−2/3cos(19t)+13/3cos(20t)−5/4cos(21t)+2/3cos(22t)+1/4cos(23t)+5/6cos(24t)+3/4cos(26t)−1/2cos(27t)−1/10cos(28t)−1/3cos(29t)−1/19cos(30t)

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=3t - 5/2lt-1l + 5/2lt-4l - 15/2 -4$
$y(t)=6lt-1l - 3/2lt-2l + 3/2lt-3l + 6lt-4l - 35/2$
โปรแกรมนี้วำดลวดลำยอ่อนชอ้ยสวยงำมสะดุดตำ
ผมเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [20]:
def x(t):
 xt = (3*t)-((5/2)*(abs(t-1)))+((5/2)*(abs(t-4)))-(15/2)-(4)
 return xt
def y(t):
 yt = (6*abs(t-1))-((3/2)*abs(t-2))-((3/2)*abs(t-3))+(6*(abs(t-4)))-(35/2)
 return yt
plot(x, y, 0, 5, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t) = 11cos(t)-6cos(\frac{11}{6}t)$
$y(t) = 11sin(t)-6sin(\frac{11}{6}t)$
โปรแกรมนี้วาดลายคล้ายดอกบัว
ผมเป็นผู้เลือกสมการและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [21]:
def x(t):
    xt = 11*math.cos(t)-6*math.cos((11/6)*t)
    return xt
def y(t):
    yt = 11*math.sin(t)-6*math.sin((11/6)*t)
    return yt
plot(x, y,2*math.pi, 14*math.pi, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=sin(t)(e^cos(t)-2cos(4t)-sin^5(t/12))$
$y(t)=cos(t)(e^cos(t)-2cos(4t)-sin^5(t/12))$
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง

In [22]:
def x(t):
    xt = math.sin(t)*(math.e**math.cos(t)-2*math.cos(4*t)-(math.sin(t/12))**5)
    return xt
def y(t):
    yt = math.cos(t)*(math.e**math.cos(t)-2*math.cos(4*t)-(math.sin(t/12))**5)
    return yt
plot(x, y, 0, 12*math.pi, 0.01) 
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย???? ????
$ x(t) = 2cos(t)+5cos(2t/3) $
$ y(t) = 2sin(t)-5sin(2t/3) $
โปรแกรมนี้วาดรูปดาวที่สวยงาม
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง

In [23]:
def x(t):
    xt = 2*math.cos(t)+5*math.cos(2*t/3)
    return xt

def y(t):
    yt = 2*math.sin(t)-5*math.sin(2*t/3)

    return yt


plot(x, y, -20,20,0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)= 4cos(-11t/4)+7cos(t) $y(t)= 4sin(-11t/4)+7sin(t)
โปรแกรมนี้สุดยอดเลยคับ
ผม???? ????เป็นผู้เลือกสมการนี้เองครับ

In [24]:
def x(t):
    xt = (4*math.cos(-11*t/4)+7*math.cos(t))
    return xt
    
def y(t):
    yt = (4*math.sin(-11*t/4)+7*math.sin(t))
    return yt

plot(x, y, 0, 8*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$xt = math.sin(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)$
$yt = math.cos(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)$
โปรแกรมนี้วาดรูปที่สวยงามอย่างมาก
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตนเอง

In [25]:
def x(t):
    xt = math.sin(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)
    return xt

def y(t):
    yt = math.cos(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)
    return yt


plot(x, y, 0,  12*math.pi, 0.01 )
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t) = \sin(33t)\cos(11t)$
$y(t) = \sin(40t)\sin(11t)$
วาดได้สวยงามเฟี้ยวฟ้าวมะพร้าวแก้ว
ผมขอยืนยืนว่าเป็นคนเลือกสมการคณิตศาสตร์ด้วยตนเอง

In [26]:
def x(t):
    xt = math.sin(33*t)*math.cos(11*t)
    return xt

def y(t):
    yt = math.sin(40*t)*math.sin(11*t)
    return yt

plot(x, y, -5, 5, 0.001)
plt.show()

Prog-02: Parametric Equations
?????????? ???? ????
$x(t)=sin(t)(e^{cos(t)}-2cos(4t)-sin^5(\frac{t}{12}))$
$y(t)=cos(t)(e^{cos(t)}-2cos(4t)-sin^5(\frac{t}{12}))$
โปรแกรมนี้วาดด้วยลวดลายที่สวยงามและสะดุดตา
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [27]:
def x(t):
    xt = math.sin(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)
    return xt

def y(t):
    yt = math.cos(t)*(math.e**math.cos(t)-2*math.cos(4*t)-math.sin(t/12)**5)
    return yt

plot(x, y, 0, 12*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
??????????
$x(t)=4cos(\frac{-11}{4}t)+7cos(t)$
$y(t)=4sin(\frac{-11}{4}t)+7sin(t)$
โปแกรมนี้สุดยอดมาก
ผมเลือกเองจริงๆ

In [28]:
def x(t):
    xt = 4*math.cos(-11*t/4)+7*math.cos(t)
    return xt
def y(t):
    yt = 4*math.sin(-11*t/4)+7*math.sin(t)
    return yt

plot(x, y, 0, 8*math.pi, 0.1)
plt.show()

Prog-02 : Beautiful Parametric Equation
?????????? ???? ????
$ xt = 11cos(t)-6cos(11/6t) $
$ yt = 11sin(t)-6sin(11/6t) $
โปรแกรมนี้ไม่เพียงแต่มีความเป็นเอกลักษณ์เป็นของตัวมันเอง บางทีหากเราเลือกที่จะทำอะไรบางอย่างไม่ต้องละเอียดมาก ผลที่ได้อาจสวยงามกว่าที่คิด
อนึ่งผมขอยืนยันว่าผมเป็นผู้เขียนโปรแกรมอันสวยงามนี้จริง

In [29]:
def x(t):
     xt = 11*math.cos(t)-6*math.cos(11/6*t)
     return xt
def y(t):
     yt = 11*math.sin(t)-6*math.sin(11/6*t)
     return yt
plot(x, y, 0, 200, 0.5)
plt.show()

Prog-02:Parametric Equations
?????????? นาย???? ????
$ x(t)=4cos(\frac{-11t}{4})+7cos(t) $
$ y(t)=4sin(\frac{-11t}{4})+7sin(t) $
โปรแกรมนี้มีรูปแบบที่ดูดีและเรียบง่าย
ผมเป็นผู้เลือกสมการและเขียนนิพจน์ทางคณิตศาสตร์ด้วยตัวเอง

In [30]:
def x(t):
    xt = 4*math.cos((-11*t)/4)+7*math.cos(t)
    return xt
def y(t):
    yt = 4*math.sin((-11*t)/4)+7*math.sin(t)
         
    return yt
plot(x, y, 0, 8*math.pi, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x(t) = sin(t)((e^{cos(t)})-(2cos(10t))-(sin(t/12)^5)) $
$ y(t) = cos(t)((e^{cos(t)})-(2cos(10t))-(sin(t/12)^5)) $
โปรแกรมนี้วาดลวดลสยที่สละสลวยซับซ้อนมีมีความเป็นเหลี่ยมที่ลงตัว
ผมเลือกสมการนี้มาดัดแปลงให้สวยงามด้วยตัวเอง

In [31]:
def x(t):
    xt = math.sin(t)*((math.e**(math.cos(t)))-(2*math.cos(10*t))-((math.sin(t/12))**5))
    return xt
def y(t):
    yt = math.cos(t)*((math.e**(math.cos(t)))-(2*math.cos(10*t))-((math.sin(t/10))**5))
    return yt
plot(x, y, 0, 12*math.pi, 0.05)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=cos(t)−cos(t)sin(60t) $y(t)=2sin(58t)-sin(60t)
โปรแกรมนี้สามารถวาดลวดลายของกราฟได้ออกมาสวยงาม
ดิฉันเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [32]:
def x(t):
    xt = math.cos(t)-math.cos(t)*math.sin(60*t)
    return xt

def y(t):
    yt = 2*math.sin(58*t)-math.sin(60*t)
 
    return yt

plot(x, y, -4, 4, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=cos(t)-cos(100t)sin(t)$
$y(t)=2sin(t)-sin(100t)$
โปรเเกรมนี้สามารถวาดภาพโดยการplotจุดออกมาได้สวยงามเเละเรียบเนียนมากครับ
ผมเป็นคนเลือกสมการข้างต้นเเละเขียนนิพจน์คณิตศาสตร์ด้วยตัวเองเเน่นอนครับ

In [33]:
def x(t):
    xt = math.cos(t)-math.cos(100*t)*math.sin(t)
    return xt
def y(t):
    yt = 2*math.sin(t)-math.sin(100*t)
    return yt

plot(x, y, 0, 2*math.pi, 0.005)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=\sin(t)(e^{\cos(t)}-2\cos(4t)-\sin^5(t\div12))$
$y(t)=\cos(t)(e^{\cos(t)}-2\cos(4t)-\sin^5(t\div12))$
โปรแกรมนี้วาดbutterfly curveได้งดงาม
ผมเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [34]:
def x(t):
    xt = math.sin(t)*(math.e**(math.cos(t))-2*math.cos(4*t)-math.sin(t/12)**5)
    return xt
def y(t):
    yt = math.cos(t)*(math.e**(math.cos(t))-2*math.cos(4*t)-math.sin(t/12)**5)
    return yt
plot(x, y, 0, 24*math.pi, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=1.5cos(t)-cos(10t)$
$y(t)=1.5sin(t)-sin(10t)$
โปรแกรมนี้มีลักษณะที่มีความสมมาตรกันเเบบ 100% ซึ่งดูเเล้วจะสังเกตเห็นได้จากความสวยงามของความเป็นระเบียบ
ผมเป็นผู้เลือกสมกำรจากในอินเตอร์เน็ตและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [35]:
def x(t):
    xt = 1.5*math.cos(t)-math.cos(10*t)
    return xt

def y(t):
    yt = 1.5*math.sin(t)-math.sin(10*t)
    return yt

plot(x, y, 0, 4*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ณัฏฐะล ????
$ xt = 2cos(t) + sin(2t)cos(60t) $
$ yt = sin(2t) + sin(60t) - sin(30t)cos(30t) $
พลอตกราฟได้เป็นรูปคล้างปีกผีเสื้อที่ดูเเปลกตา
ยืนยันว่าเป็นผู้เลือกเเละเขียนนิพจน์คณิตศาสตร์ด้้วยตนเอง

In [36]:
def x(t):
    xt = 2*cos(t) + sin(2*t)*cos(60*t)
    return xt
def y(t):
    yt = sin(2*t)+sin(60*t)-sin(30*t)*cos(30*t)
    return yt
plot(x, y, 0,2*pi, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
63301544121 นาย ???? ????
$x(t)=-4/37sin(14/13-60t)-1/26sin(8/7-58t)-3/25sin(48/47-56t)-5/18 sin(66/67-55t)-4/23sin(29/22-49t)-1/8sin(1/13-47t)-11/27sin(1/8-43t)-2/5sin(3/26-42t)-9/23sin(29/22-38t)-12/73sin(31/29-35t)-27/32sin(44/43-33t)-43/64sin(5/28-31t)-22/30sin(74/49-29t)-1/6sin(1/9-26t)-59/39sin(41/29-21t)-11/30sin(17/39-20t)-211/17sin(1/35-9t)-241/19sin(23/17-7t)+36430/149sin(t+5/18)+2217/46sin(2t+73/20)+327/38sin(3t+11/8)+833/125sin(4t+111/40)+376/37sin(5t+121/27)+193/31sin(6t+77/40)+115/22sin(8t+19/14)+600/49sin(10t+57/86)+212/39sin(11t+11/16)+141/37sin(12t+26/7)+32/13sin(13t+38/45)+101/31sin(14t+21/25)+175/34sin(15t+22/25)+61/21sin(16t+131/32)+31/30sin(17t+139/40)+33/46sin(18t+37/46)+61/18sin(19t+22/17)+25/29sin(22t+5/22)+27/16sin(23t+89/36)+41/32sin(24t+62/45)+23/30sin(25t+143/53)+10/19sin(27t+85/26)+13/17sin(28t+75/26)+4/13sin(30t+51/50)+31/72sin(32t+226/55)+14/19sin(34t+75/16)+8/27sin(36t+34/9)+14/41sin(37t+23/20)+11/30sin(39t+53/34)+11/54sin(40t+87/26)+4/29sin(41t+17/32)+14/31sin(44t+2/11)+1/4sin(45t+49/11)+13/48sin(46t+18/25)+1/19sin(48t+12/11)+6/35sin(50t+230/63)+8/21sin(51t+12/13)+13/53sin(52t+83/45)+3/14sin(53t+11/26)+10/33sin(54t+56/21)+3/40sin(57t+133/100)+9/64sin(59t+49/23)+3/11sin(61t+132/52)+1/33sin(62t+141/31)-59191/111$
$y(t)=-2/27sin(12/25-55t)-16/63sin(26/47-54t)-19/94sin(1/2-53t)-5/22sin(77/96-52t)-29/64sin(377/251-33t)-24/35sin(33/25-26t)-9/7sin(35/44-19t)-182/29sin(44/43-9t)-355/32sin(15/16-6t)-1513/36sin(16/11-5t)-3265/48sin(27/25-4t)-4349/20sin(82/55-t)+3312/29sin(2t+55/34)+18sin(3t+85/19)+93/14sin(7t+159/50)+131/23sin(8t+75/28)+105/44sin(10t+41/9)+151/26sin(11t+4/27)+51/23sin(12t+29/15)+65/17sin(13t+63/95)+28/43sin(8t+103/30)+20/19sin(20t+28/23)+26/37sin(21t+35/36)+8/7sin(22t+26/15)+11/35sin(23t+59/23)+35/52sin(24t+161/37)+29/40sin(30t+66/23)+20/61sin(31t+85/32)+32/51sin(32t+29/7)+27/55sin(34t+34/25)+13/28sin(36t+49/23)+11/25sin(3t+61/14)+17/21sin(38t+31/8)+11/29sin(39t+121/29)+50/151sin(40t+93/40)+2/19sin(4t+19/47)+15/46sin(42t+88/27)+8/19sin(43t+103/22)+2/13sin(44t+156/41)$
โปรแกรมนี้วาดรูปหมาน่ารักๆ
ผมเป็นผู้เลือกสมกำรข้ำงบนและเขียนนิพจน์คณิตศำสตร์ด้วยตัวเอง

In [37]:
def x(t):
    xt = -4/37*math.sin(14/13-60*t)-1/26*math.sin(8/7-58*t)-3/25*math.sin(48/47-56*t)-5/18*math.sin(66/67-55*t)\
         -4/23*math.sin(29/22-49*t)-1/8*math.sin(1/13-47*t)-11/27*math.sin(1/8-43*t)-2/5*math.sin(3/26-42*t)\
         -9/23*math.sin(29/22-38*t)-12/73*math.sin(31/29-35*t)-27/32*math.sin(44/43-33*t)-43/64*math.sin(5/28-31*t)\
         -22/30*math.sin(74/49-29*t)-1/6*math.sin(1/9-26*t)-59/39*math.sin(41/29-21*t)-11/30*math.sin(17/39-20*t)\
         -211/17*math.sin(1/35-9*t)-241/19*math.sin(23/17-7*t)+36430/149*math.sin(t+5/18)+2217/46*math.sin(2*t+73/20)\
         +327/38*math.sin(3*t+11/8)+833/125*math.sin(4*t+111/40)+376/37*math.sin(5*t+121/27)+193/31*math.sin(6*t+77/40)\
         +115/22*math.sin(8*t+19/14)+600/49*math.sin(10*t+57/86)+212/39*math.sin(11*t+11/16)+141/37*math.sin(12*t+26/7)\
         +32/13*math.sin(13*t+38/45)+101/31*math.sin(14*t+21/25)+175/34*math.sin(15*t+22/25)+61/21*math.sin(16*t+131/32)\
         +31/30*math.sin(17*t+139/40)+33/46*math.sin(18*t+37/46)+61/18*math.sin(19*t+22/17)+25/29*math.sin(22*t+5/22)\
         +27/16*math.sin(23*t+89/36)+41/32*math.sin(24*t+62/45)+23/30*math.sin(25*t+143/53)+10/19*math.sin(27*t+85/26)\
         +13/17*math.sin(28*t+75/26)+4/13*math.sin(30*t+51/50)+31/72*math.sin(32*t+226/55)+14/19*math.sin(34*t+75/16)\
         +8/27*math.sin(36*t+34/9)+14/41*math.sin(37*t+23/20)+11/30*math.sin(39*t+53/34)+11/54*math.sin(40*t+87/26)\
         +4/29*math.sin(41*t+17/32)+14/31*math.sin(44*t+2/11)+1/4*math.sin(45*t+49/11)+13/48*math.sin(46*t+18/25)\
         +1/19*math.sin(48*t+12/11)+6/35*math.sin(50*t+230/63)+8/21*math.sin(51*t+12/13)+13/53*math.sin(52*t+83/45)\
         +3/14*math.sin(53*t+11/26)+10/33*math.sin(54*t+56/21)+3/40*math.sin(57*t+133/100)+9/64*math.sin(59*t+49/23)\
         +3/11*math.sin(61*t+132/52)+1/33*math.sin(62*t+141/31)-59191/111
    return xt
def y(t):
    yt = -2/27*math.sin(12/25-55*t)-16/63*math.sin(26/47-54*t)-19/94*math.sin(1/2-53*t)-5/22*math.sin(77/96-52*t)\
         -29/64*math.sin(377/251-33*t)-24/35*math.sin(33/25-26*t)-9/7*math.sin(35/44-19*t)-182/29*math.sin(44/43-9*t)\
         -355/32*math.sin(15/16-6*t)-1513/36*math.sin(16/11-5*t)-3265/48*math.sin(27/25-4*t)-4349/20*math.sin(82/55-t)\
         +3312/29*math.sin(2*t+55/34)+18*math.sin(3*t+85/19)+93/14*math.sin(7*t+159/50)+131/23*math.sin(8*t+75/28)\
         +105/44*math.sin(10*t+41/9)+151/26*math.sin(11*t+4/27)+51/23*math.sin(12*t+29/15)+65/17*math.sin(13*t+63/95)\
         +28/43*math.sin(8*t+103/30)+20/19*math.sin(20*t+28/23)+26/37*math.sin(21*t+35/36)+8/7*math.sin(22*t+26/15)\
         +11/35*math.sin(23*t+59/23)+35/52*math.sin(24*t+161/37)+29/40*math.sin(30*t+66/23)+20/61*math.sin(31*t+85/32)\
         +32/51*math.sin(32*t+29/7)+27/55*math.sin(34*t+34/25)+13/28*math.sin(36*t+49/23)+11/25*math.sin(3*t+61/14)\
         +17/21*math.sin(38*t+31/8)+11/29*math.sin(39*t+121/29)+50/151*math.sin(40*t+93/40)+2/19*math.sin(4*t+19/47)\
         +15/46*math.sin(42*t+88/27)+8/19*math.sin(43*t+103/22)+2/13*math.sin(44*t+156/41)
    return yt
plot(x, y, -6, 6, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=11cos(t)-6cos(11t/6)$
$y(t)=11sin(t)-6sin(11t/6)$
โปรแกรมนี้วาดลวดลายอ่อนช้อยสวยงาม
ผมเป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [38]:
def x(t):
 xt = (11*math.cos(t))-(6*math.cos(11*t/6))
 return xt
def y(t):
 yt = (11*math.sin(t))-(6*math.sin(11*t/6))
 return yt
plot(x, y, -20, 20, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย ???? ????
$x(t) = 4\pi t + 4\pi(cos(80\pi t) - cos(2\pi t))$
$y(t) = cos(4\pi t) + 4\pi(sin(80\pi t) - sin(2\pi t))$
โปรแกรมนี้จะะวาดลวดลายที่โค้งวนและขดไปเรื่อยๆ
ผมเป็นผู้เลือก สมการข้างบนด้วยตัวเอง

In [39]:
def x(t):
    xt = 4*(math.pi*t) + 4*math.pi*(math.cos(80*math.pi*t) - math.cos(2*math.pi*t))
    return xt

def y(t):
    yt = math.cos(4*math.pi*t) + 4*math.pi*(math.sin(80*math.pi*t) - math.sin(2*math.pi*t))
    return yt

plot(x, y, 0, 1, 0.0001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย???? ????
$x(t)=5sin(-7t)^2*(1.75^{(tan(cos(11.12t)))})$
$y(t)=5sin(sin(-7t))*sin(11.12t)^2$
โปรแกรมนี้วาดรูปภาพของลูกข่าง ซึ่งมีความสวยงามและเป็นเอกลักษณ์เฉพาะตัวเป็นอย่างยิ่ง
ผมเป็นผู้ที่ทดลองหาสมการ และเขียนนิพจน์นี้ด้วยตัวของผมเอง

In [40]:
def x(t):
    xt = 5*math.sin(-7*t)**2 * \
         1.75**(math.tan(math.cos(11.12*t)))
    return xt

def y(t):
    yt =  5*math.sin(math.sin(-7*t))* \
          math.sin(11.12*t)**2
    return yt
plot(x, y, -20, 20, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย???? ????
$x(t)=cos(t)+((cos(6t))\div 2)+((sin(14t))\div 3)$
$y(t)=sin(t)+((sin(6t))\div 2)+((cos(14t))\div 3)$
โปรแกรมนี้รังสรรค์รูปภาพจากสมการคณิตศาสตร์ได้สวยงามมาก
ผมเป็นผู้เลือกสมการด้านล่างและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [41]:
def x(t):
    xt = math.cos(t)+((math.cos(6*t))/2)+((math.sin(14*t))/3)
    return xt
def y(t):
    yt = math.sin(t)+((math.sin(6*t))/2)+((math.cos(14*t))/3)
    return yt
plot(x, y, 0, 2*math.pi, 0.009)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? น.ส. ???? ????
$ x(t) = 1cos(4t)-cos(2t)sin(2t)$
$ y(t) = 4cos(7t) -sin(0.8t)$
โปรแกรมนี้วาดลวดลายที่คล้ายคลึงกับการถักเมคราเม่ของญี่ปุ่น
ฉันเป็นผู้เลือกสมการและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [42]:
i = 1
j =4
a,b,c,d,e = 4,2,2,7,0.8
def x(t):
 xt = i *math.cos(a*t)-math.cos(b*t)*math.sin(c*t)
 return xt
def y(t):
 yt = j*math.cos(d*t) - math.sin(e*t)
 return yt
plot(x, y, 0, 60, 0.1)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t) = 3 \sin(13.58t) \sqrt{\cos ( \cos(7.4t) ) }$
$y(t) = 6 \cos (13.58t)^4 \sin( \sin(7.4t) )$
โปรแกรมวาดลวดลายวาดเส้นความสัมพันธ์ระหว่างพี่น้องสีเลือดหมู
ผมเป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [43]:
def x(t):
    xt = 3*math.sin(13.58*t) * \
    ((math.cos(math.cos(7.4*t)))**0.5)
    return xt
def y(t):
    yt = 6*((math.cos(13.58*t))**4)*math.sin(math.sin(7.4*t))
    return yt
plot(x, y, -8, 9, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$ x(t)=11\cos t -6\cos ((11\div 6) t) $
$ y(t)=11\sin t- 6\sin ((11\div 6) t) $
เป็นสมการที่มองภายนอกแล้วอาจจะซับซ้อน แต่มีความสวยงามซ่อนอยู่
ผมเป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [44]:
def x(t):
    xt=11*math.cos(t)-6*math.cos((11/6)*t)
    return xt
def y(t):
    yt=11*math.sin(t)-6*math.sin((11/6)*t)
    return yt
plot(x,y,-10*math.pi,10*math.pi,0.5)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)=cos(7t)cos(11t)$
$y(t)=cos(7t)sin(11t)$
โปรแกรมนี้วาดลวดลำยอ่อนช้อยสวยงามสะดุดตา
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [45]:
def x(t):
    xt = math.cos(7*t)*math.cos(11*t)
    return xt
def y(t):
    yt = math.cos(7*t)*math.sin(11*t)
    return yt
    
plot(x, y, 0, 2*math.pi, 0.01)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย ???? ????
$x(t) = sin(t)(e^{cos(t)}-2cos(5t)-(sin(t/10)^5)$
$y(t) = cos(t)(e^{cos(t)}-2cos(5t)-(sin(t/10)^5)$
โปรแกรมนี้เป็นการวาดลวดลายของผีเสื้อเสมือนจริง
ผมเป็นผู้เลือกสมการข้างบนเเละเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [46]:
def x(t):
    xt = math.sin(t)*(math.e**math.cos(t)-2*math.cos(5*t)-(math.sin(t/10))**5)
    return xt
def y(t):
    yt = math.cos(t)*(math.e**math.cos(t)-2*math.cos(5*t)-(math.sin(t/10))**5)
    return yt
plot(x, y, -30, 30, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? นาย???? ????
$x(t)=sin(sin(t)+cos(40t))$
$y(t)=cos(sin(t)+sin(80t))$
โปรแกรมนี้วาดภาพอะไรก็ไม่ทราบครับ ไม่สามารถอธิบายได้ แต่ผมมองว่าสวยดี
ผมเป็นผู้เลือกสมการข้างบน และเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [47]:
def x(t):
    xt = math.sin(math.sin(t)+math.cos(40*t))
    return xt

def y(t):
    yt = math.cos(math.sin(t)+math.sin(80*t))
    return yt

plot(x, y, 0, 2*math.pi, 0.0001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ณัฐพงษษ์ ????
$ x(t)=cos(t)(e^{cos(t)}-2cos(4t)-sin^5(\frac{t}{2})) $
$ y(t)=sin(t)(e^{cos(t)}-2cos(4t)-sin^5(\frac{t}{2})) $
โปรแกรมนี้สามารถทำรูปออกมาเป็นแบบไหนก็ได้โดยมาจากความคิดของแต่ละบุคคล
ผมเป็นผู้เลือกสมการข้างต้นนี้เองและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [48]:
def x(t):
    xt = math.cos(t)*(((math.e)**math.cos(t)) - (2*math.cos(4*t)) - (math.sin(t/12)**5))
    return xt
def y(t):
    yt = math.sin(t)*(((math.e)**math.cos(t)) - (2*math.cos(4*t)) - (math.sin(t/12)**5))
    return yt
plot(x, y, 0, 60*math.pi, 0.001)
plt.show()

Prog-02: Beautiful Parametric Equations
?????????? นาย???? ????
$x(t)=cos(t)-cos(100t)sin(t)$
$y(t)=2sin(t)-sin(100t)$
โปรแกรมนี้วาดลวดลายได้อย่างสวยงาม
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [49]:
def x(t) :
    xt=math.cos(t)-((math.cos(100*t))*(math.sin(t)))
    return xt

def y(t) :
    yt = (2*(math.sin(t)))-(math.sin(100*t))
    return yt

plot(x, y, 0, 2*(math.pi), 0.001)
plt.show()

Prog-02: Beautiful Parametric Equation
?????????? ???? ????
$x(t)= 2cos(t)+sin(2t)cos(60t)$
$y(t)= sin(2t)+sin(60t)$
โปรแกรมนี้หน้าตาเหมือนไต
ขอยืนยันว่านิสิตเป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [50]:
def x(t):
    xt = 2*math.cos(t)+(math.sin(2*t))*(math.cos(60*t))
    return xt
    
def y(t):
    yt = math.sin(2*t)+math.sin(60*t)
    return yt

plot(x, y, -100, 100, 0.005)
plt.show()

Prog-02: Parametric Equations
?????????? นาย???? ????
$ x(t) = 11\times (\cos t) - 6\times (\cos 11t/6) $
$ y(t) = 11\times (\sin t) - 6\times (\sin 11t/6) $
ความดีเลิศคือสุดยอดของดอกไม้ชิ้นโบว์ขาวนี้
นิสิตได้เป็นผู้เลือกและเขียนนิพจน์คณิตศาสตร์ของสมการที่เลือก

In [51]:
def x(t):
    xt = 11*math.cos(t) - 6*math.cos(11*t/6)   
    return xt
def y(t):
    yt = 11*math.sin(t) - 6*math.sin(11*t/6)
    return yt

plot(x, y, 0, 100, 0.01)
plt.show()

prog-02: Beautiful Parametric Equation
?????????? นาย ???? ????
$x(t)=cos(t)-cos(100t)sin(t)$
$y(t)=2sin(t)-sin(100t)$
โปรมแกรมนี้วาดกราฟได้สวยมาก
ผมเป็นผู้เลือกสมการข้างบนและเขียนนิพจน์คณิตศาสตร์ด้วยตัวเอง

In [52]:
def x(t):
    xt = math.cos(t)-math.cos(100*t)*math.sin(t)
    return xt

def y(t):
    yt = 2*math.sin(t)-math.sin(100*t)
    return yt

plot (x, y, 0, 2*math.pi, 0.00001)
plt.show()