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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.659-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.659-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.659-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 786434769a33ff82fcecea8debc909d21d49651bed6df6405180d1e4fe4f6b9e
MD5 920489d23057e13f5db1a49e18cade42
BLAKE2b-256 d1e656a29732709d08db5141720565b41c4d0e04843fcd417d75a200f0b2faf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 432b8e265f97b641f6594a2deeafd6c056e2d6809e3cce48b55ae2c708701873
MD5 c508a9e045e190bb78cf6853d9b31958
BLAKE2b-256 a2c7eeb4b869e1ad79d1bd2b469328a961ac47e060917876790685782b5f71d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.659-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.659-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5a63944bbcc29e29db453184160c774a86d14c8a8aa0bf2b8bc987c43160a1e
MD5 7a99cd1996f70a49cc08cfd88dcf403d
BLAKE2b-256 0f0eb3480cb145c63fd54e7349f0d3daf95eeaefb381fbb2e34d5b20eb8e1c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2599754b4f1094fd0f2c67460b981f028a1d3b1096db7dcbdc67146a34ee3088
MD5 c51a62c12b9c3860be6cbabb236cae71
BLAKE2b-256 ab9b332cb7e5145ed0172dcd54efbc094ecaf8d64fc95e9af71f815c3458f7a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44ec8cff66fd5b4791484ba9d84e7e7f816c254d58bf7fbc5ac20e931d6bf795
MD5 a7d0502c979e34d5fa4aa631962bfb9d
BLAKE2b-256 45e2f30c8bb33a3334e56c0b8b60d809d47f118a8b0525830e30a5c776a70e35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c50a9dba1c5e7e936e86f22a20ec77d68776d7fcdb0fa0f53bb7c7015f2484ba
MD5 9f9f0be7aa08da925097bcb240b7fd75
BLAKE2b-256 7e8e19fb4e9b115064291586289c6b25cca351e6d4627bd5f7c404ce79ff9f0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.659-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.659-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5da041b2d6b213a8fc9cc5d054453eb9d0ac2385ec631e9afbbc1fdef5a902e
MD5 6fc65b0070edeebf889dea3e981f34da
BLAKE2b-256 0afc6c9bea8271dc235f729461571d3ee8b54f007f1616edff05fc75e64a86c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e746200a1babd9a148cffced934fa5372803a609cecf946bcba1783db04d8ec5
MD5 abbbb0ace1ec2b63c12001426b91a70f
BLAKE2b-256 70dea588d6d313deea9817d32f83518a9c4837f6b834c4590c47d56be54b31e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e17829211953ed37e1e65a9db848d988402c961b6af59ce7b77671dcb1d4219a
MD5 964c36edc1c45ec5a241ddad1a86bf21
BLAKE2b-256 a84202084c1de63824e448214f19c216e5716ef262db5161e2dd9e0b8a404395

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68c2c2c4150d685957ee104dfa5ec753a6c8aad6925d71cba799a8b686643495
MD5 e1e4bc952390777d19b95b2fd6683706
BLAKE2b-256 0b35893022b5fe0bd48b207070e4ddbf6a1668603fba6d0e1cc3d18c8ad9ed78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.659-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.659-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac21713f2a8e0c0360cc3a48d3dd7d4227cd70ab1f09ff9c559e65a59d67cbdd
MD5 ee36392d840c0faf0897bffc69c555da
BLAKE2b-256 6fc0fc2ce5ce291830041ee648cad70dfc4579c7dd8610ef52eece08d0d8801c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b69b955907ad43a9117480c0d45395f33a918efedc0ed427d82d78c0ebda6b33
MD5 991aa2221e53cdc2cf8f91a7fbf59ec0
BLAKE2b-256 58f9b6be602cc250d2d0ac8607dae20429b34fabff4b3ab82e06a6be16814e93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7cf4e7e08ac87007def59e50d1102724142e880894d42af4680b97ee391ed9b7
MD5 e6dd7d488c2a9a9619b7a788e1906f99
BLAKE2b-256 957c3e191bc18e42ff9e1250dc1588c3ff5eaf0b90cb216b61bcc04dfde828cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f0620020fdb2007bf5b57f54d6537faf499ed7a9230201c5330a8a0569a7b9bb
MD5 270315aca8f8ac12f8383815c7de4444
BLAKE2b-256 6aef10e2690634422b1b1166420f61275fa5c4e93835d3c4ecc3c3759f509734

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.659-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.659-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e73279e89b07bb53eae9b28aa0db07b103a9ba2e96d9607f3fbed7e100851ec
MD5 1a649da9e09c0de4b28f8ba97c731b64
BLAKE2b-256 f0b0cbbaf9836db5fd5d633a0f798f10d03f0a8db8fbe8640eaffd462cc843d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5623c2aa01dd091b14fe11f9f1a01e57292421fd421286516ee33ce3646ae849
MD5 7dd108249d0af2892f9e9018b2ea2386
BLAKE2b-256 78be71b311c7c332101b5151b3d30cf65a6a94d87876f6fc6766aab6308b2836

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a1b9ada14277b3c6694e85af0bf4dd95d2b32769e9c3ff1b7cb2d14b55db7585
MD5 8374d23a52154591cf7c9167b2ef5234
BLAKE2b-256 fff75f47bdeff3ee6484b1af77b282b1be74a20d6ec50af20474d24cc0be1237

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.659-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.659-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b59930ab3706b2e2cdd43883e7846fc156e22f19ee9479f97a4f175140aee0fc
MD5 db19915c0965c65b4dad7baef75a2d8b
BLAKE2b-256 020eb57f8a3c44e30fe6daf21826959ba9b41da7d20f8e9c5c14439d34a01f8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.659-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.659-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0180b9985749134def08d7c08860d0725b065c11a7846f29dad4161dd00fb99b
MD5 d9d80bc7c9a98e1432a4214c9b47b550
BLAKE2b-256 392c12324eb0bc95d2c5b22bb7771cc1b528f4145c7fb69028cd165972a40e56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.659-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02df206992553ce59741358da9c7eb35de6ae1e8283f45d694ce6a0da4c4979a
MD5 59d05ff1f7cdf25fb2f9f1f616381796
BLAKE2b-256 fd0c91f5747e914cefecdb8b9c80ba8d3c9bab2883b3ef008de3e86812432d0f

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