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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.644-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.644-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.644-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bbb1a2fb1307c3f9d4efaa8ef5671383d46af2073251fac29034c45cb311198b
MD5 9688782b58cd033637e882eea7828cdc
BLAKE2b-256 08d672251a26f3881d3bbf31495693b78472a378e0949285e3958cec0c111afd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8558bbfd4938c682dc6556043a48090fb83fce9e3e4a83dad7630ba0251490eb
MD5 d3b6e6d598e930af4cea0dd6336b8981
BLAKE2b-256 18994f2d8a43b29fb228dc949581816e013ec878129d2aba8e9ceaaaf0e7578d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.644-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.644-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 022ed5521fd58331f6074e6d0f3581a906b396a83083fd630d4c77795ab35726
MD5 24f4b5d408d964c1127a36a70a3ec83c
BLAKE2b-256 b6392a34bec6d0eae531419dfc925dd57975e933e8180d217c41c7f83ff1fb6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7ee0de9061565343fd8a9948461140b05aa011082af3b49f7c7c961365c42e8
MD5 40da9abd770cafc7d3ef099bc635bb94
BLAKE2b-256 18f5e22787ed45f0308191bca4272f12fdcf37faaa79f4e851dfc17367e9c6ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e5f92cfb88af766b62877cfea0fa9fc042eb57dbc8f1fd0b40f642c7b80137c7
MD5 69af8c2fad34b7d5c80a0826520b0c34
BLAKE2b-256 5e6b7569a8444ecaae6e920dab9e44322448da8776e26d8b440b18de84f9c2d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e7669067f03518424edafd56f1376fc45f6a864c60306292820f426fb69e7e7c
MD5 42e9f9241efb249f79a8453f265f40c4
BLAKE2b-256 8e88c748fa6ec4601b58aef8368a27ec4c8bb60fc0cb2cecb1a07ab412988c3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.644-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.644-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9672f67162b31aa0dc5122224a8766d06fd9c2cdc88ca209b16b35ff81dcf1fc
MD5 8ed355850c200286ae9753141c82eb1b
BLAKE2b-256 41165e58316a778119da03fed5a76b416b40e7b10a7dc189c61c38b4ea7adeda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48578f6f159b641fb9a588f5f69493f86c2f1ed3e805c4cd2580fda83727c08f
MD5 25983ec7fe7a617cff7a1ee1256f9298
BLAKE2b-256 c1c723d0b17652a86e25740f72df3f58621c9ca0cc4ec86a3732b4ede85a0863

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2e9ed13d91d712b4faf14a14bf52f8ee965e0f8bbbd3f93698845b4dcc0cdbef
MD5 cfc26e2607ae8e21a1633bd9571d9c94
BLAKE2b-256 23796875e6986417e6c25c308cdbe04e03a665d292966c2b8aef052858b65d3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 67d586a13ce88aa53380289fefa7c5c7b293333e5bc6640d4b7064635954938f
MD5 042a2a81ca87e59c90c81571126b9792
BLAKE2b-256 d2c401a6add7da993a1f13c6a2b54ef5deb4c9cd7a2600b42d6fb671f7964b2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.644-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.644-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0cc3a2013fe8a7944fee699f5dcd001f677905be2941738a93446863f51bed6
MD5 422b3d6cc2df8acc2d4a008e032571a1
BLAKE2b-256 8da4c1836a4087cc25011cbcf6d6f4c6dc9804856d86085f3fb8b7244c9a9f60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a9e27832825885aa54505ea1f17002e67a8a64e7b248a8e0b90cf15125253c1
MD5 ee4a99f54b61c00276526dd631f4ab31
BLAKE2b-256 c93e1b0039ee805988e0d426556cf12c634cf006d3906cc0dc4cee86c84d851d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f2ffb70f581a1745ba7048e489fc40da6bfda1ce0f09a3c0757cca4148960436
MD5 5ce50499436a67fc3f5cfcb4104c0f3a
BLAKE2b-256 c90c49ce1ef60dc05ed18c9ebbffd6f08d95e0e6979ba8e5cd3fd443857a1e33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aad6e173f1d2113960e27d929863dc22770c0143e3cec9005aaa9f7259cc4398
MD5 2ed5c142b7107ceb248b345b71e374fa
BLAKE2b-256 2491024bcd7130e46419cb4e6831cc4aac3c39cf500354f9f918014219e9fff4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.644-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.644-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76f774aaf6433f1bad853db8eaba73df235cc59ee51e737322d713d64f0c7cdd
MD5 6e88f4c7f1c3c65dbd29207ec81b341e
BLAKE2b-256 0f1706818405748ba129825c3d268af14ff94b66e9b33033d1a4476f0fa78446

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0046dfbd173011aab6a288ce3d7c0904fb013a411e1c9e06d2bfec1f123ae54f
MD5 a8e67e9db2bfa3ffc98d568321eb1327
BLAKE2b-256 8e2d39bae8ba227090e0c36266d16f6b81af0ec5dbf87c38ce7f057696583620

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9a85ee0c3b188ba07012c541b7d43e000004688d88b8433ed14119431da4db51
MD5 92679f00ca5ac02ff2d5a226ec6a09dd
BLAKE2b-256 a8e23502c30c0583fed72308dcae993ef54b719516a0cab40cc00735af0bbce7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.644-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.644-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4b2d3e111f5639253703b193bc419271e0adf47bc42e1e42ca15c334b8c0ca02
MD5 e085e0a3a9293c3be1ff14bfa82ab9db
BLAKE2b-256 4e0d769dba0de14a22656f64b21737c982b76907e31c2e36306d232e423e12fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.644-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.644-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eab6a3d96953500ba4e1146c8afa3129ba9643b3cab186bbbd1f6bfeccd67511
MD5 6466d568de6aeda4fa2055faee6da8ec
BLAKE2b-256 afbc82ddce2be347f2598a6146d8aad3f8bf65df1f7c50352f121913010841ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.644-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bb73374605ecbf8dcab4dc3287263c693d9511b4d49dbf5a90f86daa5d817ef
MD5 622382d4794bf3ceef9de2def05dde2f
BLAKE2b-256 ab3397796768b96dd32e0579f41d8e335c8c24335cb4f0e575a9f5db68bc5918

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