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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.14-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.14-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.14-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.14-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.14-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.14-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5cd90bc055326966022df008b61e390eb3ffb6031b899a67c077876d259ed7e3
MD5 26184e7341ae741bbf62654d02ecd295
BLAKE2b-256 e8aff04f60991afd244581955cf34dbde432976249d25da7eaf1ccc719be92e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3661f73ba550b4ba740ab2637469f1c7c364c88ff4005b69f2b14c95118f6860
MD5 7aac6744a768f2e5eaa582d0833fffe7
BLAKE2b-256 ef72e4ad6ada0cd5c535d99a59e3af1c566569b0108790e3974922fef3852195

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.14-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.14-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 86f8049d65d1e8237779c3825d41efae21eed184842cb419d2a61880b1795d36
MD5 d64529e46cf2c2b994fa579ee0e0acd4
BLAKE2b-256 e80dab7bc735701b7628f3f0a6d59bfed6331e0ce7fe8e4f7f8e9077873eb9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 181ff2b8b83dae023afae794beea2f955c214fae3a6c862194f7eebc8ff66c26
MD5 e4f27a032233f904a6240fa136e75ae9
BLAKE2b-256 392870514829b82fc82dc24d6ed2d82cad5cc60fb079521e1bef047bd05eaef7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 53dc0d9ec76a5a333f060ba6fde337daca715bd462959dcc9bcbf29d96865756
MD5 f371bc3940aec1a0124f9a3988a47967
BLAKE2b-256 fae9e1afd3ab48e2e8432fe63df99216e6d78b7bf93c2747c3224f07e47543f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b811a68920bdadd4e9317fd7ad22c632fb2f802c2e6d161a8eca7475bb1e7dcc
MD5 5703609281610c06572772f7ac7aae75
BLAKE2b-256 ea17939f9fae0f1076d00d44f4492020fd8bb54eaa765d4a5e67b2cd9b8f42d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.14-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.14-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fffd7967b54bdfb67a613f15e7d7f11174ec1a791089ccbaf655eaadac67bd89
MD5 336cf8ff5a8db1803c89678ed103da10
BLAKE2b-256 b840cb0fbabb6936ebcd33a152b1f04c1a8669bb5f605c93e11c7a44a85f6458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6a0e391d57a22369b06b961c4ca70a5aeb8fd5ba6c3f8434aa29805093a8461
MD5 4314cd844c41b7ddff6d35c49322b6b9
BLAKE2b-256 551f49d73843356f1588e62ac7336dbe4574ce13c24369a9adf19d4d4b70d07f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 90d0a7ebee9e3bedfd201b94aebc89ab8bd2999312985403f926d85fbf78e639
MD5 6db1b2e9e12c08e17014ad42933412ee
BLAKE2b-256 4d4acd9d527ed38e29403e6ec9cfcf174668a1fef6b6413f44f76e16892151f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fffe0e0dda3495636fe7c8a4feba7714dcb3ddcf1f5afbcccdbad7c15b17f943
MD5 ff5d5f5a7a3a008069e7c6d002250d1c
BLAKE2b-256 03d6ae89e59d8f75080537d7debfd3418873f324ffc55d29908cda871edb0062

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.14-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.14-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00972f2c0544d9ae530ed9dcfc2dd136728745ebd613c5c8348d8c9bd016da62
MD5 527f060fa713f9fe5bd1c0874f5e968c
BLAKE2b-256 9037866b4de78720c834ced67ea5504b9c566a7b33226b399267b3eb0459bb65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f041589a898fac48433d9a7fc0e2657d6d180a87b36cfa7c03872d42b108aba
MD5 564dce2b220a215801f864b7ebc21366
BLAKE2b-256 bbde9f153de8e33e4c0e89e863fd26cc71111aecb4eb95125ccdba5d8375cfe3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c306bfcf5ee8314cc0894df1d9389efd25db7f43c8b17ad51ace2150f4c7b977
MD5 f54c8649e3937369883fd8e566503054
BLAKE2b-256 ce982ee78e40489b6896423e21920b496c2271b5ae7714e267325fd9bede92ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f6f4d734b3c3d514e109b151920a5e3425b059dbb215d4a442ccb6aa955d7087
MD5 cea6aced4cdf6468c01042bcda90ef27
BLAKE2b-256 6d0e6edc44533b5ad1cd317c0932562e0b4ca6b2ff89d0af3d275c88c58ed247

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.14-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.14-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f7bede078ed2d00f5885e55b60d81fbb4788d8ec415574df99b925bd83a1c6f
MD5 18ad60ecd54806ca01e95c2aff994c2b
BLAKE2b-256 fb34a4399e9fde782f8bd1bfd9fbc24f52bfdb52663f19fbcaed268a73c117d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.14-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc72725b48fe7820adc60128364aa420080dd5e02501a02875feb794f00b30b5
MD5 6f8d01c1b5d689854da25686c40b74b7
BLAKE2b-256 5903d5387f2926a559b673343dcb17b3145102aed39e7bf8e51772aed0f1989a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 605a4a1e3806757de5a2d63c30517d21e53bc1de32aeb46ef9470ffbf31e5cd8
MD5 c845fd62cf301352058336a1762566c4
BLAKE2b-256 cfc08880296533364d6abbb3a73464bc8686de28fcbdf86551bcc92375f43764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.14-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.14-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 30c13c6dc3e4d02b9efae8349b08fd4220797ae982da34d87280d5844b65a540
MD5 ba0821b56659f90f8b029e820bd90b23
BLAKE2b-256 9ff96a5424d7e8b367b4fc8d7a07780f31a7d9849b158abb9608ecd8d1a76978

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.14-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.14-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 471da21c39a2e113bdb1384f709d482ce91956d869b4922580c15bd65f1a9825
MD5 5e24a3cb756ca4164f220f6ac7580722
BLAKE2b-256 c692f79e3f835143f68d6f68b8c0b0e77a0b10051217dacf8209bd7d3aaf0397

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.14-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 902e0e0e12657f39b8eb2e10d53627c74759eb9e1af9b6a3aae38da6a2635b09
MD5 72c912c4686fdea40a2c8905d0a90166
BLAKE2b-256 6fc529328f17d3f5a7c0651fa2ba50e45f8fbf40fcbd719bd09cf6b72b1c132c

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