Skip to main content

Generuje losowo roznego typu zadania

Project description

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.

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

generator_zadan-0.2.11.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generator_zadan-0.2.11-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file generator_zadan-0.2.11.tar.gz.

File metadata

  • Download URL: generator_zadan-0.2.11.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10

File hashes

Hashes for generator_zadan-0.2.11.tar.gz
Algorithm Hash digest
SHA256 ff58f8737d62c4c1290fc3662269b26868e821bfccde1a3aa0661be2233a5840
MD5 16b00e5931185d40c7d566ef3e1db9c5
BLAKE2b-256 f2cb095b5593467b768b28a652d43420c8c7cdcb13377c2f5525c9875d643755

See more details on using hashes here.

File details

Details for the file generator_zadan-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: generator_zadan-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10

File hashes

Hashes for generator_zadan-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3069ea8101b7304246b1c1e89544450a95904e2d0e8fc2f290e1bfed7ac6a2e1
MD5 2d4116e3641a74948988406a7d799c3b
BLAKE2b-256 a6b1f2c598ccb9a7e60bed0b0e0d1b289e22e009b184bd72bbd5b8e2cdd94786

See more details on using hashes here.

Supported by

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