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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.458-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.458-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.458-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed0f6c0f21dffbe62f6ff73f0d9d5db846539e4c7be3ed768b4cb917b8dbc716
MD5 be29826ce746e21c6395580758ade077
BLAKE2b-256 d5ead9a3d7d3023ea5db27ad06c1770957dbc7e5f4b0acc250462f07f0cc7976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 77f747f1e291d4cda5976142e808c4b6dcc5221b4f031362004165aac0ea7ab9
MD5 4e7b159b23786a83302ebb91a97e3de2
BLAKE2b-256 02769fba3003b5262c5804cbd5d3c72716617a036e3f473eaa33278f6fd86044

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.458-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.458-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fa5ac5ef7f9173bd04f465dffb724ce284c5be252ecff07eff5eba0d0746d8b
MD5 59fca62b24c265225b48c8d9df0f9d87
BLAKE2b-256 4caab44e705963c6d30d17ff6a174ef8fb4b752c59dcc928e449eb8723c3d306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 791a987a798cbf5f1ee475ddb42d069be1fda55e9116fbda2d78b68f802a03b3
MD5 2e7fdb343675a6476b0f40c69e389ce4
BLAKE2b-256 0ab3fc2c2ce73edb7903afac2d60b79251d2c48d4fab7ce90e60fa102ea315e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 78e63dc086cd682a34bcfd43d0fe3e4d25fca753f833459e8c04ad133a2e5111
MD5 d3c60ec5765223c4136d67851d8fc3ef
BLAKE2b-256 e8aa7915a2126b522a4cb353b9b1cee666f70632a7cba14ca74f50b2326c2f85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 933f5f7c8cf7941a87c1272f76ba07af1f4ab359691aacb33a49215b5b552f7e
MD5 e2a289bbd71a4f7da4eb9af217cf6ccf
BLAKE2b-256 6a8f452e6f1d1d23810519c06c9a323f2c79d8a9d33b172536859762ada31864

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.458-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.458-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0138cf5f78c58ba548d9c13905bedd5ce3caabb5dbaaf9e1ffb409fb07d26871
MD5 c86753f6db9b92b67a49a113c1fb5ae3
BLAKE2b-256 dfab1c9a51e130ab7010266ec6958a02344455d3499a25eec7671bb499348ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3698d15b3ada7dc0c6d175e1e12079471a9b7dca113bb103b57300fcce8c23ca
MD5 0a94e6d2a518840f76c6c64f2a7a4dc6
BLAKE2b-256 be0e0949cdc9c013dc606c606816f89b622bf5f79716888b1d5e3d200e7f2702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 72187345d9c3bc86dc3673519745d55b9b883f5e61e3a71ee8f6f58a83c0ae6d
MD5 0bb05df29fa9fbfadba03ae4fc6340c9
BLAKE2b-256 5b6f20651faf0a696b2825f190ad37e2923733e610ae01e2cc3ff6536f95d7e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 399e025ed47eb3adb4c8db2cccd951ba062eec1d03e31c087a90f3d9356fafda
MD5 702dce065bd71ec4f3e45750aa5a13ed
BLAKE2b-256 f9ed603a9e8b20f1e4b4328c5a969b9d198fdcabd3c887c96bc4922e2bff6655

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.458-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.458-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 109279cf2f29abcc3abd89bf3950e14f2e0e7c7291363a6916bb5950b81a9333
MD5 ff6609c833321fb84c560326e2f4eaab
BLAKE2b-256 981ebaa5d3b30dcd021ec2aeecb1ae5c3ef225fb79c587a587cc2baa0d4389eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84d47cb189dbf13e68dce95d0d2fece6242e1512805511be28efbeb26ee80757
MD5 66312acaaf87d2be2e6a544a6327e289
BLAKE2b-256 ab9dd488925049b6c1d26d07ef2ac9e0ec83aa5dd0f87c91178645174f279cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 61bcb1f96ca02653db2bf70092f9904ef1ea4c2dac0f8a9940fc5167467a3780
MD5 54b22335ade6f457f8b3c3b86b5d482f
BLAKE2b-256 cc6a05906296b173615850dccfc434f19e28422b12b7960d1539a9b570e30c05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4f7575669227504d0a78f15fa8572244c0847279899d7b25c8eaebddb0a69686
MD5 8e00ad70253c627b88a5dcf121ae1bc5
BLAKE2b-256 22370f21d56dd5fd8df63f82c7099f028b9a7f6cc443ee24160006612c8193de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.458-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.458-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1759bd4f94068fca28105badfd6d7700f1842ee02c470aa5e2cbea1d75f53c7a
MD5 4f9f9e226b27ddc51f56c3dbbd8099ef
BLAKE2b-256 f9827e6a5f56c43fd209901b51048ff8e5e741a13b4daf40d55afc135ac4af95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a35b690bdafb9ca4d6f374ce27cf951705611564b66e5cd2edfb4c32e277c1c5
MD5 65bb9633b75462ac987e52175ed119f2
BLAKE2b-256 04a19f88a36f221abd880effcddb848b3c740c66c58669529832fefa83f18531

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8cefabbcb592ed03ef992972204b320cfcb5193b8cba199af99fb464bbf0c28e
MD5 749d405b2cb4b6d4d28c8c46a1520544
BLAKE2b-256 48b6e75d8b8fa7625fb4adc275c6bf866f1c50546d19d5f7fb70ef0bf44ad005

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.458-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.458-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f7cf74529b25c682159ed8f82504ba3f3e914275b94287e95709d1e34dcbc31d
MD5 55064515cd30fe0300c7a663504ec30b
BLAKE2b-256 a4f074f784a3812b6a6ff6d147252889270b900cd4e6c4b02f0dd1618ba6b431

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.458-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.458-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54b9342ee58c79c10bd7ed3219e0ac4587c8fe26a784dc512c3f2f027237ae77
MD5 248ed9e0663628f09ae97f7a82a27870
BLAKE2b-256 6709c00891bf9ebe5d373e215eaf7ffa907d3227a7b8040ab2b292d3d1605a8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.458-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f94049ed871e80ff56e85e94572eb63f26900065e6a6a4d1a13cbdb324864ba5
MD5 da60f9992824e122f9cb9120ec6f3d5a
BLAKE2b-256 ff3d30ddaccacabcb48a18ff85943a098e0e0cb96eaca231424a3f8057331d14

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