Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

simple_equ-1.3.840-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.840-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.840-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.840-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.840-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.840-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.840-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.840-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.840-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.840-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.840-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.840-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.840-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.840-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.840-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.840-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.840-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.840-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.840-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.840-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.840-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 80d514e331d851de65a2709c7c8ebf4195db22d406415a05ed37d0cad973205c
MD5 f4d61abe8071dceb56553081ceb94e1a
BLAKE2b-256 b7c0aa17b9a271e98edc2ddc6e5ffdedf7bc328874fd22ca7fd96219b95b8ef7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6f87d9b937962a18a31698f1e5d990546ccf5cb84fd29e0648c052ebc9337bed
MD5 85d65e6e287f1a592062ca2d37b182aa
BLAKE2b-256 e804be6e833c6b7212ea6f0a7c4757efffcabf9a916580e0255e9af052e31de6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44d6ad143032a983f58903fea482f0391b7d1952948b561cf93a78c6122f5020
MD5 35671f27e8c4e3837017dda2564ae8a5
BLAKE2b-256 7107f6205917ea6ce57e8f2a48c11b2c9a4acb36aaaaf06924609fff9954fab4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3808c2de6dbe0fa60d5baf36cb969cd462db81fa176a8988d443180e84c430a7
MD5 3cd72c2cad0194cd4137c92469605087
BLAKE2b-256 f40a238b00432810587a7790a0a751c15f4a71832a826e32a43e612e20b5bfe8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4986f8063b0f7ce4ebf6c44b6ef6981deab47b2ee2cba05dac357a4e24c459fd
MD5 94b54c18c149bc99b5d70f2892d29734
BLAKE2b-256 92885a5ead82e0d299afbca93029d8076ce1c14171956b1313c4a539b190ee9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 506ddc732ef19bb0a210f9e579cc517ea79c7b62cc6431603652d2d008351f39
MD5 08cd91491ece8305a0500c6f2a399172
BLAKE2b-256 f440ac77db55780dd9d6297c08a2c20f31edf5005a8cdde69c3b1428474388a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6cb4b87ac0ec72c24476d86cd941a1521a949e5be76273fe889cbbf240beedb
MD5 61ce5b6f7dd96dd770ec1a7e62f09cbf
BLAKE2b-256 00b043325a324b843511a5243a35863ce6e0b2af5ed8179a5fc8f7254c053e6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67e87e1b6183577311b3cf94406aaf17198ad0413dd593e9dee7c0a838c49c85
MD5 15779050e890948fd64fa1c57220d326
BLAKE2b-256 252d73ae82636c7d32c38c66c1ee0a5fb40961dd66056e2019952a7118adff42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f74cc3d31138140f19923cd7cd394c5daae4f6afa23c41d978fc220a57dfbd9
MD5 638dd97f88d62b586561c9388c77ec5f
BLAKE2b-256 d2a0f38686299498c7810d8feed759db164f0647d5ad84ad87ee58ae8400d49c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6e902ce35882289c334d06a3282156560dbf2c4e93cd73aa13d6f519631ac9f3
MD5 907f10a7b528ad0cec780cb564c58107
BLAKE2b-256 b7f508664b01e313ab9dce383d2d19c23eac8dc8ce6eba6cd0e37ab49b82b2ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0732f89f35153c965d774ec8979eede173aafd48301f35324f22b068c49c381
MD5 e127d2e796c64559fbaa5caad2541066
BLAKE2b-256 e4a68b2582972284f6364fed4d8719d442c7aef88a673e97f33a609af69447ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2680750eff1e0d1d8b42ee52d27660a024b4165f955dbeb2d6f20668ed714a9
MD5 9ed9a6b314109cca43f6ed629132b87f
BLAKE2b-256 b06a41826561dff1367947c021a61773bdb00daf71744e670293c1aa05caaa12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dfc65a42e3e83f7230a2099b8b49c422543022bed674e7f69694d74b18fc8e85
MD5 8377f898b8ca389bb9b4afb5ba64b5cd
BLAKE2b-256 141f6cbd7512e03585d52e4889b8f926f352d17d3100747e6ffa438ad85fa83a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6cc606fc784e5b317985eff9680acad8911f31fa02ceab66a36de6d5d3d22c8b
MD5 66c6d0477b90eed6ca63504263ee8f46
BLAKE2b-256 7a42df59919dc8d367021ee8d8e17c32442b14c586623e81460a046bc48ae87d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c9ed9d92e6c723f85c6bebbe7c24e48e63d0e9f8169e919e6f9c498adc6b16e
MD5 1149b94b3d70c6356eb792c36e953e18
BLAKE2b-256 dfe3c079f5d7198638e5f4a9a534196ee1a89408d771f1a3158c050a06435d26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 833fc98ca07fa7b87c70d89b554cdf9bcc66aa8cffcd0dea182534ea4aea5430
MD5 3a1e24de6164dba4085e012d33352afd
BLAKE2b-256 564ea5337d704099564b44ab3ebe59ab05294299b26c95b0efb417bf3963c5fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3feffc16ae119789d11ea1bcfb83055351f87f95d5d14ac3ed13dbd71fed0ee9
MD5 444bca24943d6accc7c282e93d61c957
BLAKE2b-256 3ceea98d728f0573d4b29091db50f69ea30e8b427b79980476f20e8597f8033d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.840-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.840-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 90f35b47ff6dce375a5e869f65dbe2d3cb5d16903bfa3a5873ba62cb4b88ee71
MD5 56c2b33da17d7e07c8352fd5274ff793
BLAKE2b-256 0cc8eee1bafd3d02519a45c5058c667e2c2f57350e77c25a6d1225d35394d1ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e37b43d68e107310f3b44eecf37aa5ac1b5b88c1aa229f685f88caf49915f64
MD5 1a00c3924880c04736d34b8091ae6057
BLAKE2b-256 da67a004059e6ac536c06353acab6e08c9b2dde85bb4f2c31cd5833306c000f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.840-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.840-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43e5ca7daa6f0a028568f5daa79b91d8960eba3ff89f350c85a3448b9e5e1c6c
MD5 91959013df11dbe1d4bc5d2373becda6
BLAKE2b-256 9cde3222fae1895c49e0d1421965efa9512abea5ec0ababba41ec66a2d0b9453

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