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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.183-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.183-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.183-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d33b70a31e7fe55d3c908306f48bcd75ce993d766471b74728d2ca1bb7ff266e
MD5 fadeb65019be4b2d44fe50c8f9d81311
BLAKE2b-256 883904f5a3d71072cb63ba9db202436acd24c7b9d0db3027f45866bbf9433f6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 79c0c73fec9d2c548104062f2e6d1be86782c560a64044a113c64dca00097c30
MD5 4bcf2c21ee77677d0c1bfafc9f0491ec
BLAKE2b-256 a46c2879d9046d16cdc859628484ab8666e02db166b824d2e99c60b28940b61b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.183-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.183-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04bd5b9362206f96ae39d36b1effff31e5e7c7e0dde31ba85c6b006b87ff47f4
MD5 c0e0bdf0f26f277d688f2781044441a0
BLAKE2b-256 70f70acf8e6d3939505b0a4b55299fde4862df76809fd5bacca5308eec26cf2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a378949d85c4112b576fef0ec1b56cd56efee7b97f776c146fe6baf58e190ec1
MD5 37676f680869985aa44640c550dca9a7
BLAKE2b-256 48c408b180ee811a4391dc398a44f1c68b445231d58cab1ee6774c3cfed8ffc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 462be105925da3d3303f1e696450deb31578bf6e699af2df37f573f8cc202159
MD5 11d8350fd8626b373ffbf09519e65b65
BLAKE2b-256 5f8f4009a08aac5ddcf1ba2d687113f9fd683fd88250bc038a47fce6094376fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a4683efe1cd958c1c4e654655c89ea0c39b5bbf026d0472a494d5901c61aed15
MD5 a18d187edfe6c289381fc4ba7c32a211
BLAKE2b-256 64301559a5ddba22a4a12d608f24a73e0a6cf9da4db67aed5c9c65bf1fd16840

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.183-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.183-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5cc55bc9f23b57869e56c1717147370192718cab18a604c943d68846195ee51e
MD5 86e9ddc349e9c7707f301b7f758a5e8d
BLAKE2b-256 601abde4a286e45e97a82d90f3f34fec69f54168cba6c8745098fc00b8fb052a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ed6fe53241ee59c2448823a8723284e2904e756acc3966f38cf8ff52a479552
MD5 41fbdbeddea14e7dce35092af1368dc2
BLAKE2b-256 24695fe2d291523ec5acc754bb5201d9cd4eab74c975a50dafcb5c443b1b89e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d0eb6305627d5cdb954efdc034c2f06899d1784b89b0bb09affbb04f2fbb4a0
MD5 b1b77535fdfd5ed4570c73d219b626f1
BLAKE2b-256 48c75a758dcc4806bc32a589252d024ec4b9a2ea3cfd9f554d024828105cdad3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 44343e0a0d538db36e824a455b950a3a761b150a4c6fd69958c5a5395f5a9768
MD5 a7a7956d0377504f55ac64aa857aaa09
BLAKE2b-256 bb2c46cd9564d299463edfcc0828b71fc895b8f1edfa556ef608c4e1d8873143

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.183-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.183-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9580ec35651372510d27f08328e0fed2dabffa06722fe70a34ac22afd7ab4661
MD5 960f61936e73baef7ceba8c7a8e8520a
BLAKE2b-256 4a204fef348fd2abaa5cb542adc88be8d1c437e046cf9a276ae403e0ee0ce08f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91f2854ddc6cc0f38745d1911b4e8ae3009e59710d0ea8b9f067dbc8fbe643b8
MD5 3a9a6f5ccb7920acb903bccaf6ffd35c
BLAKE2b-256 2ab99595337cecf1d3f4724628009bdfb4bddd9329c9b8712541d3c9a74872c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cb4106156a558368960a715faa5970db660fbf0a27c467587f08c38497e13486
MD5 41d1d647a8595c162e5635a9b400760c
BLAKE2b-256 fd1a33fc5981e0f3060ceb8d4efbd65a42b524acfd32c65d805179a9c0d44859

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6d21ad83d4a858c777f579e6ae8eb22021530f582f24f4b04f13baa700595058
MD5 0658f1c0eccec120d673c3055cae9352
BLAKE2b-256 5492a6f2de1d165af5057137a646050ceb9504daba76763fac50cb89c8ee6caa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.183-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.183-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1232c7c7868435240ff48d9ca2ba1d8baa5d508138093d86aa6bbcf241f38fc3
MD5 82f8db33aa1db65e28fba9b6d616f584
BLAKE2b-256 37a2730d59e59b818a00aa4b25fe907bc743ee49b39985ecb69e861d07a6d2c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b06a29daa7e9472064d431ca3d60b6c84b52124f491c106780d9a695b312125
MD5 76c09abd9332e98624534ca85a5e2fa4
BLAKE2b-256 a249cd29f684314fa87b78a2f5574e35e0aa2541724147f9bc7830d0b8279dc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f2fcd876f28aadf47900dfb9da8d6002b8a0831fe42718a875d3aab05fb0159c
MD5 bc9d3dce0086d1bb7a7e1c18286d395e
BLAKE2b-256 11a771442a57da6350e48c333bb19551b62a12a977b77908d872964a8a989637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.183-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.183-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7c55589f314704d232e94276658d910bbe7276ebdf7acc8f676c510749e73b30
MD5 17f5a18a5c2515baf42f3cb3e74e3ea9
BLAKE2b-256 a149fd6f226fe32fa242e6beda114261b72238c42d4264e48dfd882af2d053df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.183-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.183-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a21cc5ce81707b0628041dc8e921481ff09f1e31c6df3bad67e8e8a0a77e9c82
MD5 9badf54916a9cbd552a6b2e8c582b3b9
BLAKE2b-256 3064fc76ad3a74d4c8117efd4e7afddc003064db6d9916352c5e1d7b2412a3e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.183-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 100a78ab4ceca84ffdcfbbc556ec71ef7c972b39cc300fa3bf76ee897d69dd48
MD5 d8119c07060629b875311d4a927d84ce
BLAKE2b-256 68a513d3b7e1965825de215e19b18cebb213966c7791a2517a2ef9b425239908

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