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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.920-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.920-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.920-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e87fed1bce80186dff2c868cc66bb7d283648b8d82f21bf97f952f838552bff0
MD5 ffac4f57c5633b1dcd01aba88c3a0515
BLAKE2b-256 740bb3d109aea73f24dcfe20aba3b95e7e68e283f1759717afa4d2dff61d0ca2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e370edb386f7d159aa7c6b1387d1ae051d377264796074f08495be18cb3ed747
MD5 56eb8c0a42f1a135bb529d96a5a0822c
BLAKE2b-256 1456c1037a867d99b43a73b37f7f1ac37becada4cf72f57effeac6c9fc06ec41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.920-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.920-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08cf290c36add4c02cd81c1a5588927dfca2b823fb88f3ad9ad50cafc3b82b88
MD5 a27d54b9fa3c799ed62980d05f6f7e17
BLAKE2b-256 44930eb901ffb2c3901cb985be5090998f5f3948fb0284faa484c97a1c15606c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea5bff750bb6cdaea3c4f0b4301535381f2f1d2eed371721f9465a0b2ad6c86e
MD5 4c1ae67d4600279bc47b2ed1b7fb37e4
BLAKE2b-256 294d9e00428eb2b98d2e0480f78262bf50b1b56d6f07f2a006b314cca1f181ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9fb161235ec5ea5bf7c458ba309d76ce045e3d58365bbb55f836e9ae87a035aa
MD5 44bb33fc6f8e8c6be2427a73d1c62c09
BLAKE2b-256 1b8623201372aeeec156d06d7c725038204ee34ed271326b5117d53416c5e7d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 99a19cc0270696720d101fc1da1f6841d0c16afaa9b83e899dc332ba72e8c5b0
MD5 6634c269d96465def2f2b6fb822861ad
BLAKE2b-256 d6ae95b5461b0f66d2bf519382b2511409ea9ce67c5e7177f0f3816b0d6ae638

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.920-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.920-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a141dc069644de02267697862da41aedff8c25e3846fa5a64f3133c1140d9a4
MD5 e6f2bec48116f6f87a21cf16a0d8566c
BLAKE2b-256 f3e27a9f3b0f9726368e28613579a52e84aa7d5277ef87833c7950bbea300121

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa29f89098f154f8bf4f583cc64ebccb559876ac5596d2f54788c28aa471ef08
MD5 e60f0e9c904511dc6de626a234674089
BLAKE2b-256 ae0b61235b2a164eb81b256b507340f1ac77355a8961e5eabcf667aa0608cb33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8eb3a47eb9748d5a7a2eb98525f28f017c7651753bc3834974da8f9610a88c56
MD5 aef0d45e876d4f17e5ea202628e72535
BLAKE2b-256 a5b52253c15e591f7e12dfe51fb00ff9de9cce8a1cb4e8d9fe17c0c7328d1dcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6a66d5013a07162fbd8f2c3683798cb75bb59c91bb16a57a99033d25f5e262d0
MD5 ec4a0dabb52988527c7faeb53a75c002
BLAKE2b-256 b9700666b4f560c568f59bbb20f965c1941ed95614528996fa4ccda1eb498ef7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.920-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.920-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11f21d5bf412f6f3d95dc6a9267f81994dc8cf4b9592aac3f3d4687d8872108b
MD5 62bbaefb3727c8d5a9a883a7c0f39649
BLAKE2b-256 5900aa1b92b1622dd888da127d3f033cc46ee3d7dbc3ce9dae1a426c2c12b0fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4a9c9bccd9bfbce9af9a9fdaa16a01a51394f94f712ce81fb400c5f13dbdf7c
MD5 963cde91f81418b54561e7d036c95185
BLAKE2b-256 4ad1d74b397f3b37d0870d17dea9c6d7cb95e73bcc25e0a826c8868f50831316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 209715c66e96bd50215d6213bd553539c15642569b36b8c61aaea73dcb120bf9
MD5 dba5de4036faf61de95d7e198170077f
BLAKE2b-256 eda02e5f20ef9f6db64aadced36f6f383e8445990ba812c3bdd8835d6c52ed77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e978ab7413a81942962ebcde1a86c87476aafc1093ed9255c882213ae477d83f
MD5 1cb1849b23e771ebf2f9b8766dc14d65
BLAKE2b-256 2284f00936065bc89cd910b36749fe1620f31346915a7500ecfc19dc2c35f6bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.920-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.920-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dfbcc371e35953c43f728232d74271afaf81147de7f818456637da618632cb7
MD5 7380bd8dbe37d361820922774e3cd352
BLAKE2b-256 6bb36669fe96c3b9b7de6d4f2bd89fdc247cbb80d07b0fb35909e946344790b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 548661f5b4e4f8cad2d1ecf20579e95ed0506edc447e2d9eac33ba4ec9ca6572
MD5 2f39c18c362016855c99f8c46b153538
BLAKE2b-256 7298b69e94f0dd50b0852dd2d27104b26092358fa4c23cf70050fb37b973a5a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c553b64d1c4319d58fa002a95e84ab3715fdd498b0a089790574e02e9d2c91ec
MD5 35ff9c0791beee203515e65ca88f6461
BLAKE2b-256 1f255b42d032a34345fb023fc7c17048cec76112ac0c94f0c3776dbc47aa0162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.920-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.920-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 40b5d928feee604559249b38be4057e99f5d8a8d6b4f468e978d35bea1cb539b
MD5 24c152432473d64a363978ede09465bb
BLAKE2b-256 64fb2a1630d314a29feba314debd245389c172dc3928be813c13ea943dc66dd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.920-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.920-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70ad67f49fe73cbc1cf962726e66b736a77f4e875d4183ecd40aeff50b9a5328
MD5 3f3e6e8fbf8713dc8cbbe6a810284709
BLAKE2b-256 4a48d8209fcb42f858959d1a915bd3d5465c522173dfa5d892134578f677ba63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.920-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7189e89dd2c0741f05d280bcac34878b442a6285bd34c3d437b85ea6e86dd48
MD5 820c60ac7c0d0971e67e6ef065bfb987
BLAKE2b-256 76463f96b0756521aa8e2091f982f8387ee15adfbd393a3b29c3a2871abf271d

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