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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.709-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.709-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.709-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.709-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2581d200e6b86d2eeb0b1ff5a653a00820a1e7fb7a77fb2ed7adfdb367f3e868
MD5 30959f63afdaedab8ae8fe4d3ddec1cb
BLAKE2b-256 425f8715c1152bf83a70de4c60323d56d9ee840db2039f524a73ee32921716e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8121ea214fcbdac969d27a17ea589bef7be7b79ed0804b8e7f41e665d18021b3
MD5 c438c917faf83732a98368053c57479a
BLAKE2b-256 61536974c0e1599ba4f2170194d1f25d88e422c203a1b4aaada32189d816bedf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.709-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.709-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 075765eeedb26d2b0aa9d530d229041927d046f822da34df86d685a7fbd665d3
MD5 102315aa3f4cc4796f845452d01f3077
BLAKE2b-256 9a886d58ac31c544d0e031125535b844109141a0fed4de802163a2e42116fc9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c4ae55414f9ff07325ee737f8e336f7a6a00cabc193e49b8ed7325978f40cbe
MD5 1935dfe7218c543dc0bbb1341127120a
BLAKE2b-256 da8b9cd384e78d92bf73af4c7ad8646fa5abff4073a5ab493e299abed658f331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9da01ee46da545a44aaee22338645cff2baefc6ec888fb4b938b02e1ab9d100d
MD5 a3cfc0207d4b842aebc11f42479544d8
BLAKE2b-256 0c438af03737ca955a183173fb2fbaaa3daa18085d359067916a15200a8b1c2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8fe857fa1b647710889e20d834fd91c4ac8f8c51297b588484fee7557e83c357
MD5 10b4e005a7886f170e4414848e73b8dc
BLAKE2b-256 4c95785c267736f417d1aeb14f755770960bf4110294e7644c5df8a773cc10c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.709-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.709-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f276def077dcbb88a3dea72003182b6825d897fbc7f467bf67d5ab3b12e30858
MD5 082b8375111d40ad4ebb9561d184d31d
BLAKE2b-256 68753a362271d74ab3ae7581e45b6f2c8564afb3059888d399c6d5904ac90aa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee1fdf1f42d7e78cca281f1063ce979e5496d89a39225815071d4099ffe49955
MD5 5b5c6f3620bceee4b18394b34e71a207
BLAKE2b-256 b3f915a2590f639d3df18fad93ae3ac4c67215221331d85302362cf3fefa7f35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 24367c91ed67bcbf53cd89b382391548539bef550e5414968c798adc202baa50
MD5 09a38a364a7d9ab3bd6601c45999128c
BLAKE2b-256 59ea1f0abeea23c1c3e97bd91890680b3616bce8366701ce01bbcdc1bfce15a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.709-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e8a98a18f04bdf7df2ee26fd551679d3b4c0d6d7e35ae6f710d2c7af5dd24164
MD5 a853fd4e48aa53c07bd72fbfd2c55e7d
BLAKE2b-256 40885483ce7b9bfb3c6e3c3ebdea725c2211a48cbc3f1e7095ac385335656b8e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.709-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.709-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9102a92e165986e77e9948c45ba1cfe28a1a652d5eea65f96466e9fcb42f2155
MD5 f73199b4cd2427ad215c4f21018684c6
BLAKE2b-256 10ee4da80204fe2c38595b1a4450c006926d9e3fd08b95c2d85c255a47875067

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05ef89ed061d2dfa3f1e0eba296d7c175e94ab1aac9d9eaf3e90512041796710
MD5 1cf694458958f458f171f87f8b880996
BLAKE2b-256 98a5245f2408d4ae4b670f8aafd315b136415953f99b909346fa8b8e1015e4a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 661197795e2d6c6b90591e3cdf5d8a477ee98a6ac68caa76a6fa2aac86c0e731
MD5 560108236c9688faf28cdb2c8f0471a8
BLAKE2b-256 c22654f720fc0f474e085339cf70d0e667ba4c7babfa3154649aff51187a9156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 099d235e86186d7ed0b8348294dc996076194bdc0290a2f4ac75586ee05ab001
MD5 53fe550dc60eccf94fa1d4166deeb94b
BLAKE2b-256 538cdecb03be7a9f336c3ff89c4cf1e78d34d8a696b14e7c026862ba060d3671

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.709-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.709-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2948f820d269b11b9789123df5673d845e47e33df195874b77909a0b052a4d2
MD5 0f4f7d836b1ec9cab43c51aaecf73905
BLAKE2b-256 cf1f463b0cdc02bfaa98efa2dabe5ea64dc35a0951d3d0e6d0e2f64bdddc96f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11b286bf1ed1128ebd98e180837a5e10ba3cb1493e18dabae0e863a481d0f979
MD5 282ed356d56865e9d387e7bb8e9958b9
BLAKE2b-256 6565a7be2134eaa58054bea1f6d9c7da5f24e80b6e11e12dd2c3db3ff03dad81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 28b1be7c2a1f12493b3fde21238a37169376c4536c279446fdcae0c99fa5a5a4
MD5 1c2f79cd93ba8beb083af533895f343e
BLAKE2b-256 f623c56d778806108781b62542d31495d5b6333b28a56d6dcd6412b22e274646

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.709-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.709-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ac96c1973bace817919b6e48f681190e053f4fd4ca11aa1b8dc1edfcb1e02e53
MD5 914785f93839f55c7525b6f95a87235f
BLAKE2b-256 b61ab6bb538a0027c1f8c51cda3e8e368660601a45596a8397cd0639fc08cad2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.709-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.709-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8658ed129430e16bf38060da43b0fe741818d0ffa83518b99904d603d45def6e
MD5 3c98688713064ec7e2d0ed4e5a650413
BLAKE2b-256 126a84b82c8cd2afe77eb520641865f555e1579360fc63ea7148563bf013b912

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.709-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0c2152f6ead574dc4315cb069cf49a0c042308de39ee1baefc5d2e3365995cb
MD5 8d4df8f7f02f73b27a939031f78719d0
BLAKE2b-256 c5d7c1023ec0562ae1053f80eda4486c4e68e6be9909f6d80eb80df651c40346

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