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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.406-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.406-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.406-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abe0ec7d926c46be3f64ef6f4d1b818843c57f5f4323f52a07abd2f13faeb00d
MD5 9b89e99d5f02f14debd0879f826dbf02
BLAKE2b-256 a44ab03d89d90bec97e22913bbe61bbcdac35189a596ff4b206d8b5e760ddd77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8ff358ac33c4793df0924c72d61a9fcfe096606243feb0dc8883ca17fb6ec5f0
MD5 01118726c244487addea06f5b50e0ded
BLAKE2b-256 0756824f8f758100f371d3302bf933f733127d1e88182fcde1e839aeb9227f67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.406-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.406-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f30c60616e95f7287b2aecb70eb72148f621023f312be172b186a3ab88670e71
MD5 71ba5a2d3c15f03a01bcdeed871f729d
BLAKE2b-256 06942e15f7fc423798da89d200228c82622d09b8b3c957420c1a9650681c95d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67cf8d48e8e6572e7d3f1dd308184093f2a523e51420f36593aeffcf738e164c
MD5 4c9df9a0238eff0e63f2c71f12c46aba
BLAKE2b-256 26a9c9216b3c8e3898e1328a9b6f827bd2aa8ffca0ffbb3cb73d075ee90b2548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 10e27e05ca66f38fd4165e53c6eb06e36b1f504a812d452cceb535d670e96a56
MD5 4e41b2b0c775787ef34f4ed4b9382b1f
BLAKE2b-256 6233980ac4518b185787ff1a77b765dafc7d61db088b58e5ffcb297be973cc79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f9904516ff9cfa859ba6fff4f5ae53d0cb22945dade8daaa0de7ed0d284d3331
MD5 87c50d6c9f36bafb650b07d1694b2ea8
BLAKE2b-256 2875ef231becbc57fdb26b92b078a780fa8d3a8a56c4376f9233de1605fa4b44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.406-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.406-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b3ce942aa17e04070dbc51302dd61ae36963f19adfaae234aeb063c746806fb
MD5 23a70f46f23e21596621f3a415339aeb
BLAKE2b-256 56fa1e2a5edc6ca14c5082f3d851dd8541c89ffb6c9827fc062e217a43d730cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98a5959ce8c2662d74e2142acb0af4d418fb9112e42cbc99d98a0c9c7740b603
MD5 2b89b29e67832eb2baee49d7c75c5243
BLAKE2b-256 d774509bce1520d28d36394f21a0c458d84377b507c37ca2d291ae8bb83f1f1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fa7fe388db266fcd632481775f523a244b626b1c18e2212ba94b946475168106
MD5 c36ddbb854e6156856c6b3d9bd28ba68
BLAKE2b-256 29995a73db04ce5e868bd147f80c0ec01043ec02e32307d38d3d7c3504cb808a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 317602094206dee0d7ff7ab52af58018a90d7052d8699a21b866a765770487db
MD5 4b585c6b4f09b817a07d238f481e9580
BLAKE2b-256 64ba83e6a7af34e7bf00f767559ff4b03b55bd70066eeae1993f59ebbf25b7f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.406-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.406-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 983390e8d11e696f80855bc4096a51af3060b02d23005b854cb9bb7aa79b168a
MD5 d1bc252f9b035d36eaa67e8572c5af59
BLAKE2b-256 b5a319fbc61a8bbc9cfe962e86c04e18d8a1f6d5f0b038774fda6c187665d736

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c011f33daa5e1a82720514c508c5293e9414e1e5ac4821656ff4c002108a1f3
MD5 39235171e8f93cf96301ca613f1fc4f4
BLAKE2b-256 ede148597eaba347c44586145e3434e5cd83cde27944d353168899c90c547ae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9afadf4ea3978cc5a53611e89794677f9446378821961d8164d22fc36af308a7
MD5 00e8ee3c034d44ab0bac8cbac1db7f1d
BLAKE2b-256 1cf7adc3c99d37b50f0d6c85aedf69e15f1b40a365c24b3dfdec8006d14828ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f60c07b218251e355b34b3700743ccdadc9da739239f12e4d7d54d3ba0bf4e45
MD5 95f1904f433e22cc024daa06221094bd
BLAKE2b-256 9e546c9352b335117623ceb975a0622ee7437cabc1fa87fbe7d116d0e94629c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.406-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.406-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46b17e76dd179db49182cb71e422baf3075bfe3e9afd8e47010c086bfc2c097
MD5 b7f7ed0f48f698c822aec8c9b4688d68
BLAKE2b-256 641d0a342e6c20634eb13494e6debd327640dbac791696ec8e0004bed78da6fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30254270de42e6b4ca9f58e5e072473368c55164b7bc48228b013fa01412e581
MD5 35ddaf8a121e86667b7f5aa565033b48
BLAKE2b-256 d9bde4e22667de6f6c77390d9ede96d21ea873ed144054f68d054e189754b017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b8e8a9987f3ce62878f6d1bae81899d6f4bd767516d423fb2ae92d38d6ba04ac
MD5 3ad4f25bed7495613232a3280a0d9971
BLAKE2b-256 e4cb2371ba07c3f3d1c18e10a5aef511842938557f302425f7fd892d98c98470

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.406-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.406-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1d834d684cd648d774f2da34c00bcb40a20e31a96a9123c3b02394b989d2afb2
MD5 f1d750602c8e13e9042f25a1703b36cb
BLAKE2b-256 59297246527d814b6b60009c683527ce6dfe4d59a48f7812f9afa4ec9a7735e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.406-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.406-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddea17d4dc33501e54c1986db8d4fd716c6417334bfecd444b5152a8a2db3ecd
MD5 3ec0586d5971f4ebb3e23efa6a416b01
BLAKE2b-256 62414ab7ec7209b9097983b651a0b02bb3cbcff87704c50acd05b34063288d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.406-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74e25093445b654ea1bb751480df7b00d978c078621f19b8430bdd2dab33f08c
MD5 fb369181f0f7cae5de2b3976061f8d92
BLAKE2b-256 d9ac6af12c0f6c6e715af74cb4acb3a0c24dfee6338e17072184140a4ab1d27a

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