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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.811-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.811-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.811-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9cdcd5cac3d8ff0257a3e97416d48da763eb8848ddf864a9d9650a53b1a36a05
MD5 245c36b0e1a16f7479ce28dec29f8dca
BLAKE2b-256 a33b350574fc3bb88b63daf9d65c74453351c8fe2dda8a86fb1c496b9281dcff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 91249e2255b49d95255c5c4dae76c6c6f27481ae602f8bbabe426fdfefa33c86
MD5 b25d1d393da17fe9f03f0a57af1ed5f9
BLAKE2b-256 07d6e742772a2cdb551ed1030c3f2cb62214b167fbdbd7a585e76aeaae10e03e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.811-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.811-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbcdb79e75c2b5a345c506eb50f59a64baddde80befb25f83f3a906c5ef7e709
MD5 65d6d1f03f3f1c8a1e7db706caaaa5d4
BLAKE2b-256 f31acc8ef60f504af8cb0b83d64234d0749224cfc6592617245fb4edf619c8cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 128d35eaf7dc30f8b66d46222531d3918ef33db11ea4667799e079124c5ec4a6
MD5 359655b9fef105a4f80b810351d2707c
BLAKE2b-256 7c6439a810bc9b2b2fc8a75c16fdd6cfe4b37fad9455512fe1d081c3af66ddaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 69eab9b4f8625449da3abd559a4423f6da5fe54f3423a45e370602ce2bce63b3
MD5 d4a24c7a21b77d7af2c03dae989d0625
BLAKE2b-256 3faa3db809c06bdedc60f4b51db716e02cbd26d255556e8ed4db62416ae58a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8cf97c7b6d1927e5e43037f578b6257b87de3f69093b2973975618977075c3d2
MD5 1244d4bd379c8c8aab8add01c474787c
BLAKE2b-256 bd8aeb075cfce586f042c5d5b967cd0b0c2f5b8789423fd84856a83b8c627255

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.811-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.811-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7bed24ecac6f93b1329987e79e7730b1daad7dbe379e9a87a2d7942dcecf6b8
MD5 27e74f33213a7eff9d151184b9a342d9
BLAKE2b-256 977b91473a6072487a65c9256aa12bd77865df31665361db76c0d72bd9060a77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5989dd2193873b78ae44e1b2e2499ff5baa2b83f6895ba7ee879152c2af0d35e
MD5 1b9c55685fb1c72c0cd3ffc1f3e0e0f3
BLAKE2b-256 9d7bba3cbdf7fa8a407d65d5cebca1fd1fc9cf2fc7913af3622a20e9d544b806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b4a35ed4695035fcdf4afa82b1c39c4a591fa430bff0ca95af5cc38c8c8429e
MD5 d4403be9c87d10d18a7b05a2794ca6ad
BLAKE2b-256 e1d403f8bdbe5bdd568e440425fa52b1c4c7452659f0191a703d58bcce2c9c35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 df86f988282c4ae46d23b0457d759cfe03e9873ea443fb4e11d43e9495cbc0bd
MD5 e58051746dde63a94ac43a3d3bc9170b
BLAKE2b-256 baa1f70109cefd0f74e04640189cde41faa9846cfb8fbaea78c768e70a5c7bfd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.811-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.811-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5fba2e4ca575f8e8f9c8a84b93bbca36f542652b45426294762fecb6f348c9e3
MD5 368c5e035280d4b144fbb44ff35d953c
BLAKE2b-256 bb51682730915b1a28fc32393e2db81b53883e75f60752b58c81dc754c0b2d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa659a62268d1a31afc4f2b358edb553452a8db1618efc4b6906be8a25dd3ee7
MD5 7040fbdd920a3880be967ad3572a99f0
BLAKE2b-256 e1ccf85eccc12d4fa22caee58eb7e151d47c12b352fb05bfcc9e7890c8af742b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 85a8300ecbd165f2959e3d8f520ef0d7de80699982d6fde05f8619516537e129
MD5 0b91cd2445e30cc746f2d495e56a55ef
BLAKE2b-256 d6bbb05fcca7d90a3552a06d4bd151f3d76cf15ebbcfcaac716b648cffe17fa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b0ab1ea4dd5a8384d8f2ef86ce2c7ed91609c95827024b8f0680ac2778481db1
MD5 12b073c1cc415cadb7c8396cce444610
BLAKE2b-256 c87bda0d716dffccd453d8e46370429a37a73c7a76478ef7bbe1bfab5cd82fcf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.811-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.811-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9beae84935fa62a851d5c9f123f8cf46b9617513e2c32e800dab1d917d6dd27d
MD5 296bca8f277147cd858e8bf93c443310
BLAKE2b-256 694563a5272036cacd6f1ee347be2b26f961fdf92a2d34756e9cd615a2454a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8620d38fdb25064aae2e6d58dd1c0a168fa469ed5c36e69e6ea243230e2289b
MD5 629445dbec4ac466a4f7faea43c1c6bb
BLAKE2b-256 e0ffae504db06c86991acb07e3d5661df09badb79bd7c63635c97b09b26505aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8cf7d7caa40398a915d53ee16697e1608c715dfda4bf8a41c8daf5e0fb475a5e
MD5 f36f30374f935f19f74f04fdef967536
BLAKE2b-256 0008ed76419f319fb52a42a309fda4d54b5abc56a162ba48524426a90b82348a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.811-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.811-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ddf712ad58b112bb686cc9a59ae64455b00af3bdd684b897855ed493317e003c
MD5 01a264443c9dfecc2324f9294b4b438b
BLAKE2b-256 5f3836625603ebf52673c22b05addafae6f593f734890896d02923fe908622a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.811-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.811-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d625ec75f47d3818ab7348962dd17d41858ebc942068e5031f6c4c8322c83ab
MD5 1e7c3fd912c0b8f912004c82428d3f5b
BLAKE2b-256 89da2ac167826c886adc839c7f5150e35048bdae0a602d9533af2f7e960056cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.811-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35925b68aaa3c9bbe8e390d1a4f406049444e33f943ce62469801ccb3a9cc07d
MD5 3110343540bf183397a95b4f151625bb
BLAKE2b-256 64113508d369d7743b84775a7d770c620874faa7b9bbf320abbd50d5a10132fc

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