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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.441-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.441-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.441-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9fffbaec6156f502effbafe427b88da25875310cfa17e01136812676086b21c8
MD5 6fb3e6369e3e95675df4c528bf7f4bf8
BLAKE2b-256 48fe47c8d7e95e4925b456fe4c34b64499cdc85437e0d2a5c1b17c81e0ea4d59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 084a30edd31aa6ab19aeb44afbe906fe18cd635f662ec4e3bebc51a081879210
MD5 8070edcff15dc6ffeab288ff7ff9e62c
BLAKE2b-256 968cabea8d480d1f8bc1d53f080d86614900853c0000454b7eb9bf0b77fe9a76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.441-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.441-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab44a850626c6d4ccb3108fc65620ccc7105c982278a3bb4405e91bea01e15fd
MD5 f14ceddca85c10cb2ef3581b6c52b782
BLAKE2b-256 1b75863bc409bd674749d8cbb30992bfb9677cb8f2da2d8694a9ae500a5f28a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b187bd756de7a45890109f49a9d27e59aaf1545d778eac55d9ec469aff2bc0c6
MD5 79995bcbad5b2c1be9da2e493d412da5
BLAKE2b-256 168c7e1ecc3999e71beced6cda587b942a266af4bead9839961abbc671a34e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bdc378ca1aa1171cb5a313105ae7ee473561aa89225a582d312da1d91ef3e3f8
MD5 001d6d095c5c7da413de92bed8c33dd0
BLAKE2b-256 fd9031a1a7d0a6903efd79bc5df5131f640a01699e90a38e896ca7727ca23848

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fe594db0f3158c07d2b4c3e36bbe0c4b82f80b11eb27d3e0b1bf6fba252c274f
MD5 11b9f95f95e155445878007b9923de34
BLAKE2b-256 1ae45049e3a1a9ea336933167cc306ebed490d2b7c7b752198ec15b881d4ee59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.441-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.441-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e30aaba7cb2cc4c4bbdc6ad434eefbd3ed68650391610e966d7361c6c1998831
MD5 93f8372568cf21cd663116b2563046ec
BLAKE2b-256 4790e823361f39553cb1b66b9df19da9b5ea7f161103f090334d8f25c4778e05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c827cdabf0d0405470b62a4e3c1d1bf0a8b1237a0b61a5f13b179b6090ac09d
MD5 fd13f9220b7567027494889dae474596
BLAKE2b-256 ea206650e2e270276b558c9978564e1d290101d29ee4a523bc7ece2b6e3764f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 016507b92395f85d69cef0ff79163920b5b0b6cc3577044e4b0aa8d79368adbf
MD5 c32757a633df67c2fa65239f450e2b23
BLAKE2b-256 8432592a2650b591d92557c53c250babc0d3aea1e447b4348e9f23f872545891

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 650c982deba2aee251a1044b95e4c03a5cbd4d9f904e3eddd9b3d77c9eaab8f7
MD5 532f98785e02ed3c83e2b26179a369be
BLAKE2b-256 27202178f5da0ab7e6201e87070450ee75e9a02c6b13a060770127591dad2cd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.441-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.441-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84facc91e8c2ae1b66de7aabf9c6b66a57a68d58056487c9e2e7519ed99b306b
MD5 4efef48bf6c7b5402fc46198bc2f7b5e
BLAKE2b-256 1640292a6f413a0d7be962fbee1d63e2bd7530586bdc69f39fc0746568ad4449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d145c121532c0f950410ea4141d38d1cb11a0e50717c4f7965f74578b5eebf96
MD5 cc74598a9662199eca4db17fa437d226
BLAKE2b-256 72074f88cd9128024df0d0d49a665c8fa98e98f4a4c2983692579234f44e058e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c85e0c066a5afb01d115ad25ec801f433fe4c4e5a594f7a59b7cfc4cb5a811a6
MD5 1b8accd2e273ec42f6151d40084e0c99
BLAKE2b-256 a1e9f577839c4c7295bef4b427b60f203cc005148ef95e2481c8cab1f27990d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1581b9d0ba275ebd61884c9c961556f0dc5f227a332820fb903361e4a73a2aa2
MD5 328f8e0c00f4eec2b7cb18c8b171d81e
BLAKE2b-256 358aeea58556935cd47321b76e817c393a7ba610776d7c9cae6aa6b7d863a687

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.441-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.441-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 264f6054d82133d0c7edb7b3033cf2ca1445b2352bc227aca2e21e34cd82a977
MD5 59235f578f5fb685bf8896b92bb1785e
BLAKE2b-256 5021a915b76f32550a648c3edc1aeabc4ec74b6754ed7e31b4d122c05eeb3f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e51f64b5ae3c429fcb675184dbccfc2453d558f378a83d9f15c0086a7b68df5c
MD5 7ed59536501e58162441392113ce2585
BLAKE2b-256 6d1844016257324dfc18d50164a65aefb65008272a923978793af3c3ffdce4de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3f07fa975417be9c4a61fb68d01a084e03f6be8e0b11c9f5643ff284e86c8671
MD5 83d3e7318652a4c731db62f9588752b9
BLAKE2b-256 402ce3b90c436c0b83e89a553ab19e0bc15cdfef501e55be01747422bce6b519

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.441-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.441-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a30372299069b5f41f3555ee3f3932ce956804e2968abdfad485771d754a1048
MD5 7d7cfc0e5b00f50c794d724fcd50a5d6
BLAKE2b-256 e3283806e403b48a8d134acd94dd081a46a563b830018139d50837818d517e24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.441-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.441-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff22a7282cac115490519b6224e5826ddd11c32cf2900431977d381a92c7a1cc
MD5 6defba29ea7a0c3c0e017c5ac5397bfb
BLAKE2b-256 6738c972327201187601c29cbdaca56e0779ba2acbd2432290dcb95cfdc06a91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.441-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43e391aa09c3e4c90d7912d9422b0f3c1696289b05aa39edf12527f053f3d519
MD5 82954ce79e838f9332427cedb384acf5
BLAKE2b-256 c3ddfafa211968a1f64a418ed5834ce848b2e7ea0f24ca344d10d3f586bb254f

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