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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.912-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.912-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.912-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32850ea470fabececa5d2d7f0a4754e13a5a1fb33094297c594a6e11b527118a
MD5 9e7938fdc5ca0bc71d28f23d10340f1d
BLAKE2b-256 b510dab3a23c556e6c4ebd58fc0c332ba55608743e43cbae105891a373457a53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2bbd1394744154476b3158caf1d358661404084bf09ef4eab1f664b560acc494
MD5 40408dd4db11d0c56f0ef282d200b973
BLAKE2b-256 133a02eebe23aea4882ad989540004b205f369f03c23d649f7ad07772cad7076

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.912-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.912-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3a9ba64c539fb1b597d1bb793e0d2f1e09a61a8531409ee619922526200ed57
MD5 e2822a6027bcb0e64c7e90826fcefa07
BLAKE2b-256 e9bb7d827bfcfce5fc540c00df2253d6298d7f6994441760e76e69cf9945b8d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3db160eec1a2027a5c4ca9c3594615a3a1407958638a161b7ea5824d90ba694f
MD5 bccaf517227e3311cf50023b41b754b4
BLAKE2b-256 d5dc419c4cac98e516801880c409ec14e91d4936471c724c756066afd312f444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a73f8b6a50a7442bcb85f0b7ffc1557ce1f5582cd8c750a7037343664e6a9947
MD5 2b763b4e1e9e64977479b7710a83b5c1
BLAKE2b-256 f25fdc5363484789d16961c6bcde0bae987d86f261239e7ea6db873b21cd0a65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 db31d77482238efa4e3fcf1f5603b637148231a4087dc026466546c2432ee3f0
MD5 c819da209dc40c90096ecac6ce54d193
BLAKE2b-256 cffc66b512a37d8660c280309502f7ba132f0bf5c5202b32b92ab33eb29870b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.912-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.912-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8478198f981ff458f062dcfecac3ef9322e59b434badc6c3899bb8fe17fef23b
MD5 d7b8639e36720fbc572cadf70b0b965e
BLAKE2b-256 67cd80de976fd7cd2fc120d5a665c809c72e003eda56e0cd50a2878407faff78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94b9718546db56d7002ed7a274081930b01711fbe0d98d755aa653aec03eb7cb
MD5 13f8662177a10649f9ba14bc432057e0
BLAKE2b-256 ad3c7b5a5ec9dda894df4c29a550f71eb7c0a1119dbfdc78b86dff93b3952f6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 91a745f86169b93cd3be1f85f297927075da2f1ad64bd43ac1c88acee3a13898
MD5 c1e3d9fbe15d9d7d9785dde95eef8aa4
BLAKE2b-256 ed596aa0fcf2f47334fdb766a4568e21147bfdb20cd6c81e55af25986ac4cb96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 316bb876c2a2f935f0b2fd2ced1bb86dcb8a20b9fb83eb8e8c5ab47e7fbe6313
MD5 08e2f4fe69b58789ff75ca022ff663cb
BLAKE2b-256 bed55ebe0a05d58a6d1c377f95ede7b3ab47f13349dd7f82c4c833ee6c635857

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.912-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.912-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8af3840b0e90c81abf8f2f6ab265e01d69c735fb7b16691ba3bb99c53660499d
MD5 ec9e727441977cf0286b8cac8a4362eb
BLAKE2b-256 18d0eb86b318e14603e77db80e170f6b2588d6698ce039ef441980c74215b715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d156d664a860c76e5ce4d0a7a614d4ba7658dd6ff2c08ffbbf7944f60fa7e23e
MD5 5bf67f540f7b5c754c97eb4f5e354340
BLAKE2b-256 481edc9c58d9777dc5eae50c8c637fca5dce2d773938bcdbc074c3f36c508753

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 569950732e9847162ef9d49eb6027999b2520d8dc9857d9a5ac670de015f888e
MD5 db8dee0a5ea8a56e9fcb14404ffeb55a
BLAKE2b-256 3f7747afa3913d29877d51f26b93431cab63069411238cba3cd5787536c340b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1bc03c1e657dbf45158e5d8b032c32a11eef66bede823c71baa0af705e6943e4
MD5 b6b04f3515fa0791d102d73c89a2c56e
BLAKE2b-256 d08dc0d3ed287ceb721c582bfb3228efec34d2b50ee4244b7c1f4cb5a01df40a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.912-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.912-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e1a1c0c925ac83fe84afea66a09e46a6645af7c0c6717a03beb76a35eb99ef8
MD5 ef4c39e82b76c74171f6e4c9b6ffe7bc
BLAKE2b-256 2ff422dfd1140b64e416b415979fd0b6dac2b7d53ee40ae980993c34c37c17c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aefcc422c738887879bd3e722bd4a75a032e238c05daf43e5ba670499dad18cd
MD5 49678fba5bcd7224692a54e3d2565406
BLAKE2b-256 f65a1e1c29bc76fae38cd0a09d62dfbe58313638ec89b53128b05842ccad5274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 951fd53147e40bf3c3fc946050a758d2c584ba394e333931c0c6d847c9125477
MD5 228a7aa77c7071f2a1d24daeb10261da
BLAKE2b-256 85eaa52633bce640dcf9401a91436270d09d7ca78e03f8547b3c92da871cfc8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.912-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.912-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 554ee06421eb7fcbda55b302ed22826253e97c2c103a17cd4c4ef4ac4f8ff5f7
MD5 1f47131ae620ccd01f82cdd881010366
BLAKE2b-256 5ec4e53f2e3d893e55db8c104f106ea6f56de278555cef21dcf6ad983e5656e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.912-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.912-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96d1e42a82e851836d5eb5b50cc3ed0df03d251a5eb3fcbd967032326e7ba27b
MD5 48b7f0924b427058264428612555fbe0
BLAKE2b-256 fe9f3bcab7bddf4748f8ad40258ab8462f5467964f011768bcb9051ddd5bb3ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.912-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a0720cf0a1dc62264704719f1d397f1fcec92b58edc647efe011e857364bc06
MD5 b23eff369aa279d66334bbbd7bb67a3c
BLAKE2b-256 4b5b3b639505e46c2162d114ab3328fe3f2c7747ffc728e49a5cb49d77f84f1c

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