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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.651-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.651-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.651-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.651-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8a50e7f840e3ae1f660d90e9ce3fccfadb445bf9f15ac2d16101131c5a556413
MD5 dfa3eaaea96d87b77dc41954a532a5b3
BLAKE2b-256 837b24299e82b22ab13d03c468a7c473df0eeb6a09f96680906452591f0524b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1d5169067eee5b82f72c93d89b24955b0f9d49c30dd20f7f6e980b1fc5703b06
MD5 27920455dc2aa058caa0febf645c6100
BLAKE2b-256 bbba3183b8b56cb3d1c9fddc9f49155a0d947884f389097be4038c03c05bb13d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.651-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.651-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff3a11c8c1e734795777a8e08b3c8d33bea2a65000a05f49f8362f20f199cc00
MD5 2c0bf19fcb1448b8fe478065122e54a6
BLAKE2b-256 3ceb285eaf8ce505e4a960cdb1e3567020be0aabe24aae1ced6664183e0beab4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eaa5a2c8076f57db2bfb2b3a70599916c3ea83a9e16781a90a74f4fcb820708e
MD5 7cd04fd073ac5d6103e85141c98550b0
BLAKE2b-256 e0e899b406c4243bb7a8324bfbcf996957cc6d9c4752ef842f1e205c7bdb5263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 089f376985a87fa6c27edbd2171d156b47c3f00187040e8d3372feca7f90112b
MD5 5a8e698d3fe483840d0974617fa50ec7
BLAKE2b-256 b64bc957970f945282bad96c60a39dc2c776689ed641a390f8652232601646b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 602e6d5a8136d94a189f2697c6b01ddb1241d8eca14e748f4de0a4255662ffc2
MD5 87f87a3238ccd6e65d01a61d5adab2bd
BLAKE2b-256 1e8512915766788b5b316a0383a6f8fff905c6b064bd568c86657a8ced287030

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.651-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.651-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9133e70cbc0f6f749788e7a7d91de173059f2731588f2f2786fa43ff0ffd7f68
MD5 0658b32f81306707940890f1db55e0d9
BLAKE2b-256 0b9dccb15bbcc5ca3cec25f52f3dd4478de81342e020acfe569e0b1377b22855

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0745ed7d2cdf4277d12de1abf419a91068dac982e90741c2f7674af0703b0a93
MD5 4ea0c013c7526df1e1d9872d91645412
BLAKE2b-256 8391877a3c489d08e23d1cc9cd16557f3498d8c00b621695b6556edfe7f9ab99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 032da07d16431fcf9ada8edcf8e7e82a98a2bf84dac3c81530b37b456689bf57
MD5 697a9d1a1d0dadcf54b414ff24c8c127
BLAKE2b-256 42b0f9b41bbca67945c358c01b6dcf42cfd4ac448b79e0de45992abf9a56bb3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.651-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6283d4ca5180d3095cbbd0e17f9bbaee3388059efa6ec3d4d79970b5f02865fd
MD5 87dd56eaca65bcab476123fdf398bd17
BLAKE2b-256 01ea8624d7a61d5caad7776c8565b521c769988e45e054cddb5b895e1adccb5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.651-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.651-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0fede3091dc7cc132aaf1b98bf9c393557505097d0977c93129e34d2d3a9307
MD5 7f70cc330de109aab1dbcb312227c3e6
BLAKE2b-256 bd7dda077ea2044ba77b67bc15e6b8fd3593d5ba31db9314a3c043b92e9b31c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c994a2be51f8664849ec5cd05d6e8b2ed3a2c6257818b368bcd4195eece6cd8
MD5 219cfe45cd39c5ea099bc302be201ec1
BLAKE2b-256 8266ab4c2c194d4bd46bf354fdb652d6ec80e7efe5853a1f639e5dad71b11306

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3c04e6a9f17d5931c248926f47e9679e4511846bb34e197c278e0530a5b13e98
MD5 7f50bba6c871d44830645613118a44d5
BLAKE2b-256 3f0b666e8d365575284087490bcc9044ad16961f03dbf326ece605f84b50726e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3191399e9eee0e23a0dbd9dafbe79d3bc22d78730b8caac1112a7fd86a299fd2
MD5 483807ca30d4e64b2308ae3fe8b2a04f
BLAKE2b-256 0a58c527f4a69b96d300339111d188d18698977b6777126b37eb45cf83ac9ad7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.651-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.651-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3ee3c884ce4def4a11f93fc4a2cb2cad45b452b001cb6bd42e8f5c8a635ff73
MD5 c67cf46254bcc05453a622a3098e4437
BLAKE2b-256 74635fc0dbce5836167501073a8e0a7277f9fdf0cb8d56b6963a9d0d2a3fe73a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61c7ea5685e7d3365b96a20aa707a766bdc75177d853244b8ad38575e2d0d1cb
MD5 f1ccc3d234995f3378e0aaaeaf1de02d
BLAKE2b-256 809c4ed17df6faec875e2b781183abb63e5fde2f13fe285ef8c4e34c83a7f93a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 257e81799dc9a9d423a512fda9e4450e8ec2f847a961d06a49667406e6be1c22
MD5 d788a23a545a50777bb84d1988dd4428
BLAKE2b-256 907622dd55be1de58451602a46b9e946075ef0f41afd0763d4973a7be83c97c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.651-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.651-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7a15536ce141729d292612fd1e8aa806d7645ff464835509fb61ddd48138f8b9
MD5 9cac42d00f0ac4d6fdf7995c57c12f2f
BLAKE2b-256 8718db6aa9c399bf0a8066261f9f8f958498777f1175bf30b82321d7e678efb9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.651-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.651-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66f52dd0a637e7c4775656db266f6ccf75b190802b7a392b0cedbabc8e284fb8
MD5 66719794377b6cef8e9385a02e0e498c
BLAKE2b-256 2d4c35291e7bfd35bbfd48b50b31b817ea250d28a844b4399b6d58b1e4bef84d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.651-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de00261e631983f9c0bf48d4b69e39274091e215eb3ad02972f422aa7382f2b7
MD5 e6c5c05704a37a34dae87ee4cb6e6b35
BLAKE2b-256 953724839fd61145f0965f1079ab6316f78ce5bd92cf974e0daa1ef45d487e1d

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