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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.838-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.838-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.838-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 102b1c838e7f28a1e7c1ca4d50ba0c96bbc7ddfcbf5fa82b331da99b28e8a603
MD5 4d7798afcc58b6e114c230b37f274cfa
BLAKE2b-256 15b7041d9478e089825e914f17571105a64219736cc035d67b221c519c997615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bdd71b656d07a61e03c6ec811597c240bd7b94cebc7b3b747504216ff9b56f04
MD5 22067dcaf21616672c9cfd75176713df
BLAKE2b-256 01af9e70da3795bcad0316ad5adafa23450a683b80af3b0ac9c927a68e9064a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.838-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.838-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a523e9fe9136e10dedb002828772b9df1817ca90900d99f1da923132651c5f62
MD5 d35d3d0355baa96f56548c56278f509b
BLAKE2b-256 c2ffe4a706db93f88fdb7c3cc30c1a8c16c9a6c5b54bf513a2a862e7ba539293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cb14695f301a199ed3db9f3bf852fcdd9a63512d7ecb328c4eda8e34427a99f
MD5 291b9a355f68b3ed5766bcaf2d1e850c
BLAKE2b-256 1fe5749afa101e00a762f98358fea5dd6770127e30588c49393e591a8a45bb9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 422da50803ad191cd83e97c21127daa3b1f18d17648b4bfa9782342b2cd5b8e1
MD5 bbacfd0002a725891e40d701c5ab1b4a
BLAKE2b-256 84a4210a93942bf83498aba68335797eb5f72c226f0bd067309308341466e061

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 85982b45321a976eda752dd34db4b1fd665b75caa19c3d023767b992f34d238e
MD5 f7e80720c4f50decbd136af7c486a61d
BLAKE2b-256 cc44dc24d26ca5ee3098476eaef0c7f6f41733fe8df27b86bed125077b8ea00f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.838-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.838-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 debe968abd289f55dd9ee3d501aa93af14acd6e264050090e41d11bd8733e667
MD5 483f574b4d4dce7c8c60f7bf98e20361
BLAKE2b-256 7598f7e5b630c917df395f9754eeaf468ede832305c188ec5d1767faac3e36c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb2da74932bef74094131915b7413861ccc0a399e05f78d585584c189f931f0a
MD5 366b312f8bbc7edca23293b32e3e83e8
BLAKE2b-256 a8daf2e8342c0bf7536a8d88e5d4f2e10014cd85d16ef6ef6c76d546fb78e6c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c8a8bda486fd449b71f8dbd52b87e800f1723426da78dea92ee5f8c1d470adaa
MD5 7b8c90e29d67ae42bf6e0152c3032adf
BLAKE2b-256 19e32d286c9fde69545e06e64c699be7205ce86684a6fdd7512cc2f42add55bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3252a681f98315dfbabaeaf03256cb32b407ee460d1d795895af64bf988c9261
MD5 1ab6fe438389ad2b91b46a8339be9853
BLAKE2b-256 3b91f78c33ccc37709c7b7a0e5b2d44ccad750e0ace0679f658db4e168b5b472

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.838-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.838-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5265b85019eb18447fdd393a029dba4f2955963ada5897277d7e0eabc102b099
MD5 1ef646ab05ea538f67c5e952c370a995
BLAKE2b-256 a2ec5fe2ccd64a2a954799b9b6e13e9856d14ea4c978854cf792681b978e0dd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39e126a0483343377ddf7aa62b44a6662b24c23e2c970f4ccf2416e3389ada41
MD5 b8f1c579d8a6387c34f8725de767e37a
BLAKE2b-256 815fdf51340396bef136666e96071dec7f3714bc2f67bfce3acb3ff78654fb85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7470feff2e7d9284cd78acc5119eb385a12091c27832f33a7c0ee0cf038ec725
MD5 7a86f21f249fce303ca4aa82e139cfe9
BLAKE2b-256 09794cbf8b310aade73879902d7b878fb7c942f6327834fddbba870dcea9a099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3b9c3ad28d53a9d7e716bf737daa518cfe0bf2c5748283cd6c4a33f4dc6e0d27
MD5 4b7d1ecaab36c86e0b7819a4b5ac12dc
BLAKE2b-256 558d53e804df338b6f06218cc4df6c3f1b9c05b6b0427d73f3180e8546923849

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.838-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.838-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa57f849c4f1e6750dd4bfb091c4824757ec7da8d6580a550e9c571efc2bf307
MD5 2a1e40c8527069d832686b97ad74ae23
BLAKE2b-256 6c79d744dc55103caccf4da84fef521811b8bb0167df9aa48e2e77392c0aac7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac093cd6b2c599372beb12130694f0033d8bf8b696592203e2c4d8fc3f3284ff
MD5 59ab34a5b6bfe53f7aaa073df0aefe10
BLAKE2b-256 16b170ac3b58f4da06bdc9d6dbb352cfa0919409fa13814e118b90ab25668737

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 34cd1ed8d0dbb2638e8a3fbcf40fc16511036b47ab991bc259c56b36ca74cca1
MD5 2baefcc40a4a4f3de80d07fb8d794d62
BLAKE2b-256 1510fd1fa933637f724eb3b641f32618bd4a6343781dcf754f0e353c1dbf763b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.838-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.838-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e45ea2a281f3ed35dac979b0bee462bb533157333f9581c6e7c7f90ab5dae303
MD5 6fbf404633031a3f5566e54eb4dd055c
BLAKE2b-256 a614ff6770e2edfc8381c966a6feaca5f324b4519e2ab9841cc77c125eef13d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.838-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.838-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ddcb2ec68e53c777dddc072d64103ca43ef2be3630f3f6192288533b9f327ec
MD5 c5a7c5b98e01a442600164cfb4fe7889
BLAKE2b-256 8afffaafaeb7b779c4ca1b27b0ba0258c049748dab4c268da56dbe63d05897cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.838-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e448acd7e139ff34e1f4d7b6553ace98c735494f2e42ddb72ed496614ac9c1b8
MD5 cb9e321685935858dc989d895b808280
BLAKE2b-256 ec75d5d1dafa54f37667b8d5aafab868f6dd3b562af336b0169b86cca1c2df81

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