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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.429-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.429-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.429-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 170d239e264ffc67597be00a768a0edb300f20d3581f867a636ecf59687ea0f1
MD5 608cf210a3a6f681b6e4a22e48a386ce
BLAKE2b-256 56aea8bdb7c059326322a39406a873ff1d8a6dd598e705dbe398b6a597456a50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8d86ca71102e57de943375d433efb38dff71a29d3bf0ec83fe60e6f8784758b
MD5 94ae38bfbc91528305e5a7828d42819e
BLAKE2b-256 671279dfadf09715f61cabc9418c76efe11f395e4d71e558d3544938e7c12472

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.429-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.429-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c07720f66a84615e7e6f1281151f7155b546343638f878e435237c3ed3ec2cdc
MD5 9611f16af5b4656336752cf3202b7e1b
BLAKE2b-256 e66a19d4c9d1adf1577f976e45fb08e867aef6981cdcbf9498d0b6566b91b48f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96f1d1d35aed1680dcd8b2827ba8c1225a090e9d6726c8771586c10e4cf1c301
MD5 1ccf2741919e7c17be9e1e89038d24c5
BLAKE2b-256 07f59b4c128b15ac703aa612e557bf7f00538f4a7a660040e8229d3f660dac86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a1dd3ab048985fa431a32a219dfb26ddf62cfbe0d26bcc93f6d5367a949e3ab
MD5 0b31895232283df9ba9a32e06db4c47c
BLAKE2b-256 d3dca8cddfafa3408d768f7cca158ff274ad2a611f75442f4e7ff0cb344623fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 49a9cb4c777cd3b63a0aa5042a07b7ec17d1f6bca224df6a074199adf63195fb
MD5 384493b3b5c47123db99fad0b4a28c12
BLAKE2b-256 52a82b888e749f4a814b699747b626b1c31664a47f4bcc91dda4b6a9035ad7bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.429-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.429-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7565645c059cf8d94df40d7d54b205f5033bb793d63550256e499146cb3f275
MD5 846c3d0ce044fff42e261a6f216aad4f
BLAKE2b-256 97450d337c2a5e400aac97d3a05fa495e53ff73ee805c547d076cc673aa94910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f10cfa6c4fab03027cf268be9855df00c1de8cfc037d2597d0ee4fb8524c2c5
MD5 b39046c6e48223b862cad3a3dcf46494
BLAKE2b-256 3baa97a7a74b17f3859969ceaedc4549724613f4644d8637baa6c1fe6c22af25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f4ab3a344ed1daf1610aa7811b10877c036c724721ee18981992b8f3ecd66a7a
MD5 e9cd594f0f3305ed603c2a97e1a3bdd0
BLAKE2b-256 7c53eaa12689540fceae68c59fb3ff17d73b34e56407c27bef38ff36c87dfed3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e55de33c3b29337329b1488cffb258c7469e2d692a1f17cef47b2dc99d83fda2
MD5 0b495826cae140273f5a53f4e504da6f
BLAKE2b-256 31381f33d20fd705974d3c06ba16b8879126f768a181c68805ad606159370ec8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.429-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.429-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47fe7a5b9171671769d9741d4dc2f9b28db7f38305e8818ce71543d10482005b
MD5 3f6a14d03b5fd20f7a898f79dd17731b
BLAKE2b-256 792f9231bf00cb57e66d64c6d9d9b40f4c29f63c310017b20703973d57d5d0c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4be24adf150747a43430d53ce6adba0f6f306fbcac6a227939d4541568678b91
MD5 6cd91822f0bb7ed203a9fd16a8b3cde8
BLAKE2b-256 d2f6fafcd685cad145223df812c3a92da519fc44482ae4801295177120274f2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 24b3eb5b1a5b370fbca910c836129433edafa7cfedd1773effd11bd2d1e2b6d6
MD5 5dc8270be087b89c883f9df1588cb7bb
BLAKE2b-256 678d9b7de36f52c13e564021626fa8f35df0d171ed8f4f2f5d0cbb0ebdaf36b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d4993248852905721a7a8130ccb87f2567d2f4fc508940d149fd64959ee63bb
MD5 45fa7898c6669e77dbe4afd1b6c93510
BLAKE2b-256 b8bf810ebf3fc3dfa2395c8703026f0dc70b7b11e4574287480d83dd107cb40e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.429-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.429-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65cf8b388d8a94bd079a49a199352c1ed17f00e246dd6bf801e643f526157600
MD5 f0814056cdced66c014306de7c7b4ff5
BLAKE2b-256 f24b9660c37494ed0a3eb0fa6d3e3361b59e62ac7c864ce1f32756c2b06157eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 058423286e6d4172e934b75654164a0a1b4196cabba5ab3fe6a6370d2d1ce89d
MD5 3fba5733f431b90414c56d6eba8e6a6d
BLAKE2b-256 697bf9cb82015022f31b2ce83990559b3721d068bd4ee3e91389212c54a55c0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1087fd50f77edd66ff40afa21e474b4de7ca9f65366694d5e86e6bba0090b0ee
MD5 f076a0e56d07abcd6ec986e6d191f657
BLAKE2b-256 a535382e30cf2a267e18b03ef718e3b9c171d5b2af6c8204822ae7df14640147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.429-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.429-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8b47f93773f2d5fce522cd48c8d372438de9bd5a137de3afe4b8a8bcd05f7521
MD5 20ffb30f7ac2d64cd8f8c0a600a93911
BLAKE2b-256 32ff73e7a842d21cc9b15497d58f6e1242ab598ae6cdb48b053b49ceb52cb6b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.429-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.429-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7db7148381811732900bb4093bd9cae3dc77946e084a025cfa1401fb51a6701
MD5 e2268531f64e3ddfb67284523e74c7c2
BLAKE2b-256 b5a92f7a85d52b8a1f263ec69053ea28f2d1ead812280337c1a3ef1739ef35b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.429-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10aeb389b1f9b5ff078c4ed6bb45a57de1114076bf5acaa5f3ac9cb2c4059e7a
MD5 4022ca8f6f4f574c2af216926ed01aae
BLAKE2b-256 b5e427cac3f03e429c9b7d68e2355b9dfb99e5ec18af40b1aaa1877bce726b92

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