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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.585-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.585-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.585-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 38987425b859e8d1e7ca4a70a4d3b332995be7d86d29841a58adb55d2891ac45
MD5 6ab4554b0294a4557f0de3eacbb0a074
BLAKE2b-256 35c5926f53cd3cf71a4a798b559ae361026bfc48a9291a0e2c0fa335746b5275

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 efc433ea7ebe0c511293a7e9cc18af2413a1574e2c018668e03af566fac15586
MD5 c2ad55410342ffdb4c669c73ed1e9fb4
BLAKE2b-256 d0d509c03da08787eb5d62703f4b8329a7ad1c4c50040bf0f689879c2aceb90a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.585-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.585-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a7e150584b0f9a37825d9e0e31c7cf99ad7bd31ad7183184b05b52c67ca44f9
MD5 412fb2c3b6f816e28e2545f35c6c0ac9
BLAKE2b-256 0554882e12d24a016a0f858bea6b92185054c815df42bf542234d31bca6ae88e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ad5a5472c0df519528b6adc8245ebaeab79b661fc15828c1e2a5e55df09923b
MD5 6ac2ca4bf3a5e50410f2dfac4a4833e6
BLAKE2b-256 54bed21328c5f2837c4850026fdf01158c7cf36e00040053d01d664e4ccee840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9cd99f033a5d17be8f1bbb173ca1cd71583652c187cde502d9a857a0093b6c2
MD5 bdbe5ea161bf1e56503a9e078e7521ae
BLAKE2b-256 676e1dfab547d048473ebccdcef8be74d92b1bcd226f961b88db7417a396413e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6b1c3e1648efa3cb2b88f6f1c64363050e0eac6d67dc23d4d0898a821d4740fa
MD5 20f4c28ea6102e1ffae1bcda992d4e6d
BLAKE2b-256 95042ed0e0f8e254444577fc5aa911ef0ac01298d236e30c2a5fa06a1b52d83e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.585-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.585-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72f8b39a185c3a1979b06b356aed8b4e4a59c835dd117e8ab61872be7ada1eb4
MD5 1c9945c9d110798e06a1d6ec4963eef3
BLAKE2b-256 5c26403034928942125cc8401e662f507cebc478bfca2821c9d1e6a754565af9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a5321ca8f0cb691b50bf3e8dcab79f4b5f1b2d950847c5ec2b7ded4a6707b02
MD5 ea08f2f65d4c3ae53f4e568f411910ff
BLAKE2b-256 2404a6557065d6cdaede3a83f20dd790be928800b438bf37594d6108266b8d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5c63f609a1e333a35a2dbf065e192e1b995941eeb1668eb60054c648933bfd2a
MD5 d1fb353fd4e59a51fcbf45adfdc237ec
BLAKE2b-256 c1d27107c85128533d1ed02abb402eb3a9603c29ed86ca066926265592c5fe6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 46fc2e82cbd7fa484a833812538f84b4089826565b8361081c37d89e0718b67b
MD5 2442dba1833934f9a0d84bc4f0cbab56
BLAKE2b-256 181a587ff070da909d981c228c45d9456c0f288c2b700738e92cab5ef23c1c1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.585-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.585-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03c4cd2e225efe652d26803af0d8113b038eb726c56a8d1f6c4792d0cdd15e18
MD5 208487d19bfdd44e0d9ea09fe16ab330
BLAKE2b-256 165790862ae513703eedfd148abcc178636c9b94e4effd4efaa5d5e48ac11ba3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9d11f63eece17add0063a902db0291bee5b41f3243cae6f040f8adabd7933f7
MD5 5ee55416b5fa7a7cc227bae5fa0529cf
BLAKE2b-256 e56ea86f82a23cc1a7a57b977e43d547d45c1a51808ac23e481db17198b8c2e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b6db88b7c5a97e5b9b738219f6ceb2f55d1db0dd1622dc7f8aeaa0ff14cef622
MD5 7c02be62dfb532c56eeb4b753e4f17df
BLAKE2b-256 b1489011fb593a4e9b4867c1bd359d8a17aad2d653bcb673976e9aadf1d1a4a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 12a94b1ab890df63c2d29b5d03c8764cc131591d7f00125b164ec1f053ccdae1
MD5 fc8993d29dd1cc4cfdd88ad0d14144fb
BLAKE2b-256 e548b142b18ce97052fb722c2828ea71c4ed61b2f5bbec4a7acb4dcf82468a56

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.585-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.585-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 82a96ed3ed1379166d2e2f132de32ee5295ab8429c3438b80b76a827793b1e04
MD5 8215fe80e94b6b19a9bf48cd261aef08
BLAKE2b-256 f7289bcfe5e99f96b14328ed490dd68fa714633b80efcde0498ccd55ae8ac7c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 369aa19134f88225a70772bd14331ab9e418445d5f9b09b90014819045f55ff3
MD5 d4160e9795fd700d8b46b3d182cdd87e
BLAKE2b-256 14a01e55dba6b4b078bc6df2053ce400f9e46388d8ec1ecb60d37f763af9bb27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cf9472bda5d1a6f97fdcafc7373f59fed4c13c06f1b9672eaedf8f24ecdac872
MD5 e723f8f8b08a5c671e9e568a8f418143
BLAKE2b-256 82ae9842fde0b313ac9f32d0cd42a1d4bccd595040eac55c31fb87f13d085c5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.585-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.585-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 76d5a568b1659666ee37914b83d398a4ffedf9627fb17311e0ac92706da512f8
MD5 7b7f1c30f1002cc2622facebb1c81855
BLAKE2b-256 4735ca848cb2f3634e3d7ad80dd912cd803a14e8dff261636f20328e80313fb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.585-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.585-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9fdae0af380dc427d37b22732e43f13f24b0b516a10476129cc43df9c697118c
MD5 fc8c5abe5b5b0a056583d149186afe79
BLAKE2b-256 13e69a1223da17d19653d48691e4b016ad0d6808e8326aca4fdb1ccfaf445e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.585-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3f97ceb40c12660001e37a8c807a5da44e72e0b649874f7ad0d4092f4594e48
MD5 b84417efc9f501f090aa83742eb1687d
BLAKE2b-256 d6fb3c2b1c90f22d0923be4ca6b69a910543ef03b7ea21d4b9ae3bdc107ecb51

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