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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.22-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.22-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.22-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.22-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.22-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abf1b290200e338510e34262c702c6568a926d077d6ebf9b3185d4088931944d
MD5 03ea47deb2b7722e69b3b3731dca82ac
BLAKE2b-256 882cda300c7a842901817aeec231959f7e8f8a0cba9f6906767ec6c0d2b38a26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4ba6d74b597ad68c75caed6d49c86e2ae823f57600ac0fd9ae7d488ce9acd350
MD5 4728551ba3f1b625a7de678b5c91292c
BLAKE2b-256 bdeeebf1827ffba717cb7c83e74ba77f9dee9d8716d63fff5c8f3995ba1b34a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.22-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.22-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cce78757648ab2e2bd86cbca7137249005da0b07cf7b5a8e2a85ce1dae5d85ec
MD5 2ced52ef9805cbda8ddfc384ec8a2d78
BLAKE2b-256 56be1bd9ff3158820343cbc7a0c92f2f6d1355e276626ca03a46fa6975a751cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75e0ba3dd98cc809f2aa84844a21850e07c23c5a045d6587f3373db958c2fa77
MD5 7088c2daeeb4ec15616f5512638fe0ae
BLAKE2b-256 1f587fd0914f8b6f5e6c93a6e7d8fb109f4ccc506469972787f0212d9a04f39f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e7f32a1cc6442fb0d2e88e0e09e03fad4a7ddb3c855b9ac778f1cf5e7fc7aa04
MD5 5aa0e2134ac3e297ef75337b9e9a8f09
BLAKE2b-256 7eee990ae5d7b979c305dd030d83936a09f018b919c5831f0896277c588467f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 75fc5f2bf2d79864362a3c06e3f88781d66c619cb736013a793a5a37624674fe
MD5 c950ca02b01fc5c8878b435bb6bddee4
BLAKE2b-256 6a470982b9738c330bc8c5ed78123c2d921fe105c6b60952607df093c0f5286e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.22-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.22-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14c1e852db6e45818a21f21655821ad4015fb66ed783a229677e27cd8730bd27
MD5 8ca8b5b0bed0268f5b085de985281569
BLAKE2b-256 05e3809c591631ce9a7d0f52adb1ffa39437c718804787a17039e5ce26df8079

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.22-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 339d1a38b56d3f8355b392ef5674241b15ef1af5c7872fa465a534870bbd3b43
MD5 597eaa44cf5be4dad6e83087e398516a
BLAKE2b-256 28687e546104bb8e07c96e22e79e2e44e3d897d94f3193552575905ceb26cfa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0cecd0294ebdb1c0ab60de6fecc8b5a00f5a8ec14d77b8cdf854753c338394eb
MD5 be543cc2ce842b1afdaa29ccfa41b60f
BLAKE2b-256 45da6d7a665001f34b1a0dc69732982edb625124206ccbefd449d237d98bef3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9380579063bc0c9d1ed0e58f5b7c0f7685ee3561112629c497e3d8c4f5a3a81e
MD5 fc3a367963b416c45c147789d9097737
BLAKE2b-256 2490b070fb39fae6a6f5c5755b78f0bb74644d1027fcf2c418f478b6abe8011f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.22-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.22-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90012e421047180cf2a4fb550a3f7f9164441594c930b1040f2bb3751b17700b
MD5 5310754efbaaade5d668678668dca7da
BLAKE2b-256 8a7c86991c332d4de0e3d0799574bf140fe299c6e67376e251d1414a5f573963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.22-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74d672d4f74b4b6379ce2e9c3099f884d29a94a8b244faaa2ed3e9893b8af00e
MD5 24c60e74b2fdb17f032d7ec54c95fffa
BLAKE2b-256 f5b65745c7805b9cd02b315bd5b6a6b808f4d882314914bd8ac3a6248a55ee17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9c5183ee3a94c731bb7da7979e2a359784c4243307b4460018d39966374d58a3
MD5 5cd3874ad10aba9847dc93ff9c00a412
BLAKE2b-256 36aefa7b66b53edfcdf0f6675957804a51b6dc8266922de8d66ce605a076ec94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8e76d4a2263d5e0e5eebb54f6cc1b443ac069138efcb906ec4d998cf618e678e
MD5 df5b9f82dfcae2d6de1b7efbd15be663
BLAKE2b-256 db83705ecae8587a8d70a3a3fa66f513137c55638a824dbad3fd3f7563e2cf7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.22-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.22-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43e8552730b60fd0a6b8613ef0df6cbd3eb61a3f85650ad9a876c05bc924e212
MD5 d0573dc4aaf3cee01fdf1aa7afa45d6c
BLAKE2b-256 3c96f69719047dcc6817233f5cc321b25199b26b2c2e0694e0e5ca21219b5148

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.22-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0103486adbe33cd9650e370f7ee3d9d843e527918e0af7bb9ff7c35d973e8252
MD5 243206b9494d2905726da266e8abe04e
BLAKE2b-256 ebab2ddef1e66d904a2149f94c5c9e068758a506ce5870a4a09b6cd5c259b806

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6c8c55d1f5a571111e2acb8c7d46d9034cec21a25e435b222bc91bed3c34832b
MD5 e73ca00a41097ed3ec10f212b6f0601b
BLAKE2b-256 8645e4113560361debb9028314a330dee35d13ddf76aa17895df1736dbeedaab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.22-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.22-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b207f4521003beee3c0ba45360fca141e814e88e16cb9f2e5b22c698266901f4
MD5 d461a0f322f8988c08649a66a442f155
BLAKE2b-256 3c0e2f5ce5f1266bdf51d72d110b35c0f719327ed19f9144fe93485aafa49f51

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.22-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.22-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5677cece0fb78872ae14eff94b1b61f5f525e660dcba7af3465bed51bff6bcb8
MD5 2543aafd11776c507863c1f9c0d41b56
BLAKE2b-256 636dd7731653e58c2f6dc9a85143e0dcd1d03a57785a01db7065de60381647b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.22-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3247dcf1b17d5808e7b140ccb32976c77c93dc20294402e84956411a591c794
MD5 77b518eff118b84c2f82d58078f91d71
BLAKE2b-256 147b9b8b1e2d1d677e67f0c0b4949db397dd3b2411d92e03318f6ff3156f1b6a

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