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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.25-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.25-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

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

simple_equ-1.2.25-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.25-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.25-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.25-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

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

simple_equ-1.2.25-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.25-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.25-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.25-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

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

simple_equ-1.2.25-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.25-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.25-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.25-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

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

simple_equ-1.2.25-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.25-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.25-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.25-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

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

simple_equ-1.2.25-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6866ab503a039f0f59eb40632c8a8caa8a03930322bf0bb2ed04341b17d0874d
MD5 7d371b81eac84287f54c5f7ecfb18ceb
BLAKE2b-256 8dbd40bf1af8475569d82a7770077784c4ffbf9f4fb741bc25fb8caa9ec985d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f9f8591e5a80fa9e1cf2cffe9ee18a50cf42c2d8f54d912aa515ae30d90ae7f4
MD5 f18241ca824ba415caa5c844fe5c5c77
BLAKE2b-256 7a54d966eb88a06045a3b2072fd086d078e4a12208db8de61c2560e8b06ccd26

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.25-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.2.25-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8a492b1a461aa04167804753c61d12ae55fdc14fe40d1d57190386c9ca5c447
MD5 819aaa434b213db650040ca0404daec6
BLAKE2b-256 76388f0227449067a435324c9d176d4f156a567c8f2e0905c5e1799baba1bddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 765c034d26bb042e969df0ed1cd6211e2bae02b252a589df36c133afea9d5302
MD5 051fc5e1909b23346ee559feb7152830
BLAKE2b-256 de4993490f139d53fd3fabcaa1f82d613a832b8b5151bdffd737da6b4e869ba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 abe05f59f0cc7fae1326dad32be92830e1b02f09724333e84ca858b45ee5a675
MD5 0bd93c90224bdef60d425ac829cebd0a
BLAKE2b-256 f696bbaed86298c57e062e626092362286201c9dee384866f880d9a19c863b22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 07dfc5a45a55fa61b1cf365d3c30260100af095d569397d489a4061221eb381b
MD5 4469ee231b9be91ba03b17d2ca978808
BLAKE2b-256 663b01ace4c96779cf7d3de3a6f555770e2de12c56dcd4f1955c423927039be2

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.25-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.2.25-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3aa03860f6da57d5d9fe7ab12bb78bca50ba8c31aa781654e18324d67f5089d
MD5 1896aab6211b34b831e31b553e79cd24
BLAKE2b-256 60e72639f6e822341f175cbb5afaf2b557d399f66736a1070e67355b4f7cc5b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab7407899228652901f0ce6964ed023cecdd768bba7b2192c11883079bf5d1d2
MD5 822a2ee39b608d118142858fb995c85f
BLAKE2b-256 eba937e1e7061a709a0f9fe52ef0ac4e760884ff4df53ec06c71a0bc981155db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ddf4958c74dc2bfe020edb2f6a2b2d0cf87b0d3f8dd4f0997303292e6f4b40ad
MD5 d6d78854ca514f46333a8c70381711cb
BLAKE2b-256 81ad86ceb6f0d449a8f86869093b038209209ecc36c27fb4d7665e5d59db5c27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0178b55d5eb74ad2b1bffdb5bc231bd6cac4e54d2678ec10f5030f9b32d0e99a
MD5 93d0bee83da9142ae303e8c55482898e
BLAKE2b-256 7e4284a091509b6eac43f1630ab1e5961412b2c153c1dc7b5bd97f2de6e16664

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.25-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.2.25-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9887ce6994cbadc9fd4987f0ec506c031995495bbec2126e20e12b7377d05e1c
MD5 d457192288b6645f44c7575872c0ba95
BLAKE2b-256 ad0f5c6fc225b97c4f3a08f3888ba7dbb8b7de1b970dda3ea3e24584961ca228

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fa1b959cb82cd0a2ade4d3867f2e91dcfd3ad74adafd131dd2c81ad872662ff
MD5 6f6a3486c1e5fcecc4446edf31795081
BLAKE2b-256 49273b8d2350e420dac5165c6fe0b15a39b276de63f068499d1923eb7ac8bc08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.25-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 20c0d7e854fb5a0145312f5b94cd49295afce381b44f8ce318c7b49293b47ffe
MD5 9403bca763264b4b8223434d4da0177f
BLAKE2b-256 daca44177b15428d64840ea038120286d659a3547a8b70fe4ea71852697c254c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.25-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 eedc8e2ded5e5bcf500fcc8a50d1108a0907e4ef11ad8ca3899da6f921784212
MD5 939fcbab7bde74d283764f9246afa36f
BLAKE2b-256 e35df67cebf247c8657863447b724cfecbdece30acac23729fe1211d59006f47

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.25-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.2.25-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8e1981fe05ce3c81f0ad718d564e44be33431e1508a96dba617247449dab56b
MD5 9566f4cd51257691d5f08cbda47f72d0
BLAKE2b-256 4d53c7a9b7613e137cd078abcef8a476830ace75a14f1fcf11416526e9432524

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.25-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b54b9e6eaf951c9a12a97b46d9f863273f5159ec87e4d00af28af579a2e12f71
MD5 8cde6a2dceecdb5cbb75a4941ceb257d
BLAKE2b-256 ab79ba1aaab21d09f10529a78aab6ed1419b2303f03f540ea6f44124f8ce5c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.25-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3c89102af052db0380250dc247614d72d5d1302ca566ccee3a7de1172c641f39
MD5 371705db3ea42fc993094fc5b611eec3
BLAKE2b-256 41d8129ec3bb91b1e3827aaba6dd76702e112c1bce694704b6204de8272ac00f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.25-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.25-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2d48e38d8ae3ba5899d6a2be30e5c6f35bbfc6ebee593f7a0ffe758f1af9e6f
MD5 ddd51b424c865648eddc77cbb3777f1a
BLAKE2b-256 7e01717de57a2c00e29cc7be6a9466c44cd740d62bf07267edd4441d0f181dbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.25-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.2.25-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5572c9a1738f38e6aac5a9522193d8f1ed0473c44608ba84737c8754bb6dec90
MD5 e4c6053be2e4e16894c9b203acd03db9
BLAKE2b-256 17f274b2b61d826ef08739808f60e8874e309d5dad3b046fbd54b04764beb608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.25-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26b0d2be5e02d1b3738787eb81eaa978adaac741480068a6a08aee790ebbfe41
MD5 b9f1daf97ed0ca5194010cc6f196812c
BLAKE2b-256 8e28100c687418b89ebb318d16b6116aba8827abb28673935c8e8aba015ab07b

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