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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.749-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.749-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.749-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 17b2b447afb7fcbe931391f74e2dc01dc0f1715cb22db92e1035714a9104735f
MD5 f0ff29c91ca093ce4e870cc09e72c904
BLAKE2b-256 2019ae5ff533853f911c54b1c1527e8f5d829df48843796ded66a908ea33c237

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e8b810eecd67fb021a17408f43fab913f22eb759027e7280efae32f6efb702e
MD5 8b9028d918017ae5f427791225adf908
BLAKE2b-256 1c5dd5efcf7312304a42d39cc8f8f9bd6c4af624962ec7de4afe79c4d72cd32a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.749-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.749-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49486b06c9d2de61c0321729f842bf989eea7c3b7898e7fad53e94df23240ef0
MD5 9fc5f10ad4078979f613d100b3971aba
BLAKE2b-256 b67e4098b8005fa2945ee556a704b4ff9e9219a93f3646c8abbe3f611f6bdff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92329cc94ff0c9509811769a857ac17571e7b2c62b5dc4e8765407052866e731
MD5 fcc96bc2181de3b938ef7feffa026ac1
BLAKE2b-256 04e283fda043f2b3fb6f45475bb2745a51630e2991c9c019b493b42ede34f5b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3c52b1b7819d82669190d8964a84151f9843ba5128f4e46fa3ae5b29f5a47200
MD5 2926f19c4df6ca8da5c3d5b730e07501
BLAKE2b-256 0ada7c63aae2a5ec8e794525ae73737fed51479f3d672b95ceea7ae2b5959e3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2c92b78ffeee2287b3ecb63315480823810627460fc8c26666f2bf350cd49346
MD5 a989f48d114c6b4c830488c2365582e7
BLAKE2b-256 4d2beeb14c53117b0a4bc77c83b757a3655e2722e400136f85e040a78b8845c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.749-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.749-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc52801b1c683823dde5d8e1f9ffe3f26a552e1292c0f73ef01abde88e4d4d0e
MD5 32ac334d8146a9c4ce162fa79e6e3805
BLAKE2b-256 818e369561695d14854399dbb5aa08859847bfc7fd9195a7d675df09ac3974f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1565dcbfb729d745dde8c922f4eee1eccf5de260cf1b06b145a1625e628d9d3b
MD5 925437bf491f6aa713186158464563fc
BLAKE2b-256 6b4a13fb64b8a91a7d6ad7bdef85c98a13e09f202d88358655e858e3779498af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 60366f7874f138038cf382ee32df0d98743c030974d904832d9ae0a98dd7ae9c
MD5 6821a85a715221b1d03f24070d717e9e
BLAKE2b-256 b64cc3a6498987f9f84fe0038352f5f4dca98c9acbb63b9c2860bd2f5628a950

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3dea74886053af71e90c9bacf5ca6946591952c36c852dc2c980385984a0669c
MD5 73fca2a46ae9e95262dbd5b5561d6630
BLAKE2b-256 b813e9497b72f946686bd7c98836044c2282968ece99e6c20b68315a0173e0a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.749-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.749-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66724fb36966c47109b35d3529a7638e07712260cf360daf994e7a5d46158262
MD5 ffb0a817a88cfa4dfce63b31eed786d1
BLAKE2b-256 6dcf2ac33155a8f9afcb3677789e4f1c7e331fa0f73bffa21be139b081165171

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be831f829c22a2728986e87cd8acb97e42be8a4f301657b43fd15c79cb6d62ca
MD5 03015e251671d76e8c417c325a6d91ae
BLAKE2b-256 39b9206bbcc62246962cadd0f3eb53aac1506cf2b5f54850fa6210ee4fee7f04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 89517661e14ca4a1c8b34d2494594c0ebcee4d9179dd52756af8a905d4f548eb
MD5 22411bf3f11c4923e8fc7d9297d43d0c
BLAKE2b-256 d45293cae50d029f71afedfdd781f3d8c8e898df1e1ddee06fd2b3ab149cf9d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 31122a8ca39f3ce5a3d9bdad9138bb37bfce89c2c93adb9b456af8399cee50fd
MD5 3c44c1b0cb5433964b979cef30a413d6
BLAKE2b-256 e0486c8bcd293bfeb51999dfb80211fa8d7c5a4c051a8b2a5f4388402bf5f18d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.749-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.749-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53ebd51ca1206e09c4edbc21538f731b13c7cc2f7da0c515a9e4e28a2ad99ba3
MD5 a514452f203a3b210ea543ba499e57de
BLAKE2b-256 5a1cece6e3c167fbf23b349af0f2ff975e05bb8bfa45bf4c32c5353bdff2b4e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4b7b897a16a6f8549d0c008af8afe9784dd40e2600ec4491874e8e1242c6357
MD5 937e546b4c68f6597c2cecd015c0d063
BLAKE2b-256 1950dde3d9262a822e758ccd7a72352f45d88a16505d777aca7b4532a008f61a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e0cb03c9a054522056e247743b80a4d25f504f3e209988b973224e77da36015b
MD5 0f176cb13cea5fac3cbaa639d6a52be4
BLAKE2b-256 8aae1862b3ef58e22ebd7e68a9065a1aab29ba4a8a7ea036570b78cfe1a02fcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.749-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.749-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 83621f540bc57e04736ae83d43c483ab701cd27e9fe457c3c516a4b531dfb32a
MD5 66ab9d7fcfbbc912758eb3efcc328e2a
BLAKE2b-256 925b9389add52783fa524762768550ca8f1749d819058ca30f2cb2954e59dff1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.749-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.749-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 539bba29893243ce4847bd7d14dde756076c6cbd696ba57d67892d6a4cac7b52
MD5 261529b2e2e90892014b1ef49afc9d2a
BLAKE2b-256 ff57756d2d4eb896ac1357e0a4ad81a1e9ea9051687ff79052abefa5875cabf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.749-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0f875c8c8bafd4870043fa8f6ce02baed296bae3de83a1e94f13df9c17d94fb
MD5 9b91ba89f16a0c986781d84cc525740c
BLAKE2b-256 6cfa06c2b621d063bd3c63c01143734634b5c09d0b657fed5391b6a16cfeece3

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