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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.937-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.937-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.937-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae7dc662491450aa9c47fe593a2798eb0b3a1e7e759c04e80cabf4aee5a9b2bd
MD5 89e9405ef54fb4103f4bf6f7b0c8ad12
BLAKE2b-256 58e6a4f209692cc537ffd5b59a971ec4fc4a35d38567a1c192c1d2bb34f9d637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 00f8b6208a6648d767bd5a6ab10d5ba5a50e10057d4ce1786172ca88bfd3abd2
MD5 e16b666348d457b5c501be552c61f38a
BLAKE2b-256 2e3535062d0a2ee36ab13f86c3395c01508cb03c4b4b8868a7b192f87cfbb407

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.937-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.937-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17b1481259e635f658404b62ffab531c4cc8b83fb1a395c7f8a72bc421da719b
MD5 5c88621f61fbae3fb484cd79fab66387
BLAKE2b-256 3035f4913feedb449b33695293678e502709e98026c6404a2d218d0a04a2a347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fe8a5863b80495f96ef42376ab6114563f808024b6b5002620c2535be8da19c
MD5 cc157d33957ad07a946abac8751fa8be
BLAKE2b-256 7b87936fc06384f71d3386f325d1d87cc54f24985f97e3b6c5c38def7efaa58f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1ef73cd0104e43b256fe65f3e2dc7487ba35d743873ca055313da6244ee2cac6
MD5 bfcf559481c187f002fc37b0296641bf
BLAKE2b-256 a1bfb6f919da39ed32a861149115e883c0669a8bb2de4fbba7b85733dff4924d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 36476668c6d4ee6b3cc2b77646b88cd44a821fc9c0ae9a4c66dc3ff3d93c0e13
MD5 9e9ce4d131c5216119990de4bbe846cb
BLAKE2b-256 0e28d9cb39363a8d0a53d76477d9d6855ad53865a0f9f223c70d4e07579ac0df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.937-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.937-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5032abca232cb33868bbb665bba637b667d014a7af317e25fccba698643c57e
MD5 ac291097cbc0a6a3fd9d740f73162c0e
BLAKE2b-256 31e49ac77380de0b3c28970a399ffcaacd062be36e51ce4619ccab9ee3fb7dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23a2f0d7dabd697279cb7fddd965d11bc5eb2af06d53b41b0c605c8ed10f3cbf
MD5 39a63cd8301a575aa96c07d8fa4b2b8e
BLAKE2b-256 28beb249d68a593026960f477fd99349ca02d1a7c9a960465c99758dbc4291d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a6bc01799b387a0e1167745b90225136afd551fcc658c3fccb8e0794e7ca5fe6
MD5 47e182c58da8c656582e9a898da35532
BLAKE2b-256 9102eeacb1ee61fa149d26746e8dccebddb89d1592656582e0228a45ac94a75a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 35917d53527297efa1dcd51ba9cb9ebd8c2035ae05a78e2998077b7a0e319c42
MD5 9696274c842c582898105c12e4637fc7
BLAKE2b-256 6da75cc21d4c8d5389ca1869d991215ef91e0b1b455abb3ae89d06fc22c87a23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.937-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.937-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fcbaa21e82b8ef7068eb984e236820c309f99c7ae24e299694deb7ffdb087bc
MD5 290b739f37620c7b23789ac59117d621
BLAKE2b-256 1f2bee6472ddac6f9fb29c01710800af6da82961cc13dcf1cff6da4d12c386df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a1582489ea0924c3dc59f1ec6a72e290c994a56e76ddb2b5e951139bb2d0e7d
MD5 53bbdbec992d92c7918c609f989950e3
BLAKE2b-256 896ecb57280668869b045ef8c6d8e3e49b5ba4d37aba20da1c2fa20f27a22dee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dcc5681fadfbee721e811a10bf7370d24a9dac50d0f148a92e9711a10b90eb94
MD5 c7eeae285b1be56929ca15f7a83707f4
BLAKE2b-256 bcd1960215dd132d48eabc49305d99ba0f3f4a999cba8ad8a2dc8683ae3aad2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6e3ff7f6d721ba79fe4152969f3b720be9ad784816f468ac890e4819fc7d2751
MD5 19c62b693e468fa09451f2e79f829d36
BLAKE2b-256 b073149fa515339e470ce8436cc8bcd1b1e34221bda6022e399016772f84e4e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.937-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.937-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee4267bebf19704927bc6659cd1ae56d89d5db1d37ac4679966c7eed04be57d0
MD5 179ab4ee5c9980262f4a8d64935874e9
BLAKE2b-256 5c56db08b60c2ff49183f8fe0aa03e855fff5a0c1f4c77d1b077bdf70e7aced4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 478aa9449af6601eab356bde1af3fa3634074eb1fb6ea9e660769d3e0d637144
MD5 729020ce105b2545b62502725b14e131
BLAKE2b-256 49b31332f37a83c54b07d6a493a3fbba74ee91ea1e780268a592b71871d72028

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d43c9cea22ee907c4978fd5b410c633d29cbce09c5f8e73dabef738655852a1a
MD5 aa5da91a35ed6a74f974f146ec32395c
BLAKE2b-256 2a800f11a090992f1246a88b1800d31e264f60cee5d7c4a313139a026577ac29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.937-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.937-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c62d4288a1d52437dc66e4944a6bc6fcc00b1b3a0c675f001b0780ff2b0ab896
MD5 10cd732e266f2302d3efe7430c39a2e6
BLAKE2b-256 25273fccd256ce4a6735fe7c6989b636fa35c14fc178984bdf6aee465e4de64c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.937-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.937-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39b44d30b4fdeb45bf775cd909b8ab6358da924071ec617facd51e3ef3e34317
MD5 8432c9e6fb5b3d02db1a03a1280b3509
BLAKE2b-256 49e38fee14718afcca1f494a7b9b8224822736ed52792f2c76ac96410f057907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.937-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 662c0c2767452cd40b528ca011a6faf65ff5e2342175efaab4b8ea23efbb7f4b
MD5 e5022700fcd6e1caaddbd511cbaec137
BLAKE2b-256 f7371c22c417c410d2292922c0f0a186dd9b2832a28a2f6d33da00063eed3b90

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