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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.588-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.588-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.588-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d4a395a9262065baa7858401d526a479535ffdf84efd549ac2f083faf2f34d06
MD5 5f0909b5dc33ca03d5bcdc00f6c711fa
BLAKE2b-256 6bd7537e75e6c07677dc2260779659499dd9f355cd0eb832a4afd674e26c5658

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26ef30a777573684a23b2bc90a335e273c5f5647fc300cc918f5c8ea6866f77b
MD5 33c4fd2455daf83458d22cfcc1bfb0ab
BLAKE2b-256 1f297bc889a2036e443d6b069d281157792f1236d4388f487244feb71cffe094

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.588-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.588-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b898d78e70f10a2ea85bf0d42e3547e4c336c1a3e4d3b2f99c2904145a051712
MD5 d1ccc286b9c3cdfb795a665bc7044cdb
BLAKE2b-256 45a5f035e9c6e375aac8dbcff052c19039a462617d96f0395945b562d4b2e07a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 968dce4675cb40927eb1b6d0d1f6b91029ea71f4cbd5f236f4658ad1a55fc086
MD5 4a43a091beab15f8b17d152c44251b82
BLAKE2b-256 1902a5fd80b89b728f729a1e041b631adbf3bcb888352182dc41d9f0429ea40b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d7451cb0c88ba185e82ff98a375d141e8fe3ea61c47e89fee08d26e23a31e0e4
MD5 ebbcf72bac7bfd469c799da1ead0f6e2
BLAKE2b-256 08f91b303812b4a4384eca413ea87229cf306b9deb26fd7bab716c697aaee498

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f3fa632952d393abf94957b3780d8d8d4f1e8ec3f7b21b3b67643c8e54a4b1ae
MD5 fd48daf812cb42afb047bfba9e1ef3e4
BLAKE2b-256 32b194b0dca63b75da159b561e780eedad3290f7b5fdc561563cac1548ccb387

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.588-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.588-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9c1186c1f1160e4230ff0d5fad96045967594339bb916069760d337858b0706
MD5 13b4428c567ea2295783a846cc056878
BLAKE2b-256 c34930c6876a8ac4c42d306ec318bec34f599acc676e311151abbf8c01a12db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3e9603bef5ddf69057b15b1a48dca51e19b4f500a365a76d532ea0bad56dc7c
MD5 003af17e850ccf49af85bcda39d25c2c
BLAKE2b-256 03bf225a874f3e26abc6fdf53f79bf1f8d6ad32d414ae7b8869a8c935426e63a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f20b665692fab9238b31de5c38c528c27987659e58bc83f0dc6973c6a15b2ce2
MD5 210fe6a73b21525d8dd588a52c95f207
BLAKE2b-256 4c97ff83980ea4d2b8c27993cd07e6ab6f40ba3166abfca0084f920686be4c85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a120af6af2364caeeaa4f16359ba50e75a696f9b4ffa563379f689af9a06e827
MD5 580190a5ce7a157492c47d4ac3d1052a
BLAKE2b-256 9c162b5e5ce353518fcca8129543ea8ca6999cb1949f7093d9cd07c829de3627

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.588-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.588-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 829f49aead3a50dc96f962ba56ef60bb873bacc927095327d4f61afe1ffbd36f
MD5 d235a265b22c3672213fb7501d51dc53
BLAKE2b-256 b3c7c1a54f0903fd954b3b1c1798fc93b19546248bdf40d52c9f6749d10813f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26a1fb74f4b4e5aa60ca8825cd8c7dd3cdf841207403a9d653ae6f91ffaa6715
MD5 ee542e82f4f1ee042856b21b0c5970f8
BLAKE2b-256 8498875c1564fd100cdfe3b4c829ca0220a8e4a8392019da10131ea9b7d0f6d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 473b034c9a44915418895867daf65f0a7f9f4851cce068c1bf1ed93ca59798c1
MD5 98f5d820c0f48fd9dbedec17ff3cc40d
BLAKE2b-256 7e65db86a281c29c8187e883a9dcaa3352da26ae7a8ac491a7b1a97d54808d8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 544809fa409b501999d0ff17731b88089cd703ceff3820bba52890ac8cb8fd2a
MD5 f667e9fec50f8e49758193e58e8d3d62
BLAKE2b-256 0f0315a1decfe8fd3f1630b9c8c2a92fea898aac1af919102739e88074763466

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.588-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.588-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8873457ca56e27858e97b9d56527d1de2afee21e722207605fa7332f36876fcf
MD5 4468decd794c6bac2bcd7f55587ca039
BLAKE2b-256 2d3b10df57f4c59d9b246b18e840c081b83a8457a3c114ed279977efb4688a47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60a0b4361fc3c2f5ceffecc84a4e258a268a1b50514bd44d68a27713296d1b12
MD5 934dd686af6886e1dab996de56263b4a
BLAKE2b-256 8f8c103a75320049e7fe9cb0063a7bdaef60dc267c9ec719f45be78656a6d554

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4133e9e88eeed58f1c76f5b17403db9190d8bce00b43e3c5bb55bd769f8683a3
MD5 968c4f1d6ad76d790cc377e618a59dbe
BLAKE2b-256 073ffbc89007615fee98c4111edd5131f22b16bfe6184656492a7ee2a867ac1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.588-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.588-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f42ad2b6aece423554029061f50fb1220a1e6a76f4e1992f1bde4381904f07b
MD5 feddb386af92f4853fc4587c71a8d814
BLAKE2b-256 b2eeb11736dbb5b6a03b665086ec37584e2477aa021c59cc007e96c180ce4ce0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.588-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.588-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 208ab7824abbfb3d7e6f94630fd26f1b36aa0edde0ccf6e22de3966b5e1497b4
MD5 f3f8056d1f3e39e444815787060721bd
BLAKE2b-256 fa6732e5531f27614eccbf50a7327e1bb85b56d9b47f3bc73a20a5a9de1f923f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.588-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ec84aea6eab004b7fc09144649c4c8d65eba2df75c6e5e80c586511203c920c
MD5 afd309d6bd33866ba9dc748c4597abbb
BLAKE2b-256 cd2a128a9ed253f768e48f679dbfed56301bef8effae94619a53bc6cbd39d6f5

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