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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.863-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.863-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.863-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 719b5af9c83ed5ef2a18a8fabc7f7e4ba72a8a13799477c9c7e3d05018b63f9b
MD5 dc1530e43f05c22fb7074f7e5000316c
BLAKE2b-256 97b75025b46d42a7661811727503bd7dd162c9771f10ef56891aab5f5c701dd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 46489bd58f551a1add10f315c212e175e44249217092acd9cc517814368784f7
MD5 eefee9e760f8f77302ab8af87a1c3354
BLAKE2b-256 aa1660fb3089d73f10ca7be4c5c608a4ede0f4fc9bab43096bd527ad63e24aaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.863-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.863-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 349d2c8f11ab3c961fd0ebecce6948031066fffe0b08a24982ffe24d016e27e9
MD5 de0b73c490435f19a472f8059e31e26a
BLAKE2b-256 d2655ab7c81ff3fc45ecbc85b9810766a01720e030981ff0356d774296c2050d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2945c385bd4b65f558fe201a7cde5965fb78f37a57d24c9ce19bd1d7ba4aaa9c
MD5 5e46ad3d3ddaa6afc86c9432de23b649
BLAKE2b-256 9bf9c18a84bea32fa874c6aa0844b33fa094e31dda8dde6aaf3bb5ca22926de0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 41a585cf24decc7300ac6eba17c3b189747b195d4a7b83826c23b77812fd0db9
MD5 f904a2f39038bc15920fe2b1c1a5a965
BLAKE2b-256 2a5db52dfcdfad4ab7b97c0f1bcdac5d1b81fa9764337c31dd8bc33b724f1724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ff4f18ba9c61a96e484b8980c10a19603ebfe2a61dba52e4e58b973bcf50fb6a
MD5 4f592e0878b2ff1d64c5cad765d73b38
BLAKE2b-256 45e87653dc41ab227275cba11f67d17a636d0030651e40391a2441a9d67c6498

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.863-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.863-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6d23d6856d07e2576429ea2430c7164c272d2271e8f06f931502f2b719dddff
MD5 47cefb2850be9342f57cf3818632afc5
BLAKE2b-256 e747286787ceafa03611476cc47246f56073eff191e709f8cbe29ca62c22a094

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdd792d5bb917f67e4751a9906270817a78ffb577ef2227b0bf17694585b0fef
MD5 250e2b7e74e3c2527cf7e8e59076cf91
BLAKE2b-256 2419900ff561d7649591d90b6414063624bb43fb356bb164532e2ea0ad5a2014

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 254dce3d33c247c5849910766a04e5a1d0dc069cc4ce54ecf5d2eee910c17ac4
MD5 00d5faa85695bf979626846a4e0ad47f
BLAKE2b-256 98db9e0fa2c0b0effb4a5c24ca3bf699f93261874db61186270a463a66e323bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3541058795447700579cb25ac34aa6c35ae3b229c849176f27dd8a0dde8eeaff
MD5 be7ff430a5517385fdfdd8b000f53c54
BLAKE2b-256 d1312d401265cf66b33bcaad354014b19f1bb8183a18ce710d5f8bb6811adf17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.863-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.863-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9577eeec7a16984ea00312c507d3c64ae9e25b74c9abb27b185cec2ebbd96cf
MD5 17e51196482180037601f6365276840b
BLAKE2b-256 4a5f6ab02ca21f0cbac48c2df760d9013c9bca6cb82e158215e12144985461e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff8183741458af533ae684b29c4147aabb5c4a9067357fd3118d534e34f73da3
MD5 2b4bce76a3c8c3c8e0bf7dfe68a90c5e
BLAKE2b-256 44469e88687acc9d192b62896f6140b02d7aa86b06a4b067495de719d01e8456

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 46b411218a1a3a914d28be6bac2acb5e13d398a17101c5ab1498063f904d343f
MD5 d04077b11dfabe87c424b2c72b83fa5c
BLAKE2b-256 012fd716852fb6790bbbf0527723cfd57294b2c33fa6edec85f015918357af32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cdbc5d650bca5f286031c911f7e7ab930f80b46253db58a3ea541765d4a178fd
MD5 e2f92084ad63c1ba4184ae44a85715d9
BLAKE2b-256 3a13530c132e9603d4c1ceda67f2f5dba1eacab29a775edd693e18aa6d1351bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.863-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.863-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f162fd89309ca60498140ad93ae4a71f2828556100cf6812c8f1b4b82f5a25b1
MD5 177163d80a03f947287d1310e6259657
BLAKE2b-256 c2727903d81d1bcf09a51e5859df3bc477df6fcf0c2051cef65af83cab11d563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63b8a6f0e160deb54f4e7f05da732ac04ec95ceb7686805e01a883ae1529a9dd
MD5 97831009e4c5300641a079f878022eb1
BLAKE2b-256 c2cc9f9354f104e2d316b144e41bbdf487d0d8c4b1f9f01777a9eb52183a1406

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dd3b0089f912e1c2d2a370a026b34eff10fc1c946263a3b0e50333a53e348b22
MD5 ba0a3c70d1fbf5e5da9f9583d1941e8d
BLAKE2b-256 0f8936fa2067f3fa75894225c9ee2dddcf771fb4653bf8bdbfca67e2152f1e6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.863-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.863-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7cc631bceb380a1624c65d0526501e74f75dc27116b529468d1a38761fddec66
MD5 644b0617351522c4f6af87155476b5ca
BLAKE2b-256 20fb9724165548004ac2f59b86089d00f0e58b4bd360414b67b5c81074b0c77e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.863-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.863-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffe63a5be96b68cb42a17b0077c4a46f3c11cdb7b95757273547ee06e555e7ad
MD5 519497671b985777c16a59a4a9fab3de
BLAKE2b-256 b330ecbafc3ccd51847974a8bb3e05cb284b28a904f8cb63ed90c454a516579b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.863-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b43b4d902c24441c9c18283e11bed74662c9dd06af1c2b8dd546a7549b6155e
MD5 65bc8d76c54efd9bfcaaa15a1b71dde7
BLAKE2b-256 09760f9dc2f0904f0a5a13d0493e84acc2ef282fce324ce7e38b65532dc5f1b2

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