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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.324-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.324-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.324-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33a09601760b5215cefe4e83ffe4fc9f83566d9d0d4faee87b43820e1bbde8f0
MD5 22a2a7f69d7105107e2077f61d37528e
BLAKE2b-256 1dfc897abfa6d70800c9831c1a506117bed06208e809c29dafacaec6e509c4ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad37b4627feaaa4a145abbc95a6ea1acc1f8b6c5a0fcb7ee5201807e7cfa9c98
MD5 134480576ba14f278ef81b10d6ea4f60
BLAKE2b-256 d01520af93e5430994fd0391dc798da4e30b9ba070feafb04ff9b719c5c04993

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.324-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.324-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb057b87f9fe90c9c27b310f41c0b0f99a74ace6bcd366440f3817fb6df8ea76
MD5 6d131b16d6c8032bb04b34f533726551
BLAKE2b-256 1d2184c209adef236dd623826a647d08b142f928ac574619742a9f5f36695112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6af745b18f515f1564bafd8d565be06b91ffd9ed0886351de7fd52f80fdb4d2
MD5 58f9c890a0f6b4254278d523344ff1a2
BLAKE2b-256 64c972765af71b0446d67b6940144364f6d5c10fef5ec4ff13035f1fea7c6cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eef58643e0828e35bb3cb89f5c63c8df2e9f3d2dce5754c2566a690fdf7081a8
MD5 442ee7fbe87772a25963f35dfd378c91
BLAKE2b-256 96fc13902db72ef437f5948180320fc1f7851c274716f871f73b17eeb90b626d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 93221a5dd09247f5a7f9bf48576c36de96a2af4659cb143e5eeee28e69767f80
MD5 661a4804d6d5fde7f397735986967117
BLAKE2b-256 efc3715caf10ede09381deec2d098e6baa63ab1b4bd6e86b5d9df465aca24764

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.324-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.324-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e9e2f7e0b4a536d175b4f108b5b8646956b2bf0c7f46650295ba3a77397b97f
MD5 231ecdefc2ec14aa3aabacb57ea8b913
BLAKE2b-256 e541c5c33c67302a70c3bf8ba112b2fe026902594432a39185099b7ca126e274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12f30b72a2b2de4a316a2aa831302040a09c6a499db47ac111c741391b638193
MD5 82c46b5af5f2807bcce9df75a6830608
BLAKE2b-256 7e0a4d3510ddb8daa12271ebfe53e83dcf0e88687f08912d4d20e7fe5f9787ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4558f97e57f82ea8ed8e7964b6859b7ef4be4faa019696caa6c63a79979a741b
MD5 47f02dea8f4cd43563c64199ff051eb7
BLAKE2b-256 1423645466dfcd211cef7bb1377ccf720fd10f227eee057f3732d74a28c29186

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0c3fc4b67e8b0ecc00ec41197f3392b7a6801d2182e2df288a5b3e570238149e
MD5 58f53e994e400e6b64b846b077423471
BLAKE2b-256 4cd9ca209ca5c41791ad1a3eb2d1d1fdc8937714b109c0d3ffa131104cdbb219

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.324-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.324-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f19a031c3a469a81ad6dd442205a84749df6cea4ec82a05f1ead58fa85735f4
MD5 0fbf2574be260e7c64ec5a7b070af39e
BLAKE2b-256 0c43c75c26148472b49d5d312e70b9dd65b98348bf300d9f59007a9a6e7f7e33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecf886d8253dcab5f0d2437f570d50a7ee1368705b657e6e62a912636958e7c3
MD5 232cf0f03f7772f859e606502deef216
BLAKE2b-256 911fa8bc1757d80215f7f9cebc15f99e34224ff62be39bb84eb68138baf54eb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 694614d13184315fa9e40059a6af16520374dc8a2bc408bdc2106dea905e8a26
MD5 125c347968f906b72874544a934505b9
BLAKE2b-256 d5845f2b00ff1615008068d1e998cc6df0ba9e84e7036935860ec7c82e3b22ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 54910c54978ea0addde4b811353725be3a67d06b95a2e23ba883ebeaa21d8f9d
MD5 6beeeab522ded5305542615f4ffa5a2f
BLAKE2b-256 8def44df8b1b594472b1c54c677912c8ac1d9995170ef24be0af754b249aa029

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.324-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.324-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41a35227ef6ca2ecb0549046500ad17343fb20daed058cc341d0e7d27405b68d
MD5 79dca7162410d9cc1de7e0638f0c269e
BLAKE2b-256 dc835580375144f6e87f7eee4d5ee0a92bf55f25b7aa7a6e6de698efae6f5be1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03487df3d28294acc12ab22cdf1b2405b17c78bd1de3b365b237370c02b0582b
MD5 ece0f80358ca2bccba662fd23ff1477a
BLAKE2b-256 b474c66990e813c955f573fefb2aa360e8c3e881969d4dc88b8142f1684c7dfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7845df1188937a1e73a86937ea0e96d2394252bf2d275560c48742129d56e5af
MD5 d6e7da262590dc7df4d20304fef473d0
BLAKE2b-256 b11558066e0c7ffa390860a8ede276ac21d360c8a7f52228b82a1838c2014df6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.324-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.324-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5bb6c134d64e3980e0177b2e661c5414f2d3854c456615820eb74f4274b16d6f
MD5 c79bb29c1a2c51fb2e356e9ab6e40224
BLAKE2b-256 c201c27f94f67b770d14b13c3f5558deac1534c23ce8d851657046f0fd44f883

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.324-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.324-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebf1ba1ddc1f5e332ec8f60c33d1087082e8be9dc927a6cb37c73c9426e3bb6d
MD5 76f740a69bd392384116be608b770c22
BLAKE2b-256 6a5e5a9a4528b915bca497e975417a05782d46ed6be6e69f1cd67c847ebc9f38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.324-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5b64c497b2be159175187c297af4205f72d4928e696a8e4ff441c420500c730
MD5 82e0d6f619fc987438d648ab09c985af
BLAKE2b-256 7d92fba8822a8515bedefe201353a55ffbb35f31558ec75f9b3d271fd776b6dc

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