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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.352-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.352-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.352-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39940b9e29385dbfacb48229b751a454931cec01d4f981b93fd4114b785a7fe3
MD5 1ac11a10f2c752e31c40367253e2e953
BLAKE2b-256 0a5216f179500d664c43e81003fc03301c5a6caba7594e1f23e598562815a69b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9c4fc0433caeb46a08daa97022bab9085254487b7586b63cd1c306cfbfb5d016
MD5 14936f4bf2218568fbfb0f32a39b17bb
BLAKE2b-256 ce48b111b99e86a6a7b0039c9ce4e001247563becd09ea6bb685ffdce6f5ab2b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.352-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.352-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7423d8fadda4d2854c1565a11c3f7fe92d62af5e51cf689b4e5a44ce2cfef32b
MD5 12a2c4b3d846c16a61ea5a8d0fb4cb7c
BLAKE2b-256 4ded6eba6eda8ea52d385a43e614974dc5d011adc174f89fa3b04cb24b01b519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75e3c743e58dc15af956b910d83139af81ba779a1b41fa54fc5cacf05fc15b5a
MD5 5de3f97aafdc6881933581de013abc92
BLAKE2b-256 57b26da02a14edab750e4cd67ebaae9b9f4ccb4dc7ca11a9549eb0e5b627a0b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 411dd0adc34c374193d12b5c672936d1533364d3b7234864d756aac14a9f9195
MD5 0b4c9b228e6dfac51d45c3170a68357f
BLAKE2b-256 d12e89ce9af79c07304659bec56db603611072908ec16336c2e90461d1a630a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 330fb6df836ec1ec6b974d84c8e37ba855d47b46a2dc85725bc796c0bc0a1027
MD5 d3191a4c057abe3381182b0501607ba9
BLAKE2b-256 4f097ab8761a03afa128cf3c1b8cb4f9ac132fd3b786a38e228ac48b2a0f2f11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.352-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.352-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29731dd0463f8d0ad23e98601977b2e3ab2b6420d536d5521d79700e735c1df4
MD5 841292946b94e16527524664afdc3dc8
BLAKE2b-256 dfe6859b1af5a5bd8afc77ab8e63a36cadafaf81ac9232924cb1019eb3beaa84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64d29dcc7bd15a53f23fb141b38a4f5d7c22cb04a6fc673c6d66ac066272ab67
MD5 dbf66982e39f9ce163c86daf44d2127d
BLAKE2b-256 b978f5060b86d25715676370ddc274f94db2cf98ffae5b9519d39aa49f11e7dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f27fa3679bab8db67b5dd5294c8f03cd87e801e94d33a5379d737fe459285a36
MD5 7716aa9066ac602487a758d9c78a8bae
BLAKE2b-256 521e4d076b2d84a2a8481524b91408b800872ce76897bdffa1a163bdbcfb2d59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 554a6ab2a9df663b57f92a7683f27fa8ffbcf50a480c5ee0b4123dfbd1ab4f53
MD5 7be76d0e6260dd7c7db21872e268aa91
BLAKE2b-256 a7bee0afed7d5d47eeab78db48ecb37e8920a548e407b730c7ca412feee73c61

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.352-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.352-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b3ce6d0bf752f80c9f2261c336133c94f69a78730fc0b9bca157b1574886a73
MD5 2df448539a403afff1070c0c6f1a7b4a
BLAKE2b-256 5627b6a01c4fca525d61e75570eb27d55a6d5ea01e77eb36a4824d7049910d99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3aa74b389694d6ae761433038cd854f068682422aaad8575c483ce89f1d49a81
MD5 6e61e004e6123d2ea1194a16792e550c
BLAKE2b-256 821ecff859ffe7c7daec11836570162187f7290c77322c4c0ee3340e90b766cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4ad5926af19f11533d8035ff050770ed99189aecb1e65723320b6311ad89de7b
MD5 df273bf7de5fd4028eb8fc1890b96975
BLAKE2b-256 41874a37a10f5420539cf451a4528e214bead6f7f718103a3d091807dc95ccd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cfe5a0e1e54c71b2ae1067b5eb3c3aaa110987ba553e954809d9a28722f903c5
MD5 ef29bd76586b1b6900f661a762500342
BLAKE2b-256 d1f2b2daa998cdc6c61729a92ff8d5ff48d30f8548b903c0d330b919e444c007

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.352-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.352-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dd66b93f92f7b365b9359bafca88f2c9825f778d166d090ca14bdba6a4238b8
MD5 bf3537a9163b4e6d328796c5a3ffdee8
BLAKE2b-256 bbdf976e7473c345ead2dc574456da99b842b63783102054aa9085f60bca544e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 065441b89ca98d23ccc9a86d358085d760acc0cd3127e3026ff508c1de40be18
MD5 56ad5e87d64feb2fd16a5f4fb153e3ad
BLAKE2b-256 1a50b5088f7eb776a2562b0562c556aaca3cc89aecd6f3002be8c58fec7036ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4bf8674874c5cc29e89bc01f52cda220d45d4bb80e18130be19aec48b493a3ff
MD5 0597e97631575f27950ea479b7aa0f28
BLAKE2b-256 c742a494bd3b02e7b62401ad2420a4cb5c93201e673d492607269cbee047ca15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.352-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.352-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 14314ea584259dc344dd02fc60c4192ee988a378531294686cc8da1fd5ed8c6f
MD5 5ff77b43e5ef9b046554b8d556c49e4e
BLAKE2b-256 3f301dad567402784cbe7a3cdcff761e24e40669a9ac437c36104cfc76c733a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.352-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.352-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1aa1ca0586dc0fa1e7d1b3b63a1389f95a9df11a023bb0eaee71f8c3009483b2
MD5 6c69f5151bac87515ade47e5bd42ce28
BLAKE2b-256 b1678863406388f34ec962b82f4eb7021f07af0d512187627b22671a263a9ff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.352-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86255e9259aa292f6a65427b364c1d49cc63ef12e3764e1b5e3b5a5db8a007fa
MD5 eff0ebe3458f2e33804c50ced8d4c2af
BLAKE2b-256 267988fdf3ad8c9bb6cadc4fb187110e7d44b2b23b1ae06e087f035ef5741da5

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