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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.648-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.648-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.648-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a193398f3abd6f3770bc32d71f08c8f1c4b8be0deb61c8a353c803c8bb88b51
MD5 a2db7814c7754b1ed20a4c3addf4597c
BLAKE2b-256 28de6efe9d3aea95c62e13785a9720cec1507d3b6f41f7a3bd48521a9ef9b2fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 66120a18d6a8b812cca4b6e7a80da07b9a3d2fa1d8585035707a722e0190dd3d
MD5 d505176a7929e386f3af987b727450df
BLAKE2b-256 31e601e610b5aca15e33355a28102584a00e5a3e051afe890adac2d084aec8dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.648-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.648-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5a986204987c02d4c25cdd4f2a871f711ffd5de70745703f7dffe37d3c427dd
MD5 409128565e6cf2a9d2562d3ff692d7aa
BLAKE2b-256 7ea24055b72e4cb95d962b5306af30b877c03070198b1db27d90abb3fd28b10f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbbcb6ccb8ee55218fb77de11df147dea400bf980e1c47bd7cf73b93662a2284
MD5 2f20217e56dcb16df0a43c980086d022
BLAKE2b-256 58e2cc6fc955f0635d68271cd0062289630c8e215e965650a964f1a351576284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 059ba918793572665b205f690f012175d5a06f22a0bfb1ffcfb5266be3af3ca6
MD5 ae765449b729cbbe713957f541829372
BLAKE2b-256 97cd1ca78f9e75af10cff0d64da4f8c8d86783b77d811b061c235f076057282f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9e845594ea87acb88e0bee5c1efdbdac92b261c05b15819ceccbe5a9ee61906b
MD5 01586878e4d2a273404fedc4f690da2c
BLAKE2b-256 8fce246278627e8fc14ec7d105fa76798f02188741a1fd286669cc8b39bc87a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.648-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.648-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb0f2fb2a328485671eaeb278e9753a866ec8ea84258aba461e5541fa7f15e99
MD5 cdcd3dfff4cecdc1c56ac954c070210c
BLAKE2b-256 a7f110b8cfe0cd4f09eba1d1dfc64431c798594a6310a9cf8d199286559b86ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d94d5dec6ba4f2e1a921d80bbee402f439ace4c17e638eea89a52299c94a3c70
MD5 2a39ddbe6053be68e194fef449e2d442
BLAKE2b-256 58198fc7a7c2db8515e25d6b23f5c97db51c6f5948b5cd43c13beb61f986ff51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e4c5420cce204d55bb9573df044544b6adda721e45ff0f13d8c578e2b3d12434
MD5 80ed7cdcff14ed38e4f8a7a0c4f660f2
BLAKE2b-256 94339807aed8623970f8ee460adadbbe103a63feaf3b8ee3804927a726631a34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e5c4eae3aded9e399594d0405b5264abe1324e7cc39fb583686bf480038af02f
MD5 bc5759b8ba4405723d8dc79ca42cd1ea
BLAKE2b-256 084367f16889325a2e760b22db786661098801d370fa28f269984f060704d946

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.648-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.648-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2994997e18dc535c64f3bf37f5435d2e1117681e9d740a7ed8779b4e2cfca316
MD5 12615e1449059e90e7a189b7c6737d87
BLAKE2b-256 696a6abbffb463accb825d0546a25b39a9efe43c19457c90e7901ac383fc5b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a029992a046d3b819fbe6cfdf4492790b91ea8db80446da457078bcee1f4881
MD5 e7aa7f11bd3457eedc2727fa0a04b47d
BLAKE2b-256 668b1d97fd4ea7f358a0ea8605036b4649c3bdb5ecaddb13f41d73f5a0af1967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f59717150dc2194174924caca0049f6742040bbe5dd7369736a1d4c8aa0f5bd2
MD5 7f439cef47d7c08d1d96f04a723bf15c
BLAKE2b-256 4c631b3e4aa4d26c589de5ee4220e564b72f266e0f468ad4aecc369dc9cf16a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b0af477ad4600c18cbb03ea0c052e2de7d407f3949be6ae1f81ed13e8be97836
MD5 0189dea4cf942053e06b0388c0dc6057
BLAKE2b-256 fc6a05ccf772be4234452c5cca7d1445d18753807267abf75fbd7f087eb6da15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.648-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.648-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 725fa71c7115ac46122587a1236fe53acdd33e93956d54a396d1ddf130725a0c
MD5 dfd1f396916d2be7fa514864ded4f415
BLAKE2b-256 e2f477a239080d89d8357f344a11bdd080077c6f81e1985196e0b202a31550c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac2f3487c5a5a6b2a20275ef4c38b1dedbed0425703732c44e1299f72ebf1e57
MD5 241db328d97d2583b10abaf37c47d3e5
BLAKE2b-256 aa8ac92e1fadd5582d52626d8c72c3610d74c7b3dbc5e4ff7a0a34e5df3550eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 87a7ddefc5e051f3d600f49d1de4cebea43ff0432507c8a3523167e7ef0f48f4
MD5 c471c76a2df2ce8647d99a306b24f4ba
BLAKE2b-256 7b28065538c3d2ced86e1a8fb5fcc66211a20f923a1c1a643dbd077fdd2ff393

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.648-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.648-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 be796e8f5adcf58094da1ab4773c9e8e6a93eb979a7e4ffe74162079733d8325
MD5 52a19301fb3715af85f1899927c4c5d6
BLAKE2b-256 6b282b4141713719b81253348381a6c62537e72da3fed3f71bdd3a2e83b5cfa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.648-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.648-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2cdaebca10c17b680f0e753e53b03e1e00a5c0ef74b1af6e8190715fc1224ff
MD5 cf0f424af794d96b8bb99b749511369d
BLAKE2b-256 1a62200f0b0fefddef71cd5f1dc9764f3ad6051ed4760bad2f03ec37e90ea144

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.648-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b773418849bb0f3906fefc28d567956f3d3395e02f70aa59235ef9fa22894e76
MD5 340c619f9394aa3c6c6ff6c69c3546ff
BLAKE2b-256 308407a358f19f77f761da4822f8d71db9a77378a0267ec7faa3b80efad879e3

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