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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.383-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.383-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.383-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f4884152dad4d66f63ecf686f6461001f35e0af62b65b393f7c96808e84279c9
MD5 bccb5710c06423fdb02f9173d0826e7d
BLAKE2b-256 6916984bae5f8d949d2c52f1a55340876631030a9c1a120c3da523dc700c8cf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b9297353346803951baf4c2334ffab99e06d639d588d90f7e840ca61369a37d9
MD5 471b86e33e3f815b077b106ea6aee6d7
BLAKE2b-256 ab001731bfbfb5a353cc5b0fa5a9702c0282b60400e331e28e69ab3d3aabbbbe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.383-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.383-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f38d5cd0caf1c91afb9abf0da459bd3a6ae5ecadcf2624c6c0f9867e37b4e4a1
MD5 45680743e166d3755bb2fd1040c55449
BLAKE2b-256 2f6f6caa4a5b46d41b6edfcd40ead66c6ce5b0933b291204c17cd9da5fe5ba12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93a486258c3503b2eb1e1171a78d784db4e96d58cbab5428830e8d6f511f6139
MD5 8546e88350be7f6b9b30b4c43555c3fe
BLAKE2b-256 d970a37b850d49de66907fca409c94913515962201e4ae117d26d7c74bffc82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe71d6381b556d72ace4d8859d02acd909470acedda649074e3f0fc2bdb63ecc
MD5 482e264db9f32a983245e661ea51c10e
BLAKE2b-256 b841f5586cf90d8421458e9bb9465454af7cfe699463113570530001e1a0eab4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2442d458a274ee31ffd48d74e764abc32714b39738a93ad499843c77a5b6bf44
MD5 ca9daa6da925d9100de93eb572773608
BLAKE2b-256 b3b1ecc86ca5dba57789ce3100dab9ac4d6c094c2667ad53c65463f8a15fa4bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.383-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.383-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e94453bb554905c1d7e59f1022379a37ca11497c8a05cb0e8f51877aaf8603f
MD5 c6db18d95752706dcff876f9bf1b6da2
BLAKE2b-256 b85763ce96af0ea40eab5bd6d3f1dd46cbe1413af34d3c916dafa8057e094902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adcc957f0c315278dd059967ef2f993811818d12844c6917a39d29827d8633f2
MD5 29bb7d8f869dc31f90e435bc3140e1d3
BLAKE2b-256 42a2392c53ee46e59d485d3edb873806b730f23a2102a93d04a3f63fda72643f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b38bf6db036061cbc26fd4c971b70c997a1882963ae79ec33e5c14d78f81a2da
MD5 b1abd795044ed2822777924b2416ad69
BLAKE2b-256 00e957369b61d36268827aab6209eddd968b71b50aa10cd16e9a58d855eb1402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7975322621f8d561ed769b263137b88074ae8a1b9301cbe1ac740c8a08fea3b0
MD5 21166e477ac5eeee8a32906e486fda81
BLAKE2b-256 029c72e937a88dc7ad8491a6239bad3605e4d5dcb927e42715d566a107326924

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.383-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.383-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ae3c47b3dbff7847b4c34bd67b7d43dcd3e62dff3215efcb9ca7714888cb68f
MD5 32eee9d73ea454110ed4052721c821ec
BLAKE2b-256 270bc4f97db09a0f8c46f3f2b5a72afb45339b1160b919138e685369e64d4ee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9bf8ef8780c549fb075911dc76f750abfec880ea024cb33de3a96be988d0d2b
MD5 a761bf28ad31ff2bdc59ec8a3b21fd21
BLAKE2b-256 28a864b109d43ad2079a72768a9e4f30687b78de0cb131a998065c8962e71335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 30b20c1805a14103a4747fcf95ad7abeb0eedafc41ab77e59f8712555556e8b5
MD5 a2607c7e9bcd55a9e17ce2874865241e
BLAKE2b-256 742cdd3fce1534ad421498c8669aa56fee4da0a513e2cf8dd365c71e3e23fcd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 695d79426b8b6211d9680448d07a9baed5d88a659991b2d6adf8b77b06ffb9d8
MD5 49a6ec081e9c658b29a261ec8b56f726
BLAKE2b-256 62729628128c5c88e81d7626c764045887238f7a53194fcc431e837e0686dba2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.383-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.383-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cf7f913038b55046c914aca6e49bc348dc1a0ef696144eab54692f3af93a414
MD5 fa4eb43174f0e95675e417e98b268633
BLAKE2b-256 075778adf2a28958c5b7f72d7c49701aa894bfdf65cb4d1ab1eb8aa1dfd4a54a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fb282bdf09551b6cbfd5f90608cfe823da26652a557d06598442dd4f7abaa3c
MD5 55041a181efe0b4147cd87cfc54e0eb8
BLAKE2b-256 4ad50ee557a1e8985c937cb8864d814f103dc11c3109ae1876facaecb5c6400c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5195972cd7b10c04a524a3c2e1e334496cdc41ab12666f29be225b858dff4646
MD5 aeec0f745847d905d6f59c19c02851a9
BLAKE2b-256 7538c6e0f1297d95e6aef3b27ce3c19bbb36dbf47782d30a0f12ffac5713d509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.383-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.383-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2991f55a58d3136fa014f4b7b9f671a2724ab2245cada23c9fb4d4e3299607ec
MD5 66bb6403b9bd1940597b41ba2f0c531a
BLAKE2b-256 1595ed3f6961191bfb45547b9ea82f25dc290053ca86d2ce03da225d3f8b6c73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.383-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.383-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f14b04c55152c73734401a7779fdfde01c6af3cc248915e54c073a39bce6a88
MD5 c5ccf06c44db75ffadd56b5c7d312cdf
BLAKE2b-256 0cfc604441e0ea1b25413d00d0650169fa51f5b79842e6f61c12b5080a6d137a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.383-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe7287040fd576945beae8722e6c3de683d3c2b9831e7dde8d552c3639e4250
MD5 c6f4116d018dae47431af43b7565ca86
BLAKE2b-256 c63f46fe88006c63bee9e1669051b997ecfa0899be1f155ba8deff6bf1704add

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