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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.168-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.168-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.168-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4f85d7896a27f3ce40d29d2ba04b23224123dda079c98f7bf732beddc2a06e4e
MD5 af03fe48fa589db2e11c2294d224bd81
BLAKE2b-256 4dd8153ad80061035ca8c433a0ec0d324ef366507361b5a0ac432564461db333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ef50134c8cafe63a609638dd02287ea02fe99c787064558bd0eca547fb48264
MD5 fe1f432377aef058d8930af17da56b95
BLAKE2b-256 c269de87895638007bcb8e4d22243fbc909005f404b498b2060e470bc4c491f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.168-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.168-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b39354efd41aa56142a280fabd7573c79c69d3dce6749b196d8c851b865b5e97
MD5 c5ceb7a9b4c7a5df875f4eabf524dd46
BLAKE2b-256 c1a81b79342b72bc5513f0e8b4e6ac7209b35ae75a9912dd3c1e6dba7da7f2ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbfa9a0a59f95a5b77504c63ade42de7967d1502df00d0285453b2a09718df41
MD5 34f009d1ae43e00911b522851c7b2a28
BLAKE2b-256 9253df5905d125943c8ea484c37e2b4ccb44d868b73a113ed818f556c2606e13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40d1401e1541129a9b5219ae2379d70432f3ca13caf7e27653ce7faf684a0432
MD5 5cca6def0d5dbeeaf27aaebdcdf9a579
BLAKE2b-256 a0403af5ed08825defd497040970e2ede9059b48f317682a9b1bfb3d2fb84959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17432bdc60380c285843f715604eb04b2d485fab99d306786f76ac799a975d75
MD5 27a36c4b4586fa05ebe666c8089950c7
BLAKE2b-256 398952ac7820c2646a34bf56733f823818de974d717488b5dce4b0f5b3021e4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.168-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.168-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec8eba160841afb92b1bd9227e9c6eb255f7f92eb243557acf6100b347fe04a3
MD5 36f385c3d9a0fe587de5afe710621f52
BLAKE2b-256 27b24c0567ef1849a15697367bf29d8fb41406a15553ac0cd93d28ba68a30ad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2be7083c06dd36c241593dcaaf9de49752e380b11df51e5bcb47dfd611ebd73b
MD5 6b0c06bdf0389c1c167cc51bf46ddd2e
BLAKE2b-256 5e1170861d8b2d941ebddaef083a1c7f16d4e2ab01a0bf4163db5af2c19b0ca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0be7b4e980e471c5dd9995f29730f64ea195b75c89ac2ac92cdfedfb4adc5f05
MD5 d1b182def677a3238aad0e813d63377b
BLAKE2b-256 648ba23a8b133bf1101bbb6c3042697eac40aba7444806df4b361be15af5d7ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 752346610a765bb5598e05ffbb7ce4ac3ddd65950341be26bd2076c5ef2e9550
MD5 f4d40c45d2398873fa17fb470ac33a27
BLAKE2b-256 a2633aea4f94d4fb8173d40484e24fe17c74566f85852df77cafb30ed04f1441

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.168-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.168-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 143d37709955c7d76833074d52c2ec76d48f03cde2d1cf4dc6daa231e92f90ca
MD5 d8cc4065ae975bac29697129bcaf9b26
BLAKE2b-256 3ab473b9d2560c18eb8a51aa254f0a46d7b8b8f0896331ef980c7c6f193fc377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb8149084f1c61b723603ad14003877bd5e0cd081a694227e2a1d58605080864
MD5 d3fe79919a87ae3bc0637475faf2e2c7
BLAKE2b-256 b93aed2713fd0eeb73c5df1ad7ceea77f6df8f21630bb935ec7b796e9b9f1aef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2a7403ed3b3605b0c3260bfdf59164c6e27e6b5094b10586114261b7d1a42a48
MD5 32e9f53533cddab5accbc92897c2e66f
BLAKE2b-256 d54876ebfc525d12281ecf37b5e848163dd911bffd0e8982468c8cb1acf2bef0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f2b4d3c522c2db8f28332364005f2dc9ed515cc7c771c608c4bdb17944d10968
MD5 f4871cb2ea8507f00c9a264ba8419e04
BLAKE2b-256 8d0096bf5e6092ede77654adc32b0c19970a20a6666448d8b9e020991fdd3c0f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.168-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.168-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c557e3ce55537ff0bbe20e0eb77e8b74f6ce0a1b1fc1dc1e61ed43657079bb35
MD5 b86cae181a92f5a7ea10618d7e1e34c0
BLAKE2b-256 d469e0f33ccd639d421ec6246c5f97179894b7ec9180e861a60c06fdbb3aa901

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02f1543457efa67dfe4ca1ebef25e17dc0c5b44daa5467d5d75a5f58e878915b
MD5 eb8f89dec50aa5283969b41ef97c1e61
BLAKE2b-256 f26846c04c646ce23c01b0f71515bf9ec3b9ec50c9f52dc30c5ea76663864514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 58c62c033bf82788683bc2cc7d3dee0e066146ed0241bb017b040e664e1150bc
MD5 ba3b3639c8bfab9691e4234061a0199c
BLAKE2b-256 5d86b35eee371e215a4365593fb710e1c27373478e59bf80ba13f8fe887d5444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.168-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.168-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 da018e415f1f64dcf23f4c2f263923c1694a05273164cb6b4e8cc65da6cec7dc
MD5 e4d47dbe89e379797dbe8034cbf7abf8
BLAKE2b-256 340f410e4743307adf6681c9046b428a57c7031beefc190bc089faa179fac078

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.168-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.168-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 167301e8fa02b593a1c7013ef35bac25631a4e885e5e8b7342cf74767d94d19c
MD5 32e29d82af867b90da40f59cc0416762
BLAKE2b-256 1ffeb5c26dbb205cbaee435bebd60039f692ed1d3e9499d65992c9f799e5df2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.168-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5b1c77ceaef05ae5a06c15237ad6881fd88dcc303e12573cc7c9cc9d4ade3be
MD5 2994e55f1512e30a96feca7cc453137e
BLAKE2b-256 d6b89f38904ec929c7dfa9895d1545b50890c2175d8bbceea38f692a884b229c

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