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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.80-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.80-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.80-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.80-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.80-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.80-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.80-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f039887de1d50db642dbf25965b4e197397becf22e28a6073fc82398a6394dff
MD5 29aa5cc3dd02ed91c8ab8129270fb7bb
BLAKE2b-256 e172cd40cc28aab3fac30cc55be356b12d608ad208b45bab0e710730d3337bbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85436e3de4d35c52fd0856d1463fa8e1c39891700f550a912f74b71e7b1fe3df
MD5 4072a412aeb73b7205c4cc5752aaa11e
BLAKE2b-256 3df4267c83d46f286be4583b87f84757b98ab7feb9931e978a70beae333b72e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.80-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.80-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 426988f6c974ba87db272e046dbe63b559eb9da8da7282f0f7309bbb89a73a58
MD5 b363d4de5e3050b34c50b4e9715a5896
BLAKE2b-256 aaa920d5ffc6c330d264a485d3d37df33b0ca58c6c6c8949dc94b8a955fcad36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.80-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e854572c0c59d94b2f88ee147d6a7996b389ae22d00cc7b97e3e342e3aa49a06
MD5 4e7211a50a64bbe7af5f37c61852b5a6
BLAKE2b-256 8f88776339616891fdc84c16cc41caca0680d76b149bb8ae74bcf0c28ca851b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.80-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b87cbccbbed4cc4e4d30ab534fcd7c52d9ef1057ed5b396e6840789472c5b085
MD5 50794f42a55b053a8dfea543decaaf65
BLAKE2b-256 e3a6ccd1578c5a4be54169c061aa2951394617d3ddf5dff1af62870c9f8a1afd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a1ee5ce80b1622048aa0e2cd4c409607d15bb6661cc0c93cda23d4b91856388f
MD5 3225a31c7d427daea9132d922238f063
BLAKE2b-256 ab54e9b35127492cdfbb0c5791cc80f540cbda085eda8280883f9e7c8bc2276d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.80-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.80-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67f5f0baa962256a3e40a5452c0302206c9a8ed202aeb94495882872e406f03f
MD5 074ca2da134eb184112f66e5c44c4cae
BLAKE2b-256 56cd14db11c1ef39f5c725bb4d7ba495ce9e3bd7b1d4159a58573ee1ae6a4834

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.80-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8287033cd15307bef6b13666f0964ec0556bc5cffb36094a5a6e8ec115251b4f
MD5 700ecc10bcea7a4fb19e9a15857cff4d
BLAKE2b-256 a83fc7bdfca9a5e22b1b7d95673c2faaca2b61fb79f3fd5e1f278e0567898234

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.80-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5304833661b93cb5ac01b184d6368056483a768790a5e06ac78594a0b236ab76
MD5 1a3e59eaf46313495ce8a9978a0d6645
BLAKE2b-256 53a49fb77d57602affed7f832a35efbdafb28d1a3285e3a92c4237ca034d5f72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c3a3012f77aa4f05db586ccd0bedf706aa774aabd0ca26434cf4c2c1ff8037e6
MD5 a7537985509ce795cf44a7a4dbd8f39a
BLAKE2b-256 ff3d11934e8dbcc058452759f5b2e158f5ec615d6e251ee1dc747750cbb794cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.80-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.80-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b148abf8437a49e3273175d9d0884216782057fc942d133ddcf4e89d91f8ae2
MD5 631c233f76d0a7efd8141b9374aca51f
BLAKE2b-256 7d5bdf5d21b2544bc4e94e15394601fb3b3cbe1458a4ef5c78d5a0fbf68dcc08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.80-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91926daa0e09f50f1f73e27d00a841ae5f4b1530661169dea51020854c889070
MD5 e92e6bb661ee43fceceecf350311e92a
BLAKE2b-256 b1a231ab2c3a01817a19ba52c0398f617da8680a286bcc1237a30cfcfed36247

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 834d571243032be0dce350ecb81de8fe9d1bc8a3258d636e8d52f23b337837db
MD5 78894b0d9675dde88a5ecc35c6ae3acb
BLAKE2b-256 1b042827a70ddae8d7dfa708ec7717f1232dd6c74b2dd245338e31f5bca955a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6ebc4cf318cf4c772830854e6f513a2608f1e90ea7b10b53b148cbbbb7031bf0
MD5 61029ee0745bf3439c17ecadd09969a6
BLAKE2b-256 1fcd6d7a7e42469a9fdff57f7f6a8fd7b24909151910b05c6c76977224112376

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.80-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.80-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 872f4cd910a10f8a7247972f31a4eeb9ffafaf7171099f8a154c2fe9678d9ac6
MD5 e47cc3ba69a51461954a48b0b36208b2
BLAKE2b-256 c41c199f0c1deec3bc06ed1f6b5b27a1e69107ddd93884bbe46cee9188b405b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.80-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c997651c673143e15e4bf054c793553964569824b59bdeebcdb8cf52c67172d7
MD5 140eecfde125520df5e59113ad90cb9c
BLAKE2b-256 b29237f17b80e61ddc444606b27c0be0597906d2a5d8dbc86b99b8df1f0dd1b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aff11f1b78f03cd2882649eddc13a7001c75e79176b1b596a6031c74e7961557
MD5 bcc0808c15cb97348af0bc500f803883
BLAKE2b-256 1f881e200a14abc9b7ea64058f49c077ff9955ffe9e36c8310400d9fbc4f59e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.80-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.80-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 32d2095db09a6fc316102591d72dac8dbbdecd779aef7c775c8c07ac1bf77938
MD5 e71fc760ae38475cbc38d4b461e5c5c5
BLAKE2b-256 df2d5c54fc8e6d57cfa1ec2207df63aa8c003c3d96f28194babd107c12c3535c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.80-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.80-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f393166e9f00810144185ed947041d25e5a8c606564655a2f6372131c0feea13
MD5 b7161642b7e6907cb43d49ccb1a138d1
BLAKE2b-256 b23893df663c04ad8095531ccdfc30ce6022a07434b95c4a4a5f881f5e132d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.80-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 517c32cab8bb4ee076acdac248838b3383e023801c60749c3b49e8703eb582e8
MD5 82cede1181508f270d8e6049677c0dc5
BLAKE2b-256 f9dd3f648c4e34d0b3df2a30fae329dd2eaa1be6fbe00a9bcaeae7acaecb6a9d

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