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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.443-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.443-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.443-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4b341e52695d6d9a92ff9a0a255af84b64e9feab20cff295c387ca67449f65fd
MD5 649f480d826b2c8ed2aa540de322d730
BLAKE2b-256 f54ccc982e179ca54b94d22f26400e836eb998e1713faecb1c94e4b4a1f135bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5db0f55d7bc9a993daca3644cb07c4b11872cf75fb041a0cd849d5ae02811604
MD5 1d325a272d7f88c9f16f93709d10643f
BLAKE2b-256 847eeba217897649b4607969deb5294737839fa788cef4ab93a004e808c4a566

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.443-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.443-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0529201e099c8a06f10910549e3403e1f004d764bc548f9cada8648492e176d
MD5 462565f105ad972dc03b9ce9aadb5363
BLAKE2b-256 bdc052146df7cb684a56027c39cbaec224f0186c24385938fcc52263c562e77d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a2b30c8d9d0ba959328a8463c7fafd2190b11b3014da1afffb6d89186e77967
MD5 b87a2871cecbcd7a9116aef8ccf40738
BLAKE2b-256 2dc3f2d198cb4c7d146d74d0d2fac0cb46b5859ea3e062d9445b432f08caf188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b430f92cb51ed976a699484547dc87e848fa1403186df64a21302989db79d8f3
MD5 c76f4acbb45e66a16c85ad596a6b827c
BLAKE2b-256 9215da0fbcfc5e82d27df809e338940c7a5594d0b83ca40f1791a595c275e912

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dd4ac1a7973d00947a9e6814944d9671c53b77ba4516a9a81620b145413fdbd7
MD5 70db3f3a0b723b92984290fee3c2daaf
BLAKE2b-256 99c8a8c47158c26834a4768e2068d882045e1545645d2a486080e04b820ac265

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.443-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.443-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc3930427e9f9656930f6ad3feeedc65fc6234fcf59d7b92eea36fe84b8e1947
MD5 1ef602fca1df9bfd3aa212b143d02824
BLAKE2b-256 020d1cd12181ed7a435bb892ceedf70ff764807e5d0190be1420099d44f76bd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a3a165de7ee63ac6f6fee2796f3bb8275eaad777ce628eb8ab7a2dee817a03d
MD5 e9d91064639b978194f88c8b937a7932
BLAKE2b-256 5aac26713a6257d9c62c3ed4c690202430feec7576ec784bebbc9c7618601723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d992fe87e9eacd41a10561863cac3ecfea87c692bc08c6483accec122a7df4d4
MD5 1c09129e4d62b2cdd7b150a3c0912d24
BLAKE2b-256 b2cf96b43334c7e05a0069b3ca24663099cfffbb53ccd3246915ea5eefcc4c6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2278678fa69b6f84b439f1a79bff1f850589637f7c93617f94fbff59a2f0392a
MD5 e19f55e4d94cc5fb3ce669162e57ec1c
BLAKE2b-256 1324e0768c406edf1f2620c88986090ae4cd7d3f86fbb0945901dca55ebe445e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.443-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.443-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91ce10d8be238767ede847bdb7b264512b4db931c2f5539c40d1394abcc550c6
MD5 cc018ea40a9fd2d5468768fa7d7a0de1
BLAKE2b-256 2ce4c68703569ff5992bbc83c170d0384329b82384f016076223bd923a422309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb9ac65f5cb99859a428964022e81bbda1cee5298e2869524ade286b239d6338
MD5 254617376bac48d38476d76b9162e8e3
BLAKE2b-256 722e0255091df12c512ce4cfd8e51310eb18f7bdebe567caf2e1d9a360d2ae60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb6ae78b0c40a9c6821f28f8fb0b0acc0a7ea03763f10d682db4fca063d75095
MD5 96fb1cf2659521eca70b9d7e04531753
BLAKE2b-256 a556055b601010fc33303f2190df7976f8e297fff0626cd48753c958a237b061

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e0a9aa813767476f2b7599dbb0f11006cf73622445d789e97910fc0861578191
MD5 9c63fbee20e65d29881fe6833e175972
BLAKE2b-256 3c839f37a5ad84917ed746795d6a2ad0eb3a17b09a04376e87d13e754c7ff1e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.443-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.443-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb18b3a3f055f23dfa7310893683d383a424fde8de2ccd954705fe4dac163824
MD5 f1dfdfc4747a19276f7b3472f0df164a
BLAKE2b-256 b67aa0bdfc55deac164bcc4dcbf4ee2dc2066f8e3f20505a00a75a7ad3296834

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa63df1c7cc7aeea50843dd81c20de27316e1d9d0f6ead3910a9743c74160659
MD5 6b0b0b317c5a96c3ab482bccc4a3555c
BLAKE2b-256 50256e8d20a338c8846cdbd16eb0fadf65d871ece96a3b060d627297b9e2e304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 61a2c4828e8ef7a27cd499a52a6621b5ca3cce45b7625733363e9ecb71f397fb
MD5 5c315d0617f2b339937430b17cc1a5a5
BLAKE2b-256 a2701a194c8099a026818257c8ce21e5ac4c6847ca1ab699b2ae4ccbfd43eccc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.443-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.443-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 539e8967da31ceb7b4c463e32a54db59d4b6c5857a60cf578164b38c4d5790ca
MD5 2df7c478a3ea868acfea61ea1fc9e881
BLAKE2b-256 7a4ccfd4751c3de433765ed02a1f107b60045ec3f61e7312abde5efdab64c686

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.443-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.443-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00167d1108f4dc2cb6ad7b75d25386a03678d6a758da0e5c69d5d3130950e183
MD5 59e912cbe740e7c0d4ccb135bf342b8e
BLAKE2b-256 528e259abba0ce107acd7e5366ca43fdead8d8dfcedb7a06a18157956bb89854

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.443-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36fee99157f23302474cb89f30f405467eb000a0354446efaf6fe0a03949e564
MD5 192b055856fdee881963c07f8f1f93c8
BLAKE2b-256 f3998545d6bdb10765b48ba3df4ec3b10310e8d1fb7208335db23933df98245f

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