Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

casify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casify

A CAS-library wrapped around sympy to simplify use of CAS-functionality in mathematics.

  • 0.2.11
  • PyPI
  • Socket score

Maintainers
1

casify

casify is a Python package that implements a simplified CAS (Computer Algebra System) for symbolic computation, wrapping around sympy for facilitate its computations. The implementation provides both Norwegian and English names for all of its functions.

Basic examples

Example 1: solving equations

from casify import *

solution = solve("x**2 - x - 6 = 0")
print(solution)

Eksempel 1: løse likninger

from casify import *

løsning = løs("x**2 - x - 6 = 0")
print(løsning)

Example 2: solve system of equations

from casify import *

solution = solve("x + y = 2", "x - y = -1")

print(solution)

Eksempel 2: løse likningssystemer

from casify import *

løsning = løs("x + y = 2", "x - y = -1")

print(løsning)

Example 3: function evalution

from casify import *

f = function("x**2 - x - 6")

print(f(2)) # Computes f(2)

Eksempel 3: funksjonsverdier

from casify import *

f = funksjon("x**2 - x - 6")

print(f(2)) # Regner ut f(2)

Example 4: Differentiation

from casify import *

f = function("x**2 - x - 6")


print(f.derivative()) # Gives the general expression for the derivative

print(f.derivative(2)) # computes f'(2)

Eksempel 4: Derivasjon

from casify import *

f = funksjon("x**2 - x - 6")

print(f.derivert()) # gir det generelle uttrykket for den deriverte

print(f.derivert(2)) # regner ut f'(2)

Example 5: algebraic expansion and factorization

from casify import *

print(factor("x**2 - x - 6"))  # faktoriserer x**2 - x - 6

print(expand("2*(x - 1) * (x + 4)"))  # utvider 2 * (x - 1) * (x + 4)

Eksempel 5: algebraisk utvidelse og faktorisering

from casify import *

print(faktoriser("x**2 - x - 6"))  # faktoriserer x**2 - x - 6

print(utvid("2*(x - 1) * (x + 4)"))  # utvider 2 * (x - 1) * (x + 4)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc