Skip to content

API Reference

kian140908 edited this page Dec 14, 2025 · 7 revisions

class: Polynomier:

  • functions:
  • andengrads(a or list, b, c)
    "Is used to find the to x values if x is over 0 if fx. -2x^2+5x+6=0"
    example:
from matematik_klib import Polynomier  
  
x = Polynomier.andengrads(-2, 5, 6)  
print(x)  
  • tredjegrads(a or list, b, c, d)
    "Solves cubic equations of the for ax^3+bx^2+cx+d=0"
    example:
from matematik_klib import Polynomier  
  
x = Polynomier.tredjegrads(1, -6, 11, -6)  
print(x)  
  • function potens(grundtal or list, eksponent): "used to set set something to the power of"
    example:
from matematik_klib import potens

answer = potens(2, 5)

print(answer)
  • function nrod(radikanden or list, rodeksponent)
    "nrod is used to make roots with radikanden being the number in the root and rodeksponent being n or the number on the root"
    example:
from matematik_klib import nrod

answer = nrod(25, 2)

print(answer)

Class: Areal:

  • functions:
  • firkant(hojde_or_lengde_or_liste, bredde)
    "firkant is used to find the area of a square by using height, width"
    example:
from matematik_klib import Areal  
  
answer = Areal.firkant(2, 5)

print(answer)
  • cirkel(radius)
    "cirkel is used to find the area of a cirkel from the radius it is not to precise but it will get the job done"
from matematik_klib import Areal  
  
answer = Areal.cirkel(2)  
  
print(answer)  

more will be added latter...

Clone this wiki locally