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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.16-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.16-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.16-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.16-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.16-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.16-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.16-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.16-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.16-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.16-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.16-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.16-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.16-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.16-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.16-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.16-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.16-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.16-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.16-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.16-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.16-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 14802381c33c26a028021d35c49867d73213339227eba06de322ce3315c08877
MD5 ce52aadf1364e57f7a282a18270069df
BLAKE2b-256 f0c90a479de424ed9b6e504b4bb84490af6939e1bd7be3ecf0b82e718b15a70a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.16-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f3ecf0c933ea0508b4b9db882ab78aee31cf82a28f7420f7c613234ba67f6022
MD5 7b6b9ff003786ca31590f6e4bda49507
BLAKE2b-256 1ad6f77b34f66d8e8cbdda9526e6e0d28d79e7d514d560d1bf329b165288404f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.16-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.4.16-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff2c82c97b679ed32ef676db513cd20e5739edaac750e976e6d57bb1694694ee
MD5 a35b9595e1b34b3e66f41c54a957389e
BLAKE2b-256 2fa3a6cb48f7f0f553f0ce9a8750af25cb8a000585e930030e3607e97ded43eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d6bf53c269a36e68f0e2020b5a1ddd3f995339b3e55e3fa3e4ae09ac98f4313
MD5 f657ee2456d1c203851fa65563665584
BLAKE2b-256 5180af5c8953d9b156f7285bc880e90912c6083ad80c8718731a82e5af8dead8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03a534ecebd1914ff1c6a8d40d3f6fa0b25c58a76d2e2e1ebd76f59813f4df5d
MD5 293cc8d17718a1628092adeeef1ef6f9
BLAKE2b-256 acb12ee0ccb81e903f75168249b4ab3f8aed54203839310e3bc6ccda9ff503f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.16-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b8bf7dbaf16bc51022f84b0e7b626b97c839a1e56b60a654da07f1f9d1c52391
MD5 9ef6103b27a003178b58034cc0f951fd
BLAKE2b-256 3179bd9f9922210a6a9bd6b4662d948c4b55cee0a5a3a30aeaa52a92beb5b674

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.16-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.4.16-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fe2f45626a6c8365455172aa89ccb3199c4e7d1740c346786460f5a99c2377b
MD5 2c2bf82922c85001d33f072f5bb4dfd7
BLAKE2b-256 9876fe20d0903351d19370dce283b4ddcd86cc5aa6213488bfcfb63f00939991

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2acdcc4b6e8037e4d0cadb250607f3ab2772463667ae44e15c0f26055739678d
MD5 4a6e19e96689371742b646b812aa1d20
BLAKE2b-256 52ab12c41fbf0eed8d3657a16b54af5e3a6caf18bcbbdde84d581119c758f7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4b1a82033188edd7becb794836f203763f5736aac8045e48b25ab0948c92b8d
MD5 73ef03c4160be5d3366a6fa4aab6f33a
BLAKE2b-256 44adbf85e1fc64f215649fb41ff64ca1533e4a14ed61cec7c3863300f6c1e354

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.16-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2b54de797279b5b1e92120dc0341972ecabb5255c61c69a19cf2cac6f39b275c
MD5 e0a25923e397b8f1004799c743a037f4
BLAKE2b-256 f038eadb81cf312078af933ae5d116591260aaa282b69c732935305e61934c9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.16-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.4.16-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca146b4955e941ee65a402d033d3e43ee0bb0a69c45cba6373bee045116413d9
MD5 1489605d99a00f49080dfa4f41dfdb10
BLAKE2b-256 089b469722532eb314fe9e4a4b1b45fa3dfc1362e6e849e11d1a8f004e8108e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f06223b40a58ba0eb0413306b41b7b14b57cc9e5c0a0185e1e7215756e4d8b0
MD5 720766849c13db9107379df804422aa7
BLAKE2b-256 0d29022ff0e440ecf1dd7e706a334f6f34a397290a23de5133d7569145c79504

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a6f6ec0e528e3c0ce3d76866187861c987cc49735e804593d67a0c20871dca3b
MD5 7b0c23921a28fca301e4e0aa89e41b1f
BLAKE2b-256 c752850a75d862c34648a24e1847148bd400c517f519505727519a5c54ec2e25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.16-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3c081361b111308880af93058f3c5d52bac47cba997aaf799fe6a710c111bcfd
MD5 811177f18e1012b16c4b7f6c13ee10cb
BLAKE2b-256 5fab236bc7adf8a7b34bef773a9be5624c13a3ac77eaa194752f8bbb2e220432

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.16-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.4.16-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff7350ed92c30315c617722d5e7ac8bb64581c03aa8792013bf3bb0097c6f7bf
MD5 c1b3f27eb7a0851b17ee0bed1a4b2fe3
BLAKE2b-256 d5e0d39548896f373c2ca3032982dae998720dfb3c479cf0f9902b0537c27724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02b3caef1a18f382ca127a994d45c2456b33241193f4d47b1d497d1affd5ce21
MD5 92959e8daaa02aadd41e1574a21db124
BLAKE2b-256 bf2046902662dd7a0f60f9f5025be5ec2476a0f9182fe29b9a518ca12c8186a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.16-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e174f296afe97f0565f2927f63b22a31f9bc6f1b65b20d5ef5316dada72ec8f5
MD5 10c72353d104b811f0c4216a8048345f
BLAKE2b-256 77719dd5537743d16860d78c45120abe88326fc53b791afe01933b52934b9a70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.16-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.16-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0419336c6d0d2a4e7c2aa00a54f0fb6bb743f19cc0ae8dca7352306d632381ba
MD5 81f74c3e06826ebf8bd8dbff9a51ec12
BLAKE2b-256 a5c76e1bf434423a84dbcaf231cabc342c19731520ef18b54b05a14173d6ef74

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.16-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.4.16-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d104ff60c0925b322cda7ba1d794440b949c714403fe3ab7a4a081e8f0daa609
MD5 b2cf05368aae202a9b630a4976226efa
BLAKE2b-256 51b5dba9ac376935d952b4bca2534d7328d376cdfefdc0469bd0c644b3b18857

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.16-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68f6e6f1fd28f57332b695a57386d0b9461c2b767c0daa23bd8e9c8dfa1ad414
MD5 0a53fcea1efb38e35e0a652c68cf60b9
BLAKE2b-256 206e2f8967c5ac4e0695dd0bb813b75cb424d225d7694adf5cfd44a04d6b2bbe

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