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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.251-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.251-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.251-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19cafa6a20628567c6e97b7754f3c0c255cd541453cf6e9f6135439dcc33a91c
MD5 49a079433ba2532c589b0bae544efea0
BLAKE2b-256 e62531d8e96350056f52b4299bf0a7fd92313349f0a7a5fab6d04bb96c157faa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dce996acab787519e211b20755f2f463ab2b2b1d9baa2c8851d6e1d1c7c83e0b
MD5 e56ac2c91c3806496c4908098cf0fe40
BLAKE2b-256 8c8f0b58a1a0c5547009d4963904ff8534ff38364fbad87392ad15c85fa7d1e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.251-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.251-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5faa7dbae271e0e26458a76186adeb29312da9b4f40dc23d698ad16e01af8519
MD5 8d6ccf2d3553ea6b7afb95ba2995fd7c
BLAKE2b-256 9e23a5df4869b4dea6a408bc81775afb7152b3a29b3082f47ec36d4c9e79501c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24adb62cdab0b5e6f4ea1e3e38118844fe1ab1e089ad3b3aeddbc5e255ac5e49
MD5 aa7c1bd0b442edf5c105e61f5e437a22
BLAKE2b-256 d48ed16ab17a048453657886456c3dabcd4a007844ed3479a6ba8b199f713fb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aff1b62bdb470f78785c959c408b627fe04df37c2dad1e84e0c5b56ef29dd0fe
MD5 1e0b609e0aa4e6bb0c96ff08ad4d1396
BLAKE2b-256 f6d5638d2512497b3b6683422610a5c4f574eab365ad5268e2128365cb06bb4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5fb559211ac544b0fe1c10e013aaf1f9c6c3adbadf803c7a1e933cd29593cf95
MD5 25d24fb853f87b139cf0690cae47bc4b
BLAKE2b-256 e6c384a7090fc598e9d10e108284ee49b2ef7aa829b7a4c81fce004ee087ee2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.251-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.251-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 739cd629fda1f026739245288695158265bd98ea5e3551aefa80f6424fd98c26
MD5 e08fff359ed0e8d3325c96e31ea69ad6
BLAKE2b-256 3a31c5230c5126e00bd7af7fd67ce254329a08253d250546933a42207e66f7ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adf7ad97074a6e6bb55b5bc6394b3a410ebe9e78d480287d5c0dae69c07cf6f3
MD5 4ab6cafcd14731ce6c7300f235abaf5a
BLAKE2b-256 347b48195a5a070a072b565c264505cb886c391a7292d4b6b941c0a3b1a383e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 30cc29fd0b910d9909765e1c5a29080ae35cb95b4f467c2cc56a9df6d6e86950
MD5 08a9650966a38b3760b267341eace7a9
BLAKE2b-256 ad1010bc0ec36abe31b70365978378462eb0c9ff89a8b6d37a1e752c53ce9ddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 11ec82f3aafc172bfc05cfd2f81e56a0b7dc78ed5eb414b9d56222c1a79b21ef
MD5 cf4799fcb8a1e96b4ea5b915c2cf3dae
BLAKE2b-256 c40b05da7a4b7ebbe298f6228422623598e5e5acd787e94b8f0f26168ae8becb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.251-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.251-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f5fed3833f24f75c85152e2092d5ce9817ec735225ac57b77f84e4a93e325bf
MD5 4e5703aed52eb6e2deb3a333f8786e0b
BLAKE2b-256 cc1a168bd0169ef5973f51c54f9582ed8889b8cc3c18f7ca7bddea4e606b8e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 207c056af8bbd0bbc19fcd7ee2ca3f8dc04ea0d0e51ac920e6cb2fab3885097a
MD5 45949e2c244023dca7d7cf3f3fd5d711
BLAKE2b-256 11e704b14f39aad068dbf5e5d1a51314940afd2779865443320e44a3b4c68751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d1a4c45a1a04491ebd800efc8685d30c35fb6e503f4781f3572416a3efac581f
MD5 dcd8cba4193ad1007c5e667a484c1918
BLAKE2b-256 6cefeb91064acccd7d2c05fb36650d1f50ed92fe20a57baed401c91cb7dd4e67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ca021acbe53ef95a0ca8cfc4d9d6bd5215d406aa4675516d08c94a08a93d561c
MD5 99e61fc6dd1f867786399f13f936e721
BLAKE2b-256 31b0002ba1f8154300ecb1130717581cecd274222741394068527d3f5b9940b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.251-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.251-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59df45b13c76b24eb979dfef42ce62fe61fdd9892d32e0786c1c3760eb02c5d3
MD5 889bbebd27d3a32c36f59990690fc310
BLAKE2b-256 ca9bb379c20b3909040d62fb840870675bbca1ec6b31de733b0ea69cf3357f57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad4a9b96bd84571aeaa5b8aa5ac3afc19fdbaa691853f167a000f330f549b87a
MD5 c89a8296b5212a3a50895fbf2ac64984
BLAKE2b-256 5b3f0739e9872f687fd9b43ad27cb6c1cba6307c8bcce8b1aa4a1fe070830369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ff4b76476cff0d359271d6dcd72fd769fa283c40da902a78b3b7f4b31a615a7d
MD5 4a94ff579228afce0e82cb54e59b55c6
BLAKE2b-256 8ceb4b5e0b774f367580aca834350be2cac366faee5bd6cd7d623d36f352e834

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.251-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.251-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4785cb9beb8309286c87c799ce55eccb3d03b4d94b7c4c64b2725a27139a6891
MD5 dc7b4fa837c57470ce77f2df2e7c2555
BLAKE2b-256 4ebcfa9676d30900a37854835ed3d28c2ac80f029b3aa9eb2f47c4f30e7a2452

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.251-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.251-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99b772df68fe2be1e71f61165029daa89efceab86167e53a33156292ac517309
MD5 4f08b5e425e2c1769e2251097215b0e0
BLAKE2b-256 126f678c9f310b810849cd3fe0188cdacca7c656a3a3b45aafd2abe5785ee895

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.251-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fdc27384b9f859b935efd5b2753de22f478cff0536bf7a9c31ba3ebfe9e4af3
MD5 09e774a22da7cf2f69d3e3e7cc3b5628
BLAKE2b-256 dad38e787b8b42f84b87aee2ffce78193b4c6df31414b66b4f32d9b0ee4dcd07

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