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, ...])
B6. Deskriptiv Statistik
Ugrupperet
max( data )
min( data )
mean( data )
median( data )
var( data, ddof )
std( data, ddof )
kvartiler( data )
percentile( data , procenter )
frequency( data )
boxplot( data )
plot_sum( data )
Grupperet
group_mean( data, grupper )
group_percentile( data, grupper, procenter )
group_var( data, grupper, ddof )
group_std( data, grupper, ddof )
frequency( data, grupper )
boxplot( data, grupper )
plot_sum( data, grupper )
plot_hist( data, grupper )
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.13.tar.gz
(289.9 kB
view details)
Built Distribution
gym_cas-0.0.13-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file gym_cas-0.0.13.tar.gz
.
File metadata
- Download URL: gym_cas-0.0.13.tar.gz
- Upload date:
- Size: 289.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f2d3e34154b89a7287f8c5e6b436556f0335f89fcdaf33c4f2702bb33ebf729 |
|
MD5 | bca2a0ad8ce9917cd732dea30ff79e65 |
|
BLAKE2b-256 | 86808a06030222ca7e5aa69f8e525f2ba8acb0704ffdc9234ed6a789b8781aa5 |
File details
Details for the file gym_cas-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: gym_cas-0.0.13-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77989554efba57822bf62c262b631320236a03a6a7e26e471e8f9252d2f1bb54 |
|
MD5 | 9001014ed2ac23230175c1242599ca0b |
|
BLAKE2b-256 | 33cb6a8c48c2d99f96caddd897dce05cf1d413848cc81bd1757c0b3db8e6906a |