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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.646-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.646-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.646-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb678ebf165348f920eb6f8a587bb06ddb4669b116a66c7e0a821350ace7c5eb
MD5 77988188f30963b28cfc9d21b342f7b2
BLAKE2b-256 468a66496a7a4eaa613fffcece33b94bd2282308d926022358db8954a8c22b16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fa2b982b6c1341e14b628fccbb7d291a3e911c5b917564d9f083da200aa1c118
MD5 0aa064700bde7025543c8023ffaebd5b
BLAKE2b-256 0f0a74fad008688b4a63a6b6b0ba067a463ecd15211b8df6eee6519daf0d52ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.646-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.646-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 914df167b989a0463bc89a772d13165071bd7c005b06d6f77207afe9d696312b
MD5 371323b496703b4ab752bf4178410aa8
BLAKE2b-256 01c38c5ed4848e1ac3771552cefb0130c98be52c0eaeafbb52a6dd7042c584b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d07907bc7858f4ad8c3800de87eded0bfc84bab7a14be7220f060d8c4e381751
MD5 9c35af617f00593ef1b498608c0669b4
BLAKE2b-256 2772b90e2728a648d82bd9f3d57173a2fedf9e2455c2e22b057bc9cfa640cedf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3ca390ffe4a3a7d891a43f8208ffbd83536b1fed933a8f2f5dfba6c3c8e80093
MD5 9c4658d7d476bacdb10a1500deeeca3f
BLAKE2b-256 16b6f1c3d8546e1e4b28cc8c051876ea80f8f76a10a97ce5852631e3f6ada007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a428431e0eda41715ce27871010809ca8ea05f1da9ff33ea4eb330a1e0a59f7
MD5 122504e649a3915bc967966b2ea40db5
BLAKE2b-256 a52bd743e8af952d8b2ff25810d81c98d03468a4d9e4d636f2cbd02c6b8fccfc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.646-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.646-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8b29483b6cc35229005f4ceb11b127c3f29d2055d01f5ffa431cfe0470fe810
MD5 c6bf01bf4bf3fb1743d797590ee52bd9
BLAKE2b-256 8b84ea0f50ad3cd70fb6ab9cedd06341835d6a530cd26976b8af2e4bdefe0001

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce3c8a14ea2d3fb99d646b4e71ce9a36f3f2b26f52b7668ccc8bd7b0319d9fee
MD5 01b284e24abbcca90a788d37a1d9f89a
BLAKE2b-256 72d2a6ad7f861c9e0a4d1f610fb796c5568cafca9befd7bb36a6cf33b3414712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3c8fd9720cf605080fd008bc19102ff0cd343151dc8ba925f71712766ac4c3a7
MD5 9aa4f387bbe441f2894314e7d91e6996
BLAKE2b-256 1bbbc7d73095f5bc06901e96aeaad8bbbf5df3c201e8b1e61369a338d78a7e96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b8839321e44ac1f6ff89d9737a47c6b10c92efd38341b626f88fdf0bf0af74d0
MD5 7ab3f4bd2584028819dfbed972760e07
BLAKE2b-256 cdb572158140f37ce4660c47fb3e188bf0f1f7f57e1a0ed7b6127bbe4da4a078

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.646-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.646-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dafc446e85c103929e786e5183ee7ef34ea0f4656662c11694cfff2ed0eed073
MD5 b765557c048143b7e52e910b0199c7d6
BLAKE2b-256 5256e9ecf24c4b15229517154780785c747cf15acc2684c6b397040d8033bb15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca2e51419ff96177e0b9ac736c69b45764c2fc171f31acda9aa582656c00a4fe
MD5 7288bd79291a3d2cf69891369c141138
BLAKE2b-256 41e8f497513066a96cb64c2ca3010c6b43989c944c4f148309ded54fb0c32b0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 806ba3a046a8f6030eede48efeb721ae8f67857593be9df80460232e112c964a
MD5 bf38902bf54ff78d0be85a3ee2dfffb7
BLAKE2b-256 d8b18681fce556224153f32aa27ebbdd39c6704528a87c821266cfa065b8c618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2db0e794c2ab5f1786e530c9e36fceaf4e9648e8666fe22a64f365ae66c1ba91
MD5 5a4d6d220f970a8f7f8ebdcd1ebe7a03
BLAKE2b-256 dba0c9b1c77e88dc7b7f33dae59fac749f114424c2c7be68bb1280ec1509d09e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.646-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.646-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec38f7ebfd51299336f986a32d3e91e2be7a4637f3359cce5b4b960fa82f6e6d
MD5 0bb92c50def9707135fae493dcda7047
BLAKE2b-256 fe6f0f923a06fc7279102310584613bd0b87bfe5744cc9b9c54fd2f02b03a6b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 774bcb0ee8bb0a5e73cf275bf4c1fa8f6b659253c443094f55cb1650b7f86740
MD5 8d583fcf3ca7645571951b2bbcd96f6d
BLAKE2b-256 81381e8be7335ecfe03f6713a0cfed6a157b4ecdcaf2c93011f7b6140ed28a80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 51f13e632b8f665ca1ff705220ee1cf1d9ff6660a49306b39ebab3b7e3a93d8a
MD5 61881157ea3e0ff19c281420333d5070
BLAKE2b-256 fc8f6e47b2fdc1980425fdd4df49a4ae9c85bc54639936a6838c7f0f5fce786c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.646-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.646-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8a93385154006d2363c71709a20e9f1826403189344f6cc039f47c501a9e5aea
MD5 539f6b6316ed19c72c39327818455dca
BLAKE2b-256 8a42be3298be6a24ef46d2279e8849bee2be48cba69e5b21eb1002e53834aabb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.646-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.646-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f6b841733ac28cbf3e978900476b1a6931f104d108687eb2ea33ea5b949ea3a
MD5 c59cd05209a6af684b8140400242d4dc
BLAKE2b-256 774080a206bde32c899ce6780e0e20ed89bc4fd571fcefce6867a9e4b4347d16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.646-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5be6c1c4221cbc71a325376e5048bf56a938503170ed126b0b608fd345ff963a
MD5 dac6f62ad058a80d410bc2785cc43f5c
BLAKE2b-256 c6165b05555fb83c60022b7c16d223a13b8e592aff11b13c0e6c42c90e261ffa

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