Skip to main content

Tools to aid the use of Python as CAS in danish high schools.

Project description

GYM CAS

PyPI - Version PyPI - Python Version

Hjælpepakke til at bruge Python som CAS (Computational Algebra System) i gymnasiet.

Installation

pip install gym-cas

Cheatsheet

I nedenstående afsnit antages det at gym_cas først importeres således:

from gym_cas import *

B1. Tal- og bogstavregning

expand( udtryk )
factor( udtryk )

B2. Ligninger og uligheder

solve( udtryk )
solve( [udtryk1, udtryk2] )
nsolve( udtryk, start )

Bemærk at den nemmeste måde at bruge solve i SymPy er ved at omforme sin ligning så en af siderne er lig 0. Hvis man fx vil løse ligningen x/2 = 10 så kan det skrives solve(x/2-10).

B3. Geometri og trigonometri

Sin( vinkel )
Cos( vinkel )
Tan( vinkel )
aSin( forhold )
aCos( forhold )
aTan( forhold )

B4. Analytisk plangeometri

plot_list( X_list ,Y_list, is_point=True)
plot( funktion )
plot_implicit( udtryk ,xlim=( x_min, x_max),ylim=( y_min, y_max))
plot_geometry( Geometrisk objekt )

Flere grafer i en afbildning

p1 = plot( udtryk1 )
p2 = plot( udtryk2 )
p = p1 + p2
p.show()

B5. Vektorer

a = Matrix([x,y])
a.dot(b)
plot_vector( vektor )
plot_vector( start, vektor )
plot_vector( [vektor1, vektor2, ...])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_cas-0.0.9.tar.gz (124.3 kB view hashes)

Uploaded Source

Built Distribution

gym_cas-0.0.9-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page