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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.650-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.650-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.650-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4408283cfc8aab47f331cf5129fa08ecdc87aab75fded7f31d83851709f7b955
MD5 a9c44859705b64fb70eebf5b8dcbfb7d
BLAKE2b-256 2d7a1d4111df8272b86715860f1dca122f785fbdf90726461d67e885c010d93e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 50e30b7ba21ea379f9de62470f0b9843a2cd4be9f55b0250dd0b61e4312bdb15
MD5 0fb1d8aaf27154ca00112ce4fa6b6bce
BLAKE2b-256 866cec37c17eb8f89ba0ace8c2e6c0b9245fcde0a790dde40181fa4523847533

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.650-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.650-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71944753a54957c794fa446618ec440fb358080befedf8004d36e4811cafecaf
MD5 8523124eae1320af565a81f593915bc6
BLAKE2b-256 e740bbbb85e3c902d6e961aa01459163789dab37b0b584753daabdce0c37417d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 319bc4f8bfd141a0056585251dcf305ba01b1ab972ba46d63974b7f409616acf
MD5 e1f03387ffb0340c9b8681a71844f01f
BLAKE2b-256 76ba8955e5b36275d27bfbcc27284163ca5c326e83ce6e5338bafa1f9b924374

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a54f4c48cc18ad20f8b8adcbd12c296b93ebd0fb7c45a4f5800179b1a79b4a3
MD5 51ff21ebfb53bccf14c6641e54adb013
BLAKE2b-256 ac86afc8de399003b65a0303b3dd211ed12f105411b37bf98151f1286792262f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a0dc64f49fa7cf52f7be40327cf3136ced72c33b38025d3ac5029a907e8eade5
MD5 1392d5ee9b5763a849b04309c61855f7
BLAKE2b-256 1682a9fb47a8471859b791ab77725912ea9161411cc32d2a0befcf4eb36c620f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.650-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.650-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 777a6b64567bcc82447c54a28c3868402d737158fd43441ab547d466b14bea65
MD5 283ff70fb4bdc18224a258577c6ade22
BLAKE2b-256 141135e7e4b7a8afbf3db09b1f0dbd2be9e2acccd586176bd4e7960bb485747e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7cf9c5818edcf70d8e4afb7c45730725da564b7fcdf6eeeaf475ff2ff92e3e7
MD5 cfddb1bf0cebcde93da3624107db5839
BLAKE2b-256 0f9cd1003e5e6c6bd90e88603a0bcc94a4749995fec35c86fc062d0e265142c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9e3c2b4547deeb0f12554d79449df1212c96a391d681a7e290f34ab120c3b735
MD5 9621f330c00dfbcce1665920ae44a166
BLAKE2b-256 2e2f2a9e7306224282bfed1efd89ac6c8f9ea63da1144a5f635478da3209ba41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 256d1609f97ca17e2a44446fa110050281e5b63316022241d2dbac34edd3f56d
MD5 ec02fbb7077fe82723de0137193e7a3e
BLAKE2b-256 531a5a55690f639786d7dd250f1a5f9a110f244e189733883dd2dbe3377f03a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.650-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.650-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f74cdaf0f67e8cd707c4ef2ff6817d18edfca54409f35f16c99c1b3c3c030fa
MD5 09f86c8a6093193ad2d3b8a09caa09cf
BLAKE2b-256 66c165bc0d34f2720b0fb27b8678cc4739b3c73b32c5d2b9bfa87792ddcf6925

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9d35dbffc365c834e9130e72e9f78dfed6d7a107feb72ee7ffbc8c8503efb5f
MD5 8b3732c6f796f3be52896cf246610b6e
BLAKE2b-256 80d82a0fe77b7bf20b917162635a692daaefe6ce3126ffc25248486f9a0a9206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 82154670c8cd5b0b4c1c1e1398ce39a854faf7c4f477d1c677bc4626ba14af2f
MD5 69b6f7de22240d631355d21a602f3ec9
BLAKE2b-256 b0d167045ffc2c48a53196817c08dcee6938ec0a2eb32e65218e66877379b37e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5f4bc0810ec869a95be4352bdbd11b094abf6179558be1c324d7dcc181952be0
MD5 3212e06d52e5b5b178068edd13e5e938
BLAKE2b-256 25436abf61e6f93b29303dc28c515b985261df82ce5288b81ebd4f873f15de31

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.650-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.650-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a64195747f28faec805fab09de8571900804aa8c54bcdbd28e4e59fa616e46f9
MD5 3f60c3dddb6b83284e0c4391c1add0a7
BLAKE2b-256 bbf04c8227573d14fd302f9f0c9aa525dc47fec9304bbfb3df727831ecd0830e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f1e055d7e8887f08967d453b5ab6e2e2aec0ab3b13516750ed4484d38a6b246
MD5 0d7ded45ef840a23a7dd61b2eb134293
BLAKE2b-256 059392e20a6fd6bfdd27ff2e8d444fb280b742fac488ee4d989405bdb1a2b9eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e5177fb41bf1ec3f64d0a0b0cf90cc43d10c948ed509a9b5493258f4c525f775
MD5 73e0e8f035d5442ede3faa9fd9d508fa
BLAKE2b-256 6058c607c236b0e29a705fb281ed7755157da4cefcbce1e45c3a73e5840b0464

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.650-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.650-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0f27b21a3d8d3e77f86cc80cc4a9f44864d37488888fad5d76d7b5c0174d9905
MD5 73eedbc401498b5de902760f49deaa8b
BLAKE2b-256 de5c34e3f73f70c21c99738f74d167822b246a5396bd1877f3691af20a9109b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.650-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.650-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c3fac0937c045165fa5ff9c7939a7859bd1ec244561b8228288e6f99a60692a
MD5 2abd6c971f973e5b7e71ab23c0387875
BLAKE2b-256 9429fd7206a80dc2e603fb53917dd63e4b5cbf41bd11d12ca3f31ac648ba7167

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.650-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab32528fed009340c4f6bc4d407c6d68b92378a664d99ea4c40a1b08635a9bed
MD5 64e5515fb15a14fb043787d3345aca75
BLAKE2b-256 631cde182df85b8f1ab25442002e2e8fd836358634a4bc8c100fe776c1b9f681

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