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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.660-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.660-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.660-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a40543537910ab85b1b273092bb920f10224557d0b12a4c0d0bb1cc6c04ba91
MD5 2afcef2256d61d04a5df2c898ad7208e
BLAKE2b-256 9af2cc99f003ee657a067d0f43f40eeb138a1b6324323cd6f2ec496bbcc5f3eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c4256a3be0216566c237e283b7d9ae5fa40d56c17045d37753d2c039c4819dd0
MD5 13378e260e59c6a82e3da11390bcc07a
BLAKE2b-256 da3f11476c677be6283c65290f2c012dc41785cc0bcc84cbb7f4909695109ca9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.660-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.660-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef3d6b412a5b3f3dc201dfaf80899b818a22f0b63f2622926d5a23e91d5ac8f3
MD5 10623fe74e75aaf15bd3325eb34b8b63
BLAKE2b-256 7d8c0798e2f940e24c6eb8ca6f57ac8bed7e8050cc96fd35190c914e81aab7fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d169ca7c1290180f9ff1dd8b51553ccbdac865b6f03acf299e93250962a0272
MD5 3195243d8c0d42198b41a8b2549a23bf
BLAKE2b-256 9307e6c79659169a27bf0c5609cf08b783ea06d697f079389fc1dc55ca2b8cb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 71efe3096af7e9ae67b0cf47e763c52016bfff22280c0a473508804a18dcf6fe
MD5 2c9ab4d1bddba3c27f662be5f26f9f44
BLAKE2b-256 d83f113041230177ed138d73cd19df2be1940ade966ad943ea11eeefccb259ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2a7aeac67c88d8d196458a507d1ac3c778bdb8eb25358a8a78399a72648157c9
MD5 e07a2574f7fbccc0ec156e3b1757e1ee
BLAKE2b-256 9a1168c35b4cfa2d805d24e03cc553904269d48588dc4fa6ba98dfbc2af2d528

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.660-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.660-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0eb96aa7ef697c3ab94e21c86d8145e1867429cecd6972dc02c6a51a37f2dd4
MD5 f32db83b1ebe9f8fece861a1cc9783e1
BLAKE2b-256 9a9923ba0f30f2555aabd6faffff00f49e8a1db15669af933c1f05ee9e85e4fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0bc4dca175826333e02c1c432b9ad22af0b0fc0b51f87aca125e27a2a77302c
MD5 c371b6a508462a058a3a6817d3c7b210
BLAKE2b-256 df2735fd39e1b04a6ef7a62e1270042ec95863152c8526c53866ad3c8984976c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a905d6e8a903befa09d2376385cf9d94bc5379dca3b604ff5a446ef0167af31e
MD5 cbf6710dfc68b15ccaec1376ac065740
BLAKE2b-256 03e8a42eaa6a1b731b11cdebaa4df0e1d17774095579cb7f1e8822f8d2d29ac2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1d7ecd8804fc1d32b165b90b772d2e84ad7a45264551b2a3eb9be056d09578c7
MD5 aa806fb20c26f5accc4fa831ccad2045
BLAKE2b-256 29f2a1b317d99d8d0f623b0d3311a2c71664a65e0e6778e684ea60931c5a3829

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.660-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.660-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c1badb9ebfbd4d8f136bd52f168c15b6152b5c50f0afce7196d18a8247f7fe2
MD5 3686db4934503b3d0fb606d87d362f39
BLAKE2b-256 6f9817753d470628225da6cebf492224fc5a2235a9a2b7f6f19039ddee0e9405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2d5f9137be669f92351a37c788fd82bf9520d317f2c3d71e46995744560afb3
MD5 c7f8b80e27f5cafd7f716f3fb0602a55
BLAKE2b-256 1a680ecdf738372c64ec4c88f2d0be1cd580d40151033050bf76c87e74b47dbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5dcb95bd03a8ee9922924279c19fd3bb6f940b5735eae40769eafa315e7aa14
MD5 f07c0a9cb59bbace089cdff87018997f
BLAKE2b-256 3f4fa5c594f26d634d1026005591ad0895c78090a5a3f428999b80b001a65953

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 07e1e6f63737a187ac34ff874e47f111721d7d115f12975a4caff4ce430f3ffd
MD5 f9191ba8dfcb189d7eb80cde4e7963db
BLAKE2b-256 b72c1e0a349c2a6de6286e7306dd29ded1ee8db1dda4583a88a5c7e33a496d9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.660-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.660-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15df2b3a482cf4d06907f7a324249fd76b00fd14b953fbed303dbcb40bb72dfd
MD5 bfbe0a4ccde697213eb45098ef5dfdc0
BLAKE2b-256 2ba1b89a3e4d019d601e6bfaf7a83fa5ddebe15ecd46efe945559ad61ac4d41e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e044bf2eb07785530e6628335e7253997ae46efcb2dc2fe4a277bbccd949c9b4
MD5 dc94fa6cbf9900ff3c532469a76f8248
BLAKE2b-256 58ef85bc9cecddc37dc600ee242f99c01cbfd2d98d32dd5d40e34129b2139ef5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db0ea499f3683aea1aeda5efa94f21534489b66c988e4434b6b93b4b9c022e5a
MD5 f6fc32dd6e3cf082f8d1d94802fda0a5
BLAKE2b-256 4d88f77e1c4aa863ee908ea5880d1b3af12584ce57824abf2ec0ea30fddf0e45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.660-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.660-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fdd123aa6d514b2af98c1d25218e6ae289b5c3581530081289b1bd628fcab4eb
MD5 32ad4c86a38572b565eb6d8918707623
BLAKE2b-256 fb04990ad5f213bb051fecf3d6a70048611060abd63865397079846914656ec5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.660-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.660-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f6581f441a2aa61039749c3d5b8fb574ab105e9054b3b99ca39174a73ab5b24
MD5 592c516dba2b99a8bd2f7aa21f65aa38
BLAKE2b-256 cb056ced155b8531a4736fd2018deb1fbfc795b65b99d4294a5a4b2b4225cf22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.660-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6bf597370bfb4dc715f91e81966a16402229e077fc9189aa7aefb30b1527216
MD5 3312128a3245443fae103aa60172371e
BLAKE2b-256 0ddee226cd88cb71e1fafce799ad97edc19346c0f3f580bf3edb427d5481a2cd

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