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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.664-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.664-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.664-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a5aa37efb685f235ae68c08f9be7c2cc83f05725458a92cbe6d34de9dd70fa35
MD5 5fd0432fe9c33255b57cb463143d0533
BLAKE2b-256 aea0714f36e1486e2d1e6d21298bd6ed7d1e85495a9684270fbaa0f6a3c9e060

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7d34d290f36e8c6e3a1c8cf4233b75540c3d7aaeca965fb2900a4d1a7646b788
MD5 489e89a0f0a230f902cbe315fdce3f5b
BLAKE2b-256 fe825f196bf60369f366be98177fed7f8f0f591516530ec3e3ccf7332c27d833

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.664-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.664-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7abb8171bf8ba1170c1a6306eaecd86d6f367d54ffde7614c854ab04a7754ea
MD5 cc4be21128a144f822dfa97629f724b8
BLAKE2b-256 d1a6933b2ce60696d33315ff2aa07bd531373867d30dd6db08afb49ec186af6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bfcf93ddb495b5cb01eae868922a057592f6c9b74e2dc6ca3267e9039abe6ad
MD5 05160200ab98e389c317ce1ab5558c0b
BLAKE2b-256 7c2cd30215e8c50e542e95088645a5924a507acb153f3aee37022abeb4d16e2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63c3238b878c53c54a574690602b097ca70f00f898028f0350b05b0e82d7aa44
MD5 ddc5ec83a52c450f2a99f22b08910dc2
BLAKE2b-256 4ecdf78e8bc584d9f920715da8c4c61f2e6a91780a1e93135db3ec409afdd0bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 25349de0ccaa8b67965547494699c64917e6dc13ae01a25705df4496087981a3
MD5 a12c6938e8dedb9e794d2e54ff570284
BLAKE2b-256 1eb6555ea60f9dc37a42e6d5bc89cc6dfb28f000c6626a28bb96adc99d676437

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.664-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.664-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 064ad2d6661e101b1cefc541284d1a4cf6777515e25ebbe42a98a993fd4af197
MD5 cc122f685b7ff871517064f62a99e33d
BLAKE2b-256 d23906aa0e932f24d7e5d532003918e5a2b4a0cc95e336223cefb7163ad0a41b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc962fc4efb9c1b4c4f49830b530807d9de3f0870ee2760d7b91278179844d7f
MD5 169c061f7b566077f8f138cf17c8a8a1
BLAKE2b-256 008ce2145bb5c9241606587bb23e37104550c1bb0e37acc46902152a3ef8a77e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42a6097ad8b62963372e4747e152fac560a3e0ab3935fa0f58282f52f5d17b91
MD5 ecc6ea74bb9f53f0875cc8b45e34b4cf
BLAKE2b-256 46f3ed9873f7f813810f6a6e7510fa2d3a26f7fe3d9afa262fdc87eaf48de48a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 77d9cc5049f18585d06ff057a1874e85704fdbacd0386255b25a7e00b8a5308b
MD5 cbe60693f83126ca4bf21a556bd7cf89
BLAKE2b-256 6b795ea7ab61f181151e7f5fc790bb320784ae068316a4cd3392f3949623c9d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.664-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.664-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18279c9135a7156a650471c223cd22de2ee96b2cb1c116ee68fb2a3f7ebe97f9
MD5 6a10d6a099a34b2010a63fac0340045a
BLAKE2b-256 27ed689214a51f995145aa0bb1b3925937c5e88e059981759bbfc951f69a123a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a35a19797b6aa912502714a433d0d559a1331de375b0ae34936cf03a1e222344
MD5 7bfb1d7e4335c7a007b042cb56328c12
BLAKE2b-256 1b4b7ef14dfca00affbea7b8deecce41cf716c6a2841cfc67617cac670990efa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a282439297122e5a6f4b99c92d16684fb8eb2a68d8339c1cad456d9b2192012f
MD5 3afb63530920e69d0b56c81fb11a417b
BLAKE2b-256 15e77173a189389cb088d3b78d7f4e2294e2a737ecb92e8cd18edac49beb7e4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6bb8d217be92c2cbcec60338169e1f2831b7af8e76362d7cb74c400dd372f648
MD5 0d55d154520f9484fdf8d24dc93777d2
BLAKE2b-256 bc049c8bef02df8e7c8bc2efb2ea367a2446a2be35401b5b146d1cec0f263085

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.664-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.664-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1b3ec474a86bf0559fdff77e6be15596f4f153c3efd6838993bc6a8d9bc461
MD5 f86fe322f5e781abd4733a343ad53587
BLAKE2b-256 4ab349f6103020e37578dad869c2ba9da439d53146e4f0082569767e97f29ed6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b14bf73ffbc97d7d24e3c6729d6cb6d267b76551118688159dae1b8493bcb20
MD5 17b6deb455c567051edc54909d926958
BLAKE2b-256 040f26a0da33f9a11081194a573a6ba3b222f287bb8f6f4d8a98cd193365f479

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fe5348edf8f23581e1df985515b6793139e5dfb782b133703d6ad33739c18889
MD5 9a5d60554a6c9a3a6b961e17ab55240d
BLAKE2b-256 7439e0e7f4f23dbd3131061e69f9d14ea94e831706f0efb42a4493ad0d6ca321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.664-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.664-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f36a4e3244637839c6f27e69c1cde33bd5723a3d29eeac79facbd30f21148e11
MD5 a01a6d5d1b6aab87d360d1acc9b39d17
BLAKE2b-256 3ee3d094acf572540127faa692f700e6210d0909c16473649e3746e80800f93a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.664-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.664-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bdf20c308706236a6acae77e5e02bcdeeb53155879aeb24f5e09f3bfb5d140fb
MD5 155317a8086506204a1e65027e976a0c
BLAKE2b-256 74bc8c7ad36205865840bee4d141964635418d14f6e14b252b5b232578040208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.664-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39e21edbde42d6add5740f5a7aa13b376dc891c9729f51a2619d7393643f740a
MD5 508473cc4291da834503c2d07da0b8f1
BLAKE2b-256 d04cbb8a65e42ff10be5fb371b45123d91153b42c3e836a6122597d19ae3f8a5

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