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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.295-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.295-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.295-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a46a20d77118c688ee3f2321d075bd8de3b577d32daf63a0ae319d02936a4dc6
MD5 b81debd5b35ef41c7cd669489869d39c
BLAKE2b-256 4e74e2e5c1075630c688080ba15af1aa53fc3c97ed503de76731341f1522473e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eb6ad699ee5a3a5c010b09b8bf5b729cefcad1d4c2b4af5e6a4e642bc2cb5cf0
MD5 66dee5d477dca47d484f620bca3e61ec
BLAKE2b-256 1777d78abe863efc2d74d793fc51be7b8ea841172049869787105c75a5eaa283

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.295-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.295-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58501346000ecb06d421ec9d7b41ada75bec0ee5a137f66745fa082c8d335816
MD5 6c3097e0f7d92139c1ed47ec6853013c
BLAKE2b-256 474d36cf4e40ba10762d2582488fe96d07bb3c41d6cd6021194450f8da0a11eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dac74a369e0fd96ecbc5909525880d46c4972dc7e93a2ddd025c1e907f29b6e
MD5 88278d1719ab64e4cc6f1babdecad53d
BLAKE2b-256 4792f8f77bd51e94453850f772df42e360417d26472502cd22c91567d12c24e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7eefc5f628a930b35e25ebf109873f2b19b88d08a2dfa03ad6edd7af88c378cd
MD5 ace5c1a56f81efa778b3f9cd6e3c67b2
BLAKE2b-256 8018408b56977cfaa31539d4d6ca62a710c1313bae44f2b44e62b8800b5eed25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 445c27cefa0ff5eb9314c662831854bae2f619471de6e48a23682d6baa2ac64b
MD5 876d1db16ab84b9f486de062bb9848fb
BLAKE2b-256 86155e5e3b2db5bd154cf73be475467d31b9e68a93973cf11839d2b67da26b18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.295-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.295-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a0d1bf9296f45aefa36e51c8cc0db774d2f2b25bb162a0629cb1645a844dcd6
MD5 25905a29b57cf4da5c980fd657a6d343
BLAKE2b-256 3f53a0f9899d2be6be1654fbf9d0056358b51ec7c1c3d8d20c8d53766b0d90ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6843040599ae16caded23ba7d88f4adff494bfeebf19899b6876524148c9da7
MD5 07696ae33c953ded12c0d3ace8faa990
BLAKE2b-256 d33aadc393c5bb87a5f0c0e9e34ed4012aeca81a1503c54dce628955bdb5e595

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 631ccee89f4b8c2eb2b0b957fc25798e5198b5676e64a0c3abbc4044e78b66d2
MD5 8d48f1d5ee5e30394cadbf564d273edf
BLAKE2b-256 f9b4d29fe40409a1817ebd2289479a0074bb4d4d5899649621dc5a7d2a02ebb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cdc6fb14d660214ce7ad37bbd811161dbf18027cd53dd5bd018d1afc67f88616
MD5 e9b552a0598df050b361fc323bbfbef8
BLAKE2b-256 d76103c1d88b76be13673937c8e15b67bbd66f1bf170aafef0309fcb2e844886

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.295-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.295-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0580f3d34c3fbda327d4f6f9694fe80d6be044d04bb4674a6d38932e806e74a
MD5 dde51d618213726494c2df4b4dff4bf5
BLAKE2b-256 a8885df288f859f721b4b88b2432fa90d4a3a81013c16cacac7962d3ce70bf3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9eddf05670a6a33e7ef50555a1d1dc4df53ad1dfb8dcd3394ab6944b4891c456
MD5 57413924fdc3eb490a03e5d6f62ecbb1
BLAKE2b-256 036dee39f4badd754745f6b6daf2eaab954a628e68c86ed7009c0e5e87b30e01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a242ca6b63104cd5f656cdaa164b935a57808464a8bcbc113d62280f9062a181
MD5 f1c8e958559b4f7fe7f5abeaa927b531
BLAKE2b-256 dfe384093abe940b27208c056df0117158fcfbf0d107799c883f9951ac7f9ade

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b87be0d63c538dd5906cd8c8d854a2df48fba4b2fdc96224db0ee198df40e516
MD5 6b3114facefa3a966da8f376fad67f93
BLAKE2b-256 6de9b94f8c1b2fce36296842c5214008d7aee39a755fa36bd2905fd3737f6756

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.295-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.295-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79cbab3b228a47e7e2fd916340014facc048839fed4d9b456edde1e598aaac7d
MD5 665d76026a5f8c430719820301280067
BLAKE2b-256 332578c4130c8310179d36ba8b4f31eb140080b6ef016d421c8b6f32f33ff2fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0866e2e0a8d9f40e688a999c7b4b15aff4b19b94645c84277a1ea0e60ba4894c
MD5 058596898e9e85890589963ee7cac854
BLAKE2b-256 82315fc284cf67f9c657cda119ad5c9c150107edd641ba46ac67b52557ba94a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c4013a452dd68402217fd0d5dbbc07ddc51844d772f68fa60bc1ff2fe78a29b8
MD5 211cce13a6373148a7feb9abc7db77f8
BLAKE2b-256 af01f203b37a8ce47fe9e35149a287854b3e2633d05c358aa6ae11a5b617369c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.295-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.295-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8fb5efad58346e04b7a5c29f5c9329842a1eec8ad0acd60756d769ef21853c21
MD5 0347268ac32e768b95d61131fb6a5e21
BLAKE2b-256 a4a9c5bc53493de2c3b29e747f0aeb1c891bc2454dca583471044487cfd0830b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.295-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.295-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c4c13937a7789e9a18cb2888f09cb414e2d7b2f5cbfc4ccc5645b1f86e44cc4
MD5 db5996f2a7347c2f68180a5374341313
BLAKE2b-256 2c39b229ed074e780eba6205c07de7b6337058bd8492a6a675a0a57ea1f9cb1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.295-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad054220a8fb22ca36e27769f99c8b9d5a2665018fea519aba0489b8911ae99f
MD5 aa7ee73f02f4c638c36cfa62226120e2
BLAKE2b-256 5cce15c9c300f803f0c25011a4ead1a5800a6c855c0a291989d7101688062b32

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