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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.208-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.208-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.208-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5b7227d12ce80fcf2b636e2944c3e4f917590ed3b4b47267e9c39295297a03d
MD5 31a3487f3f21d38643a27f96ae90ca71
BLAKE2b-256 9498cb29956d24b7c41fdc6189114fb9e7170d0f04e6eeb8e2891114d0d33aa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cb04ed254f32662c698c077bc546b3b2d4b9567e53a522f15b68b71666695cdb
MD5 24a0bb53a921ceeb49d4c087942885d0
BLAKE2b-256 ae3b1208c50782e9b33d2469730668b08353bcf206098a765f15cd7d2f715409

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.208-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.208-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e4a8184e280337f883b5a347a4b49e1cb4d75b59f3174cc5ff11df9b1f3f65d
MD5 b6c53bee0f32c7bfb90e0a5f987f93d5
BLAKE2b-256 bbb749c5c9442fbda5b36d83d4f43d7d8402f439a35ecde864b2541b71ee2126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e69dcec9eabe5f632770e28130e29ffdc7aa83fd4ebbd0f59b35a37ee07c266f
MD5 39a5203d96020584c5edbbf8ef28f4dd
BLAKE2b-256 d27e171842849264d7a37390a4b104b1a1e9fea560ed865c7f01515c74df5967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5acb913846116b21edb64119d2c81b27fd9fad6a2556035aba3c3c54cdde5cb3
MD5 2cf8970b3147d831ec97fef97ca7c11f
BLAKE2b-256 3df21c51c00c405516e09edbfa285d2be48cc900cd68f7a10bb4424d068e90c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e22f2dd72a03cc324b14dde9c7ec6d66ea03fd369deeadaf4ddb897f3c141be9
MD5 05c8c49bbad7eca3bad1669d3d8af890
BLAKE2b-256 b7ddff7fa65590488edc7f71400568ad18fd8aaa8ee58ac73b90b963de223544

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.208-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.208-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df02bd4fc705abdbb1c3e588458a7db105b0c68da8499a2164746f7149136a70
MD5 7a53071d51292322890f53bb2da912bf
BLAKE2b-256 f951a97982cc912b6c10e8d21ef49eba29ba6c0217db00ea4a35e539a1c39e4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d39496164ab8c94282c78e89e9f0662dfdf8a6b9d336aec1e3cfce2eb3daf2f2
MD5 f62f7a885e46bc99ffa3c9c89351d07e
BLAKE2b-256 7fe437fead2bd2845dcff5335b8443b7a461ebe3f65dadbdfe95846d5930b6b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4163626e63e8d0ad00a38dd8d50c33d3e2988df512a5f4f9865ad9fd01f1c301
MD5 1e8c62d4570405fe35b4aa38ab4aa67f
BLAKE2b-256 2f5e1b3d60355276da324f3cf055eca34d54ade39e12e7e846da5c13b498060a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 46758371b7d180b91bb66f7bfefae310f143f85db3a0453677efbca37ece87d7
MD5 ade404dc82b3feb4f43f6f5e5b2447b1
BLAKE2b-256 c3beef4ec723c2dc3d35c0bd51d0cb08ba6cd8a2396f846a7c04721a8c54b79a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.208-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.208-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7384bcaa4fbeb67106274f54597585341457f504cbfc94396a473eba83659d08
MD5 9113f4117308a5d69d2d7d8453c47a46
BLAKE2b-256 74e79e29a9cd42f9e7440ebf624f33b1aa43542ece109738e480edd262fe758a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3151103134f0e2386448728ca15a2cdf55931cb37d6d45bd458e6058b2c19089
MD5 ccfecd59f2962e734e7d205b336a9fdf
BLAKE2b-256 7a441abc85543bcac2de6491b45b574c568120070cb240744d2c56c164eaeda9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 11528c1a46dad96e3606022d07dc069348ffafbfed655accf86c4e7a58fd1d04
MD5 98a39ac5d2a02321b2dc76b15a13061a
BLAKE2b-256 4d16e3a930a01e8e9ea5a58c888e24268b483f177d847e47085a28e1255fafba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 54194ba6ef8d156fd2293a5fb573b13a2a11db2ba005e4ed07d4d1ea999653f9
MD5 dc27f2a3467cd0c26fb5f58cee358e57
BLAKE2b-256 7c685f0399f6e6014eed4ae11126debf1e064ac0b70505a0d4b494eaebcb12f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.208-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.208-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7395b8e8fd5d68da0c52ec40284bf99c0a3065e3f12c7d7b3ecc26e805fbf033
MD5 d674f71edb11bcc81a62da2d7ac961e6
BLAKE2b-256 9f11b34b158c09e0d0c0da95c1dfa2fd819b142fe5c760099ba12df15bbb75c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fe9fd6e1dd2c1f9dc8ee5d816a60568117ebaba07c06588c23c526511b2fcda
MD5 5131bcc47be882b519f5eff8379229b3
BLAKE2b-256 137a20c4a3d5742d91f1968be891afeccf08af7933205a914be7e7e4a632a076

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e933ae1b9eac06f4bdf99426dc7680963c1b02796ac450dc288c66a19380d7aa
MD5 24f0c6abbc18183b22eeeb8fb51c1f70
BLAKE2b-256 fababa52afb1cb7f07e7ef21053ba2b56e4732da262dedabb9195ce3ad6f6a4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.208-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.208-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3bcd0abab89408c77af0a5c877ab0c20da7f0b80a3c2129ef4268059929eeac0
MD5 4e35fd381ffaf9aa6ed029de3436d1b3
BLAKE2b-256 8837a75ec880561b99b7c0a644b55bd4e7acfcb5c091aa3fe590f73528904d84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.208-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.208-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a23ff4bd9ea4ef76271066648e3fde2d9e0fd31929da7a0057cbbb35b392b039
MD5 140f0bb7708979844dbe1dc774af2b12
BLAKE2b-256 f78ba626e5637ae302299f6d2f6d60ac003dc8527a58b297f7d3fd99fbe8e409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.208-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68ed3d35f614f75d0ad4c1f1799580e057b4afa2e18f5c2025521bfc05a5a98d
MD5 c5381d8e354f29acd4ad6e70c746f6cb
BLAKE2b-256 74fb8670210c1533a99ea242635dc9eed9e7336ef62f91de375054124b6fca19

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