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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.87-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.87-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.87-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.87-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.87-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.87-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.87-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0c42d8fd78ce77aaa4892b1fca09402d384318185d100550119469b257931a98
MD5 093f2d4e67b4757a9371948bc85bfa9f
BLAKE2b-256 b79a55cd77dae8d7165544c5fe49087f2e686ed9bd5b90ad703e4a03d1f004da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ab9a44b2b6eb88c18fa223a5cbd7fb40ee277e54d77d0f00c3fa1190332c5a1e
MD5 342fdf664aa325e28d7fdf73ef46b648
BLAKE2b-256 936d5701081734b501916871a7d6c7a8cd85ae8230e263b2e347b8ef8699eaf2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.87-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.87-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f8722760a35c4148c7bfa7105500afc92a47071c4496f95d0c9b0f30694c912
MD5 8b91467ccd3cb0c00690e8054c008222
BLAKE2b-256 d6dd6bad927564b149140e419eb51f720c030a908d3010eb7577a136e84382c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.87-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bb5847c8b79c11f34f25773f86a75da1940f19e92a4e12875aa879d38ae3eb3
MD5 98f328a583235f0db41e7224df4a1809
BLAKE2b-256 34265cc532181caee71608a81a4d599e7ab926a2743a4bb63f345f2ff5b72d20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.87-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a4499355c070141dadb42712f7c5364b5128f3a10e836206634b22494a5eb9c7
MD5 2e97af3751cd14b2a0527f272d6ec5b4
BLAKE2b-256 81c7f1e80059902de73d03e4da9432a54adbc61f8ebdf96b9b10a99f9f5e9ead

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4b1174d86d4b2dc529eb630bf4e1553343162f2000201fac94d27d07d3e4d622
MD5 08595f12f1e96c5458bb038d7092f569
BLAKE2b-256 9d4a2e454ed41fb2f097e6c72fb93f32a715e86819b98c68de7a65ff38ea5717

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.87-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.87-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2c031416d3ffb67dbd9aa81cb998d553ceb9efb4f12f39294e650de0974ef29
MD5 c70ba43db4c93f0d3014a4402b581391
BLAKE2b-256 05380fe4a499058676080f061eb106429df3e92312298b5232cd4b42573da444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.87-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89b229cb6c0ec5cef6b43aaf3010556ea194fbf8aaf6b6172acbfbf248b6a4f3
MD5 dcbe70038a59302ede5ca9fd5fee8dec
BLAKE2b-256 cc9ebb77e079d8de46e5bea574cbb6b52c5d102a64b4399449aae6d00e1fe65f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.87-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8ddc3a5b68a47723da02b80bb8d2fc90ace73f0a98daacb52b8be1ed568c280c
MD5 de0beadafc6b6f7be6d783f18aa8f175
BLAKE2b-256 3b91c1e20ef7430e5d067a15e9f988a996847bcb82574bface1a825ee7d146a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8c1acb1069a4cc70492ea7ef2739158e225c8cf478bd951676ecd4e6d2aaef8c
MD5 827e511568f296ceee1d360e2e257c6a
BLAKE2b-256 43c4884c8320008ab3218a27e12015cda4566518296987e65c03f9281738a590

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.87-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.87-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3b83fc311118066b63c0d321e5b26365534363dc5fee1df9385bb8d4b769bc7
MD5 1982adce956e3a063bb6f237585eae9b
BLAKE2b-256 71e2b39a385df5b3c7c301b51475f7d72c9d080b3cf8f70cc972a2b0c102352d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.87-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d4f8bddd65183f2e8f84224dccd091c4e87d2f1e285eefc0836594a40919352
MD5 782db61ca554b43a13ceacdf39f2a1cc
BLAKE2b-256 1ac2e6b4b1b576291f3c22b47a62ecacbf5cb61ea53c560ae28948d606b16ba4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a478a9e78fc0dc35788cfc3abeffedce3031226c00e37214052ecba1c2f73d3
MD5 1127269bc653575a7bc161a6932ccd88
BLAKE2b-256 d9ff1230a1487925aa9df23decd945afa0c3daa664d7723b4f94a04b7ecaace8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a5a3dd3b12eaf69771f4e46bd63a123638ede5514d30e7a6d557504e01f5f42b
MD5 e73670bd97233d9a0ea533242817b7c6
BLAKE2b-256 c18cc0010f91c2aa04b315d3a4d085447aa26ed1a06cef6ee55c243f6f0917ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.87-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.87-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2a704f862b20efae136f431d1681d7e57e210125ef8337792ec4bed5253c046
MD5 5fdf954e7ef766a13980d7839826113d
BLAKE2b-256 9579d6a9dae4f58e7fa2e90de426eae7463e78a07084652ce972bbdf3a9e452c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.87-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21615e4404bdf292933b2850aeb9cce2bf25c5eae0dafc3405492ffb425dced1
MD5 415c00ea78facd56838a3c5de934a9c9
BLAKE2b-256 6785515e5d5948440b7dd5e8e156900d9f043fa22c7dafbb5c099b644e312411

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 39c70e7a3bd9610f22d63e1ed881a638d4876795579805e77072e337140bb99d
MD5 d37f653942a79f51cb3b004fd97015db
BLAKE2b-256 449c9670f21027fafc1e7e4bdc106cb8123b7b16fb8abf263bbb81d640a18593

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.87-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.87-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 262e22c3b5cfdf3738c9fc5c4a1c11415d8ef2e5f79cb538739f833412eb94eb
MD5 bbaaca02be552c790665c7b0f2a2668b
BLAKE2b-256 d89057ee67b3a741819028cd457ff88c09ccde471885c3609451339596f6e77c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.87-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.87-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e610741d8489d966fb7ee494c1e1492769791e680a3922852278a9360d1714e2
MD5 b1400bfe6db8504ae528480f504098a1
BLAKE2b-256 07b495579027a0d2cc67310f02cced9b0a340baef3ef2122c4066ead162e4134

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.87-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 348e3b2646bb18962296a289a07da7ecc3bdf91da16078776834c319bad68810
MD5 0b18b5179a0be9faecfa15dc5497557d
BLAKE2b-256 fd336661d6de110ede886a038c1c89b04f39f0bcef48551003db5fd78464f7be

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