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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.463-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.463-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.463-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92baf05d963f623c59524c09234923cb85f59266ff81653577613b05d0956c61
MD5 b8537e1d8716a02e85b29dda4994a542
BLAKE2b-256 1d56e3b93cbf6b8830c4387320a36b4c50ccd4700679e7514c18d2904eecef2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eb85bd20ba1e5a8b3fba5e1d51b9456d326d0b1ce3773e5c3791980d7021c497
MD5 7af61d68513f5540ffb50409b5059306
BLAKE2b-256 c09f24e8e93243f43f79e20eaeddea3697be7fbf818d888513a37ed248f86da7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.463-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.463-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23995ba659f3c9806bd4172717f610ffff3addbaa7e36ee0555d888fd00a8b97
MD5 1d2b686e7906118cabd7d05f5599fc54
BLAKE2b-256 d42dc85c2a3fc0f61fc6e85fbbf91b6c610c21a355b739a10c99be27bcbf60ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b0cc554b1cf4b87d1c982d697632aee135a9b2e892223b0649cb2b8a1ecd57d
MD5 76a3ededa81671291dcc8a63a930c85e
BLAKE2b-256 d10509d257ef4ee8cdba093f2fdfd7f6e542fc55f870b418be1eef5b584feac9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e28f4af46cfaaf60f96f0a2654310c113812f1bbbc30e2a97652532037dedf7
MD5 6453d95cf9fc0af6df18fc3eab2620e9
BLAKE2b-256 ead43a66d442417de8ae6ec7754a43c3b9ba68876c0e0cfa83cec2c50a78efb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c81bf90a721a9af7c4fbe92751c69528e17595c33037afa3342c561901000db1
MD5 8a28eb6916470afab6ab8eae1b634f71
BLAKE2b-256 1a6064d7e3443fcf83fdf1d49b552d49421804052a8ab6cbca2796feda5f9df6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.463-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.463-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b0044d471f1b1634ecc2916d616e5ec44cf150b4e3b8ae49c826cdd82685e23
MD5 856c6a98d27522aca6d52e8de4f17c59
BLAKE2b-256 4b3208ca270d1875ec6189f5289ca5498ee3811bcb12222e90ae07b6ae46e964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 539a04304e6694ef55b1a08385ba2fa055fefccf03bf507db39a92dfa4c40f09
MD5 3e04088357c7d4f849db84d8410a5e7b
BLAKE2b-256 579ff264d3a351e938f0b7c918789f597257cb6b6e837213970891151761ea76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8f3b303a4a580e140c43a81d064e88fdcfd925c9d30bf0e3ec69e9ab8e14219c
MD5 9a54a16faaa625772d962ef94178b112
BLAKE2b-256 deaa41b86a5d7e5349100ce103954753ecd620cbfc761259e2434cd1cccec3db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7973e4420bd08e253c5653457b97fecc067266ed3a44aff67a613c598fb3559d
MD5 bb92bb6eecb0bdcd26d05d56b4491d93
BLAKE2b-256 84d82799356409ff69428c9606afe0474d1cfeac8479182c7fd3d804706c9708

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.463-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.463-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89e3efbc4e254e7d34e96f034b60daa40145bc7b8de090690513fafa39b6edf8
MD5 08a96f89d4cfa227faac33d365a6e076
BLAKE2b-256 b6e4efed02253cad6c6c9eb18887f5e60749e7873adfb3236c54b3c14c50e533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38bb1598868a9e57c3a8fe584383ed8f995cdcf529cf5c2689f96b54805fa4e3
MD5 4e74da9573cab81367e2cb00477531d9
BLAKE2b-256 5e2a247b7c49fa47e098c10817935ec4f0f99b0c7b002719736dcb2830f8996f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 37a8c6dc91909133a55c19e520516ca34d5f73821dc11b5739db38a189c7363e
MD5 b5a014b99858c7b4a10afe872b2d8a99
BLAKE2b-256 4b2e66b2317f2e3e96859a994007d898a67871466e00565269694ea532b3fdb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 61fee2221ea0166e63614b36ae736a225cdc6bd42b5a929b709956f96753a8d5
MD5 cae77712aebdbb811238478f56b1eb7b
BLAKE2b-256 be3b113c9b8269e4cba1ff7e09e60f161b823af2d938c3533669fc40718948e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.463-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.463-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3631d0b8bb7629470e78b1c164c02996913aece5fefb2221f07284f1bd5c1ce6
MD5 59e5f1d14b5eaaeb690775eb810e72ff
BLAKE2b-256 001b441b998c5acf4c8d46a625a6936c5842e69006d345e5d6f734c5ce3238ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a633bb109765ea2026a24b72a9f871a80d8bd64a29f4fd6fd2c2c96e482deb1
MD5 72c3c521a054fb358b2e3d85ac766b9a
BLAKE2b-256 124bfa48bcafc6e4ab701bd0db83b405165a031f93d6d07e1dbb32b7d8acc5b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4392f1b2426f98f90004eb7825c9147e289078908900b9c04afbb9fa5152c60e
MD5 33f2cf00f31255f156c45fdf9df486da
BLAKE2b-256 71cc3f9cc6601177794786267aa354bf8a67bad0efa48a9b7d4e86a21f6b12a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.463-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.463-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1c47a4292d856121f8c6a589cae44ed792ade3a0f6a4f67fc7d035dc4dd87752
MD5 bc727e2fd5476ea34229d2dee4f08335
BLAKE2b-256 6018845deeb3b3bf87e0e5b1b564a59d5e18c40b83f8cb0fcac42bdc85c1c0c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.463-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.463-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af600ec1b8cdea9cff5b2ac56d6ad0b2c6a8a816373a18bd8647f3c29203a21f
MD5 79c70d7b91a6d7c95fa9c7289f28ce4b
BLAKE2b-256 4e58328ccf2b976926dc04cba3b7653aaf700decb6f1d20de55c2535857dfd43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.463-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df47b82ca05c8e82fe36f3ccca29b2572ba70d9b093c976e63c044c6b6dec165
MD5 b4d1f6b5845ed419f93e73d9eef9173d
BLAKE2b-256 70bdb1eb27556c2e0772aef5ae2755280ce2304693c5b83044b01f0dc4414d3a

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