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

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.10.tar.gz (2.9 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.10-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generator_zadan-0.2.10.tar.gz
  • Upload date:
  • Size: 2.9 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.10.tar.gz
Algorithm Hash digest
SHA256 d23ee7589ef5eb0a26e368545ff12bc5d20074c2e42d82d17f353dc8c01e6525
MD5 87eb15229e9332421edfed3af68fc799
BLAKE2b-256 9bbc6f0b4a16cd37de1ebadfe364e66b0d567b94547ab6b198457479b4c16988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: generator_zadan-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe7f6ce486b0591cac97483e4fc9776c0286cb34b335431530a542ed23b9d3d
MD5 81006f2ee93083193b535370ba0c34f8
BLAKE2b-256 4301f6342789306ab179987d8c6df4309486d03f754af2dfa7819d31cba2f6b6

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