Tools to aid the use of Python as CAS in danish high schools.
Project description
GYM CAS
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file gym_cas-0.0.9.tar.gz
.
File metadata
- Download URL: gym_cas-0.0.9.tar.gz
- Upload date:
- Size: 124.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6edddec919ae35d1ff1b82646369697500ce74d29d9d7665a70426d252b30d07 |
|
MD5 | 0c73e9b98d8bc5dc3fde494c045b6e3d |
|
BLAKE2b-256 | 4b14b92ab75e9e179496250060043e7ce4df94b40cd3e2aebc9c662e5aa4f41a |
File details
Details for the file gym_cas-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: gym_cas-0.0.9-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129e5b9ed064782a3df92a1261540d9320a120530f3a6fe770a578f0dffc477d |
|
MD5 | ee61242e3eb6c6cd8b928d8b18f24409 |
|
BLAKE2b-256 | 498e4a54b9a78d1e94befc350c710f9993a7a5731f028aa798683d71dd92316c |