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.257-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.257-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.257-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.257-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.257-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.257-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.257-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.257-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.257-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.257-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.257-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.257-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c1fe4b53e00374b19e55d11cb8667e8ee84f468757bb8abf832674186d71c7b
MD5 2bf9ac3843d29b0385a26e075d354ab5
BLAKE2b-256 fab1e0f8b032155132be48d08c1aed006181adb127fa912565dde1654cd9c984

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f0cd749cf68459d6dc5a10b44fc58f3d1a2b387854295f804aac67dc99cbebd
MD5 c9cedd65a8926dcc77116223b87c69d1
BLAKE2b-256 4b12a52bb087a2b2ae7775cb748cf2b5b1767b12b5644b71f459e05976661896

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.257-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.257-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd49d1b1391ce78f5f13e383d2ec99c450ed713692255c9841703a032df104c4
MD5 14ac0a7e4c05e7ea9153c3b6ad13ef0d
BLAKE2b-256 64d0f8e798126e95e0d6c16094b9a5442d6927736f5ac85c675c962d2da40585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee72c91ca0a6c58d43389c5f11b4b915d5ea7e767cf0bd0dbbbb23df30be582b
MD5 e605eed3b8193744be5fbf44827f9f83
BLAKE2b-256 cb558c91f255aab1a82975b757518eef89ef313187b6e84cdadce69a6271ff1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 722eaa07e5827aeee5519cbf65a216e88fcc9ce3e42f4f40ecc063a42cf51eaf
MD5 1ee8cc2b1a59a91afbd386120b410ec5
BLAKE2b-256 541d01c45a23daf30c058178ace6bb0d1b2369ef16138913af0553c44f250acf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1580f508bd229158882fdf0d70a717c2ac5b2f4e84892147febe2d00dcc6f7ce
MD5 6318b46744d70a790b570475a0425d4d
BLAKE2b-256 d26163e71d248e629c6aea4b02e1b11e81063751422712a86e75f1873ddc4568

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.257-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.257-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0149505ea48e2b35b11c0a3ee731259984f114f05ae19454ca0a0189e1688483
MD5 a6589af072b568c80e180e874f062ccc
BLAKE2b-256 f86e75114c3dfd027c8413799c72690077c9f05a289e694e58d14a034180df92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66de949c828c63ccc43e0b5951c1ecdea6edec598bd70e1e01b98bae4ee0725c
MD5 9fa10be8ca6d2a0dbc0872c6cfbff75f
BLAKE2b-256 c38ddcc0d2623b35d9c28815662bd0da7d6f4b83c9e4533b86a790cf4d0b91be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e182babd934b0c87c11aa4ba0424398be7bb4df19799aa69fc16c5a7d66aedb6
MD5 1e383f92e8b331905edbb4879726c0d6
BLAKE2b-256 cc0ead33c90bda7138127fad42af0a3a45c5fb0219a56b2f12f82a2e46ca709b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 16398bd9c12685521ab2cb49b409444ee154b7458476918d9a5d1e1ffeb0df52
MD5 6d24f3ae9a38165f72718ced95451645
BLAKE2b-256 fca6f4b88da36c111abf117276b79b006f6c3690a0dced8a2f5d20868694ae8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.257-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.257-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46522e4a1b58da9a6573774b336205d7714791e2856b34db583f7292fb7ac2c9
MD5 fe217ff4506074559bff5ece47c3e017
BLAKE2b-256 c76fe07433ebbad579e318351b39f9380e9df8f05df084872133f17347885123

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdecf091c02b056007c2a85798f0bda6d7163f36ab8beb0087f4b1c86faced3e
MD5 8da185676c237af527fdb00842c6773d
BLAKE2b-256 8bba7f48d880a915ac79c920ad0d094e28b93514fd3c4e58b2583dccfa7b445b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ff38d8fdd5ad3f2a967cb5f0141abb892cf71f2a59a7729dc17807e6561220f4
MD5 158a305bb753b53c96240c74261e6b10
BLAKE2b-256 f249b744e571980b8c63d7654cd9b84a2a71231e036c4a9f1480eb659d710df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7e90977e153c1d1fe5bead98d37f94cca9493df00cb73aeb5e50511985f5e6b7
MD5 9f851edf0d354dff1acaad3d8d5b393c
BLAKE2b-256 70bba49f10421134b0e3bb2ac4d87c7d255d22fbdcb8399f0c2acddd4f506c5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.257-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.257-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ecc5588e970016edb5ff1c8adabe8a02791dd62b044353aeeed19fefee57a54
MD5 6026cf99c4242ddab4f3348791685bb1
BLAKE2b-256 ebc5ec61d31cef088b40d077597c5584948e500f78d4dbdc6d733c93dc5e5ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49495acfcceeaa15b546bd95c766344071769f57a8c0ad4e1f12d977740946cb
MD5 7828bb6fea54ea9af9a7fb5f4a8715a5
BLAKE2b-256 6862f52b35e67aaa20902e011319f78cc36ae3f4b981a2c3f9834a7b14affee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9b85eba34c3b7f4426dc2ea2da26188cc72ea4ab2ba8da41ef08345ea995df59
MD5 f528c36b8eef7027e1874972794b980a
BLAKE2b-256 983b8d34c5f6dd2fc26d404c9707f26645b4858ed6d0de19ca80b39031ec52d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.257-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.257-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8b0deb2e21c0d60d1dff99dc933631518ab3bd28db7b42587e30b18a0b00f35c
MD5 ad9f78d7ccf2814df18341303f1ded63
BLAKE2b-256 bd2089d7a0ab117814700554528dd83058e1511d21dfb642bf97743b6c987f56

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.257-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.257-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 778e4684e51c52781c2229aa9fd323bad91eeaed9dab43f92682f9b26b422a4c
MD5 c38e9a5647e37b39a6e15a6226d31878
BLAKE2b-256 21e5f0570fd437351a5a7ba0a87150ab13f6365f2f7ad4be67d4280f2a743b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.257-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a4e86ca170a37a72719da2ab10e18af564a02817f82b07f8c6e9096250ee3d5
MD5 0ffb02401caf7ec6f0d1fcc7a7dc4128
BLAKE2b-256 5e6aa107206a28e2a7521ff912d2dba29f38820b90f7d8bd352e3aa874676e7d

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