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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.128-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.128-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.128-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e55b01b73b07af3d4eb4d598dc777b7650077f979953b3f9ac79e84d94e45603
MD5 ef0e3914eaf907701c4332290df6aaf1
BLAKE2b-256 0e1ad226daf7426fb4ead74f59629b4d4b667c261278c3b9d7a6365b25ae745c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 92a629b3616c0a0865e0148e0dbb7b6a4aa4a824d8111b3b1e9ad851abdccabb
MD5 73cdb955463385d87577b93bf8ddf7d0
BLAKE2b-256 e7983b0887ec52ce3d187e6e18cfee7ccc7a4beec0ec489853cdff0d7e92ae85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.128-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.128-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a43ae09eea55139483a87fdedef075b9ec095019566db399ddc7f47f4364044b
MD5 03507571852102632dfc2aafa35eaa62
BLAKE2b-256 4e6758325e404187d2c19cf4ac8db3407fd3b4d6510ffa31fd2f15ed7b18a5d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9991711203934c7c231ad20033a51f7dee919cf764c2562d455101a06cf7dfaa
MD5 1a806c812af60dae59cc003b4f4630da
BLAKE2b-256 b5870a16d76158cbe4ee87c58f7eba3e1ebb5c4c2db566c7a8fce3d0156e5849

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b552f084bbb078b38a2fca133a005c860333c2d90c695164c7edbe33b9e90c9c
MD5 99df19c6b7ff1f1e10473ce95e28c073
BLAKE2b-256 80de5a00871210f608d58c9ebb362c3c427f3200fe15e2ce6234c6aef5b038b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9bdf3f3f4a8828b74297412dbb09cd3c39171782207e2f7464de5b88ef83afed
MD5 08c155b7d3ac1e809b88e1f46d61d987
BLAKE2b-256 87ab2d7db878b8518989cd177e9a337d1db0a268afcb03ac57aae8c9b9276b5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.128-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.128-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 566fbd9c255371f2fc3f9677447b1f7ed45295fe153f844eb2a832cf7d28b6bf
MD5 67d2df6fcc8249c47e51e2f34d883147
BLAKE2b-256 154dc2da6b6a8a87f7b281abe208f7b0373d3301082fa0b712b6c1e3813b67e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3898091ca1471be4277f95262d97e512c9791c09f78108bad65f81d9f34dc77a
MD5 6b111864c56b43b8f9f0636295a44aff
BLAKE2b-256 b0329771e973963a4001cbb5d969e264df3550ee38ea044936411ff11ec73dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1abf44d67ee0663ae2de7a1686423fcedef989f517bb11da16e0105ef1e4ec69
MD5 4b576e02ad97f9e85096009f7003e461
BLAKE2b-256 3cb88d56ba7e5664d3524b768788b01b80b315373fc20877b61b6a63d7d7d6b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a51f3d4aa68333c2fb198db7850a1a71b22e544261f56d6d7cea61b358a6745f
MD5 02a99f714ee9b859cb9ebcf31b1e4c17
BLAKE2b-256 0524314fa0d3818fa5356792ef5966db8a13495f8c0eb8ff910f50b1b90a2ad2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.128-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.128-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32bc3b105b5359fb001f93b9bf2a585f6c9805bbeb86cf5772c0459d635079b6
MD5 a6e1a5c5b44ed0eac8fe07312ef27851
BLAKE2b-256 1036a59332773f2f9ae3b25cdaa0fc62269b8d7dcf7b10df9d4085bd6ea5823f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 962600b0e48a0848b9d073f466f79db5ea856370e440f2e89f262ec3062f6853
MD5 ac5046cd6da946e8c72715817475548d
BLAKE2b-256 b5b550792075975a320785faca265d075ffb7fd83b925084ebf2c921cdac599a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7c50924863610b0014162b46d382054b4cd894e4d11f9188c60b017011c75f7e
MD5 9b5391732b7e6854ab4bd9ebca7a41bd
BLAKE2b-256 d91a93e04da81a436fe3ee88305758a04bedd47ecbe8ffd887314142ae225d5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8d85c178cd865d82db3f20ce36e134a6586fc039b3d1b064badfeaf37c0c8259
MD5 23ea8256c8d80425742a4d33419ea745
BLAKE2b-256 0af5fd0adfdb63f038b97304e47827f73344b419a9529026f97c42e1ddddc225

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.128-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.128-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4113fb8bb4f7b4953a9206d1a9edb9e492e76a30e0f4d27df379bb51b0751256
MD5 a20837358df28f640d62a9bc63937ab9
BLAKE2b-256 c6fb8e7156d7e1b8ec329e8a81f82583f879471fc5fdc7378d4f0bac895a9613

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7751bf969c5e1775996e44885c5983bd0cdf119e6e2ed6c5b89e82c51d4c3a85
MD5 ad26e5a4ad3292bf7baad8de6df1889f
BLAKE2b-256 0f9180de02bce0d85f0d366943c2cde040f5efd9ec52f17dd8c6705a31804c94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7a6a24a6ca3ca68bd27f38889e857033a57e12fdead4b7839b71b73366da7160
MD5 b8ea2738a3a672dcf52ed00500ee4ec9
BLAKE2b-256 7ced0453c638ba5ede8b6ed4fdafc29a7f75bc805d7330096db66eb7dfef042e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.128-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.128-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a02275d4d6a8c17c6441ef17c67a6208e02fb710a3f4fd41af794fbc89ea5aeb
MD5 aa15a44609b42d9ef5f485fc132f7413
BLAKE2b-256 55c0679ee86a5c0c4269d30fb7c5fe07f5bceb91f11a711135dd9780e4e1708c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.128-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.128-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51cf1976080e2c2e4b00ba38d36846e20399a1bd6e47a3d54d0fb72d0cbfd188
MD5 25acb3eb9c689794bb5fc63584607d1a
BLAKE2b-256 2f16e3eb21f61484e226fdb4f3bbeeebfef14b1bed3f8f78c06fa9a5dba81737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.128-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c459ed92d5765eca8b5c1b012487dfa42c64dc04834c44e4e1c060869a4213b
MD5 4c3601f5a77bacfad04ed40f3103e522
BLAKE2b-256 1e4a99b1a2474dcb38900ea51445b1ca83103213740b4d57f5d433b204aa934f

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