Skip to content

Cjenf/Curvify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📐Curve

A module using matplotlib for ploting Curves (Ellipse , Hyperbola , Parabola).

Install package

pip install Curvify

Ellipse:

import curve as cv
cv=cv.ellipse(3,3,5,5)
cv.draw()
print(cv.center) # output: (3,3)

curve

Parabola

import curve as cv
import numpy as np

p=cv.Parabola(np.linspace(-10, 10, 100), 1,1,1,1,"up",True)
p.draw()
print(p.axis_equation) # output: x-1=0

螢幕擷取畫面 2024-06-20 135000

Hyperbola

import curve as cv
import numpy as np
h=curve.Hyperbola(np.linspace(0,10,100),1,2,3,4,"left")
h.draw()
print(h.vertex) # output: ((5, 4), (1, 4))

螢幕擷取畫面 2024-06-20 141706

About

📐A package for Ellipse , Hyperbola , Parabola

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages