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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.620-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.620-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.620-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d54fd2f8a360eb48d647e575137576e1e622507720312cc6cf4d17b0f86f4d14
MD5 a4249354650a3af84025184ec5d96976
BLAKE2b-256 23dd51934722655051c7d2f34d02edc2eea2cb79063a4e505055aa6769ac46bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2190318d6730428ca6b9a4c574f0751125ebc79421aca84dfa011336ddb5a21c
MD5 90be9dcdc24791f7695524d1d20430b8
BLAKE2b-256 3fa56fced22f5e59effc70990d889dfca5b89933b0ea453577010cffb6f0d47d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.620-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.620-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 777f801734361c92fb52ff37ab825cd26adc537d5c375de9b91ba3505986950c
MD5 f2dc1c2582c78541db50f09555e898ef
BLAKE2b-256 a219d6d1da48152eeff78e488221fb748ddd00e89cd0df6a5776ce5386ddd2cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a60bad6c5387951b405f5dee1b0366ed911e7ae2c76f995e27b86ee2606c37f7
MD5 f07f7792a0135150f7a304711baacf0f
BLAKE2b-256 fd2de6cb5e2714f35c2a0ae47d2b30cdc3c5aef8417d7fdf94f81ed48ec601c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20a77c364d1efb50ae65a84188885934572768f6269359d1a1ad94a1adef5288
MD5 7a2d82e59f4eebce73a3b7e67ae27290
BLAKE2b-256 db8a7cb7647421601cad66666d8c10609f7741e0ad961eb21764fa45a2e3ecd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 33ac0773e81d8b3dfcf5bdbf20981c18f81371bfa82aa2b187e05efd8a3606b6
MD5 a79bf07cb92cf6ff93c9651eff31bb08
BLAKE2b-256 8eb90b4279f256a3c5e70b4503efe74423cce7b3ba5b121ff14c97997c5b9365

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.620-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.620-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f162e33fa90cfc5f72f4afb881937c527ad59f3311e644280e9c9916f6b4042a
MD5 a83d03d259dbb6694a871164eb13d814
BLAKE2b-256 6a92b02bfa2a21e9da8e079e7e4791991909697c1aaa7bf189c4843960f7738c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a38033945d52c6588353c72d9abe6a739932ad224fe88c39d57e6bc68dfd091
MD5 293e2cc338c8cc639ad9dd2758a828a4
BLAKE2b-256 9ecb9ef16d602c4d66ae9a0356dd261370d6bb86a5e4b79fb8550aa07540ea96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 520d4b0d4894d89ff286f52c0119cd597458c07fed327ca5233b9f842b334067
MD5 d47926f60131dd4e7215ea7291e99296
BLAKE2b-256 69d3abc8719c132f361410eaeed757ea1c25aafe88eaaf5352788276b44ac7c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2f9f12aecca5abcb9542a43652d3caafbdc4b389751e51fb6e06a9774ab85f20
MD5 a04961e115d9c0aae8713dbe46191741
BLAKE2b-256 f2b1d56e740bd925fb816a604713d0270414beeb042d4a7418e7571b026d71ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.620-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.620-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b4e219c2e8049a955926cfe1829b2717707260b4af9c3f3228300916f09306e
MD5 08ac8c721b4234b3c9dd4a2d86119ef8
BLAKE2b-256 da8c64d8401b0d9942d2ba6d85dc333e4cfcf9324b04ac65c2e1eea5845e6e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf9f8b55cef1bee885d2cf0fd71aa1e98391b5a87da7360458e67e555c4f3af6
MD5 596de43e4835f6494eb6b164676cb721
BLAKE2b-256 4f52b3f966de9cf8be11e880c351182feaacf0d6ce4df26aceae051111cf2a3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cced315ed512ec28d36577cc5e02617b158998e7482214046d3ae77995d33e08
MD5 5865ee97fc7d88d85b162980a8bdc2e2
BLAKE2b-256 9f1f0439d2b0a8e8ec57f922934988e01497ef04ee7fdff216f5468f38deca75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 70069d84c6f25218bfd0c071647679ffc1e30484ade22ed42e9841a4984e0f2e
MD5 b448015771ce9486f0878549d6e06a1c
BLAKE2b-256 87872e13f19fba626ad9e9ffdbdfbe375fc8aff0472a6441836b78905f4efd1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.620-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.620-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 561ea2e1922b585c84e6e37ad86e6e49fcdc5950d07dceb26d968d3d6fb10118
MD5 a1e0b710cdefdb83444e9b86d2594e34
BLAKE2b-256 7a235b4c7244e9dde57f43a54f7630810aedbb966519004dafe1150ce3dd30c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c7b537074da5c70ff3d720c3f9d0267e5d7f2d7b534d9fe6011d7c2078fde80
MD5 2a8724903639cab660f1913ffa4d4143
BLAKE2b-256 b4a34c9fe7a766d7b6fdbf332d337ca0a363858936b2969c963154134afd5814

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3cf7361e59c7e668029fe453b2a9d6996d089cf8f7ae51d42c930f40d006c253
MD5 73807fdbac0f24ab0acfbdd7742dbf90
BLAKE2b-256 8606a319069c6b2cc5d8c65fbf76cee57aef28ef3dfd055d0c5a7ee820bafcfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.620-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.620-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a944a040d5fb914ef02c132e2f3bd7e24187ab8be485783e01cd6621294afb25
MD5 1876305832b3f9795e8b0d37d7dc71d2
BLAKE2b-256 c3c2d5726e967d8a035024f0f41d3bca815590623bb1c2c84af0241c87f22d7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.620-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.620-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5a5d2d1e252654b7c41bf78ef0ce9fb1abd6d5d95f76037ecdec0b6074328f1
MD5 4ee3de8652a83eff862d0eefa2c89956
BLAKE2b-256 fb00f8e0f145b7d474569d5ffd5d7edd1b9f802d47c5a6784aeb6f0c06fa34a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.620-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d21aa0b3bfe409fd06e55c29c389b25428eff97590112b8919980826f6b4acce
MD5 dd75906ff15100fe200860d00e157209
BLAKE2b-256 8dd0da22491c20f374a7c35d94b8b4cca0d65b53b4e454e45198e999ec3fa7f9

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