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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.498-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.498-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.498-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 039a75d2f5181b90538ebc04fdb8da439a133a2fd1ec7dd2d2e6cbb57ce2fe99
MD5 993974e141351008610a49d78dce1595
BLAKE2b-256 38e4c95b768ff2f9342b8494fe8b028568b4a59979f1d034a42f1bf2e8823dce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 28673ee6240b9c23cfacc5aba23eac24a4d98d092f2d08d1b83c9ceabd4e19b9
MD5 d3523356407a3d3a2f739a0b9df0abc4
BLAKE2b-256 bb2cf0b804c6d294061fb2e2ce0ca3ff3990fda02e0cf967235a800ff1b9c81b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.498-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.498-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3be5e937f13153a35f01f3f77fe0eed52b3d776ad87838780683a3a90b110d2
MD5 2ef12eafabe0e3e5626626e0b12450fb
BLAKE2b-256 fea387e940c74c5ff71f1af0c981f43ae230cff39a0ec2b143a570d4cb4d0960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee1100a6946dfce1b6bad87e51e01d221178854c06e0f1e3c9ceb3388b799162
MD5 df849fad0e078078fe68c112977dd3af
BLAKE2b-256 a06ed4d23b056a4279be8047106da934a7576bbe48db2967858d5c4effd270b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 01eeeb6d41fff443fc41685b8fb7c5d7437ade4c0456a28d618b47a23fe0c184
MD5 f04d3a1a97bee56b3572a84ae9885013
BLAKE2b-256 6fcd78d28d37bbddf1cc70e78717195f1a8b5813d9c1f68a5caa73de3d24d724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dbd473672f98fa7f50f3a918cfa01c053a4c409b3199955ae40b4c8786adac0c
MD5 df0ddd747ad534f701593c1cac562f78
BLAKE2b-256 07179762401db0d790be03fe95f7f068dcf4db91ad566b0a45ab175d4106ee2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.498-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.498-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6f637489ecf8b20f9f0fba02ff73a7824cb28a5ae0a8f8cf677e30ed956bbf0
MD5 a029aab644403ae70e952fa84ed5b159
BLAKE2b-256 36df4fbcd788c80226a4dbbb358ffea003a88b3645cdad5260d765e34dfefdbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a39b111c1bb56aad7ae2c8c9c6c2d6f30ebf14236dd17e19cb353b6708493ed
MD5 7795a2155e3b2cca7f74a67219c57fbc
BLAKE2b-256 a56163fe7d156ebd37a8eabba7b829ec72148303a915c2b3c0e0e57d67ae749a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f56209bbed65c298aed72e52d03d9c4bff73c48882df9927c98f5ab3d4c671ab
MD5 4cd5a349c66a887ef2eec1f9c28b60ba
BLAKE2b-256 99ffe9e9c3f2f288bc0a64b8f49a25ee2bfc05979aeac2a8df42ffeee624abbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9354d98d7f8a98486551facce10eb347c60bdeb5f73003a7947fb8cf99775c05
MD5 95b7ba60b9b913a1c4a5fe37e2d414f8
BLAKE2b-256 9635eeb6db1f9543b26eaaf33d55ffc226f91927e91952fef1079658d887c81e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.498-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.498-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a116780a337119aa7e701f8f8bde9ac1c1cec45b04dfa861c431e58a05c5813a
MD5 487d095b2fce31e9d588dc7cc6bd5f96
BLAKE2b-256 150d82b6c11fb101b5eb81f297018897752f0af1f35149356f29255971b25833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16c97ee0f90830f739e1f8f8cb2e9c9c1e93b05c2a9de5f5b3aec01e6b293132
MD5 e7a2cbdfc2d0fda16cdfd2a246a81ab5
BLAKE2b-256 3161f44ece42b6dd3c80f09e8f70ff0ff78c3762f41208da93f1104dd9e3cb33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 971263e71ddb72ea30616c00cc24d47673ebe4da7a4e7a25853889447270afb4
MD5 11ff46a921f206e8852b9c7724c0acf3
BLAKE2b-256 5fc2fd5409201febc12e1edaf3ea7480aa8b3a385c035c404330f3bea08f2876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ac10792f4f3098ea6bdb3ce00e4c2e7508e86bb4eb14437ce7cb1ed6a2774514
MD5 44a6f662bce650ec0edda92c84c6dcf9
BLAKE2b-256 01c085ebc17c78c3fb854c254ca8dfffdc475657dd6c2d2e0e49ab18daa37b76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.498-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.498-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 440523fe25634d46d5f79be56fd45a431aad168e5a40a2257a733b0b46237a52
MD5 7ab877f3883cca23faab9d2a8d22c117
BLAKE2b-256 7a46904de1d5aeefb8414ef9a890af656b456d52ddd29a1db7d669235560ce6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a713a64b2a079c9b8b0448e1a742a776a4a8d1f9acea05ac251259244251f7e
MD5 38ff057fda09cf44450e1bd7736e0c9d
BLAKE2b-256 1287a1bbf8453fb80cd8655f67a29a0d4dbdfbfda9f06c5fc48b4dd8552377f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e79c134529184c9b83f06f94b7b8c6389f4cdb6083e9e87bf21d7e8f79ca729a
MD5 a1463359ba4523aae077eeb8082f8fb6
BLAKE2b-256 79fd7d5a2d2a67d00f631200558877a8340e8ab614ef137e7e74274162543043

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.498-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.498-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e0360563b8eb428101ac6535d47cc460149993aeb2c22c433979e130e32b1347
MD5 7555b85520f03d5849344ce5174b458e
BLAKE2b-256 74e1bebc67f277ad78943d0ca22913b35611404daf8a4479bdbab7bd638ee68d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.498-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.498-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a5db3eb3099e442ad140ca1c63c69a629f09fa54bd847b13377e884ccfbd941
MD5 5b9db06d7c3e458f4cd5a4e4ee5b09c0
BLAKE2b-256 d79895d238e5d5b52739c5202ff2a2dd42f2755e0457c0ceec3d45a4bee1727f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.498-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7a08ade4d687f3d5da7483d5cac5eb89441e4d114b905172386e8090ab9fba0
MD5 01718c30fe6ae5880ab6ed095aef4ae8
BLAKE2b-256 9f11788233ca30766614e9e71db2543500c7b0b1a548f5b78600c070a92c7b00

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