Skip to main content

generator_zadan

Utworzone na użytek własny. Licencja poniżej.

Pakiet generator_zadan zawiera zdefiniowane funkcje generujące różnego typu zadania dla studentów pierwszego roku uczelni technicznej.

Wszystkie funkcje generujące oparte są na losowo generowanych danych, by uzyskać maksymalną różnorodność w zakresie danego typu zadania.

Zadania mają mieć eleganckie parametry i wyniki mają być przyjazne dla człowieka.

Z biegiem czasu pewnie będzie więcej typów.

Instalacja

Wymagana wersja python==3.11

pip install generator_zadan

lub (nawet lepsze, bo od razu można generować zestawy)

git clone https://github.com/DyonOylloug/generator_zadan
cd generator_zadan
pip install .

Jak to działa?

Funkcje zwracają zadanie w formacie krotki składającej się z dwóch części:

  • Polecenie w formacie LaTeX
  • Rozwiązanie w formacie LaTeX (może zawierać obrazy)

Np.

import generator_zadan.generatory as gz

zadanie = gz.rownanie_prostej()
zadanie
('Wyznaczyć równanie prostej przechodzącej przez punkty\n\t\\[\n\t\tP_1 = (5, 5, 3), \\quad P_2 = (2, -1, 5).\n\t\\]\n\tObliczyć odległość wyznaczonej prostej od punktu\n\t\\[\n\t\tP_3 = (5, 2, 1).\n\t\\]',
 '$l\\colon  \\frac{x - 5}{-3}= \\frac{y - 5}{-6}= \\frac{z - 3}{2}; \\qquad d(P_3,l) = 3$')

W bardziej czytelnej postaci wygląda to następująco

print(zadanie[0])  # pierwszy element to polecenie
print('-'*80)      # oddzielenie części
print(zadanie[1])  # drugi element to rozwiązanie
Wyznaczyć równanie prostej przechodzącej przez punkty
	\[
		P_1 = (5, 5, 3), \quad P_2 = (2, -1, 5).
	\]
	Obliczyć odległość wyznaczonej prostej od punktu
	\[
		P_3 = (5, 2, 1).
	\]
--------------------------------------------------------------------------------
$l\colon  \frac{x - 5}{-3}= \frac{y - 5}{-6}= \frac{z - 3}{2}; \qquad d(P_3,l) = 3$

Docelowa forma wygląda następująco

Zadanie

Wyznaczyć równanie prostej przechodzącej przez punkty

$$ P_1 = (5, 5, 3), \quad P_2 = (2, -1, 5).$$

Obliczyć odległość wyznaczonej prostej od punktu

$$ P_3 = (5, 2, 1).$$

Rozwiązanie

$$l\colon \frac{x - 5}{-3}= \frac{y - 5}{-6}= \frac{z - 3}{2}; \qquad d(P_3,l) = 3$$

I to w zasadzie tyle. Więcej przykładów w odpowiednich sekcjach tematyczynych dokumentacji.

W sekcji Generuj zestaw zadań po uruchomieniu interaktywnej sesji notebooka można wygenerować swój zestaw.

Dokumentacja

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

generator_zadan was created by Adam Bohonos. It is licensed under the terms of the MIT license.

Credits

generator_zadan was created with cookiecutter and the py-pkgs-cookiecutter template.

Metadata

Release files for generator_zadan 0.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for generator_zadan 0.2.11
File Size Uploaded
generator_zadan-0.2.11.tar.gz 3.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for generator_zadan 0.2.11
File Interpreter ABI Platform
generator_zadan-0.2.11-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 MB

Release files / generator_zadan-0.2.11.tar.gz

Download URL generator_zadan-0.2.11.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
ff58f8737d62c4c1290fc3662269b26868e821bfccde1a3aa0661be2233a5840
BLAKE2b-256 checksum
How to use checksums
f2cb095b5593467b768b28a652d43420c8c7cdcb13377c2f5525c9875d643755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.5 Windows/10

Release files / generator_zadan-0.2.11-py3-none-any.whl

Download URL generator_zadan-0.2.11-py3-none-any.whl
Size 3.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3069ea8101b7304246b1c1e89544450a95904e2d0e8fc2f290e1bfed7ac6a2e1
BLAKE2b-256 checksum
How to use checksums
a6b1f2c598ccb9a7e60bed0b0e0d1b289e22e009b184bd72bbd5b8e2cdd94786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.5 Windows/10

Release history Release notifications | RSS feed

This release

0.2.11 This release

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page