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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.424-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.424-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.424-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 85ed1f806503e92d777b78484a75975369ce8097b037225bc88b9f101fe58558
MD5 5853c6061e3cf0a4d00f662e9a9e5693
BLAKE2b-256 7d7537bd1d9530f91f59e8630b0122849da66de84051871ee939507f6b32e3d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8dae6ff7e4081a66dd6d34532dde46390c9e1ad556ae6f80e2e0f4d57d97d1f6
MD5 ed610723ea6248626372070725f2762e
BLAKE2b-256 d8be13aa7dff821438004e5680047b026da00e939cefc4bfc4ed789f24212650

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.424-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.424-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1820fc54dd05bbd0ca901b66fa1d0482e138974a29d51fc8f7542991504c9d5
MD5 97978a4ced23a646d6fc7a1e8c293c6e
BLAKE2b-256 fedb3560314393e57ceb85c49adce2da1dd681b81be71fda86fac9fb3c235164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55b226ff13a8b896965594edd856a6cd3b4173eaf29001671cd7b67fc7da5492
MD5 12acf3af85390700698f87114b3d0b31
BLAKE2b-256 ee3f2121da203cc06abaacb06390017e2ba50cdf367d741df56b2829024a5069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b51966647f369e04567091362e179f8917483b87ba5ec28d6766dd381c3fe12
MD5 96eda891ea6b7e9f02197ff3eea302b0
BLAKE2b-256 0270eac6132a950424f4d6446eac09edf0b4e4ba30bce599d94e8d460bcb5eca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 660aaeb90753c2c55a0b83df5945c8f81a5535b6b4ac8786c35a964214e10b68
MD5 691064b7d78738ccb9c88d609dc50689
BLAKE2b-256 154f1d751802f9f9fd1ed56aca284dc0f92997ff5d6e042b54d8be3c1e6f1aea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.424-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.424-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a79dddacd999961e987e832bb7ddff0114aa4f83b8cf6b5e68795782bb22166a
MD5 4a1c66dabe0f98c5ed413808a4c9eb95
BLAKE2b-256 7fba854eb2cbac4b2bff340bce9ccea98b4d0184cbf78a1574ffe337847b40d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81e0af059fc26e41925905e9bb96848c810d28e0d251d01d5b7af9f30ce81f9c
MD5 4efa0e2c7f25abc9875d821148077f72
BLAKE2b-256 9b41a7738b294ba42c68389324434671373e6143d8a36952350e94b1226195ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4f829d3d84419cb95bd484d4dd697860f3266d4f9a5c48260322eda33b7c8b2d
MD5 a4c8428e42c8b37ad4c1c8a861735a6b
BLAKE2b-256 ace4f734534fb5b8b135668415e248cbc27455cf056d1ae3aded8a7d0b24cc2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1cb987b469d960d28fd09cf034b7011473a3dbc6d30e512af8a67abbc06a0066
MD5 2a24502f98bc2687b5b67a22a56fe130
BLAKE2b-256 69fbc73a318cd669fa9db1b58963f40fc39009c22d8a8f4a798355682b961f87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.424-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.424-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4022f9fcae97394ec35c3466754a0c713bc782bd82441f55429dc0f19817008c
MD5 89439cd3f86a608c84dc22ac434266e8
BLAKE2b-256 7328273e152e6ef56c639a88a5d0445bdf850740d6b020276160be5ad480bd17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e98defec2ceabc8445dd5ba0891aba35555bcc3c1886192ca444b5758c565bf
MD5 500b2ea59ecc9c1b24f7c1b53db75ca0
BLAKE2b-256 2dd2c82a9c97728a45d6b18e0a46a61e2a4ac61d625d706cf9f5baa5ded833e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 14e1e48f0c4f9fe7efc6fa48f2b108506b14cdfc307a9e8daec949c8bb6feba5
MD5 761c747948db80fdbd0049fbba22685e
BLAKE2b-256 db8b966f430909ab41d277c96551371242afbd5abba070ce36d0e1aac7baa043

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d93bba719003768ec889a145343804979b157f5d16bc1c4849226b5e3495725
MD5 25d5c78e39dfacc3404491acc9c0c2f9
BLAKE2b-256 8f8cf654ee50b28ed04be33fd73bbbe4632f9877391520b828035255c3ba8416

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.424-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.424-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8395b8857d93c421c321630e083a157f2e76b2162bd4112aed380317d29d45d6
MD5 9bc9f1ab91d7b5b3c48dbe20505a0927
BLAKE2b-256 1d1c1085d35897d192591915411253699a88bc4967a0619a6825ffcd5fb8ef6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c99cccab4d0fe4f1ca5f5268378c8c60b092f7f73bcc30f06aea858e07cc1b6d
MD5 90246d40c09b90676173c6295c6b351a
BLAKE2b-256 1ac4a721f39f0ff6f4b5cc9132c0011f0584cca9e931c7f705386398419a401f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9d957e58a01953f4c04622f274cf990a0e0a92e4229d4bc169e01e94cbfd1710
MD5 e0637e09616fa65d75d384e500aaac30
BLAKE2b-256 fcddaa2cf05b91280e59d771c4d7908baa6e8ee4767274097cbb297555aaa01a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.424-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.424-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 16c593a7b3810a7023231270477e0ad84d539131ad9ae2a690b647cbec663f6e
MD5 5be6b1854fd0d293c389f8c5e88bae9d
BLAKE2b-256 36a5796b1e49e64c4946891678c9cd3b7ae660922bd00fbc4c84bba9384534e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.424-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.424-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14298f88d173f900cf34c95419437383882ecb02906b56bf0d6b461cb4cd7bbd
MD5 ab1ab5b380932f23ed71ce70c899d2e9
BLAKE2b-256 8bdd631a315a456356589b0fc8ca6e24e0fe650d8169f0cfecf5f0a52caa1ca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.424-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fa24fe2fc5ed51b77967bfda1c425336287aa593730ccad10908e612bf508b9
MD5 14b00035664e01b91e34beab047d2810
BLAKE2b-256 17504cce5d17d0dbd0340cd74d8ec4e0bb9fd9b3885093c760ed8625b1250b39

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