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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.848-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.848-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.848-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 853625b3c94e2a9be52621fc7cbc50acb0095ef69ef93db689461006ae6b37ec
MD5 c5fc6ee75bac8f5c8c65eb175ebbd9df
BLAKE2b-256 73dd308db13be70a652c4e706a2f431521e89302425c22081a82ff43a06e738f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7f1ac3763e5144f9ff9678a4822bfcbfc4c0df4b233f4824b6332c9a74fa2f4
MD5 20c9b61802dff24d8ebb0d377c0c78a4
BLAKE2b-256 e687e62a16a5746342e784b84c22b55f13dc07c674c2252cf8eb5ecaee2981db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.848-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.848-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 583c32b9e97a029cad0b59696266b5d57f7ba5bff1f2cf60cd1b1cbadacec2c5
MD5 c2bd95701c2cd76044c9e788c60cb983
BLAKE2b-256 f4563c30cfb7ec1769e7bea7ef03cbf9f11f0f2c9f1ba733405824bbefcb1db1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc62de373958841ad24c182eb4d51eb40aa9ae43df21389ab09e072b73ec08c5
MD5 518936a2107af376eef45c02f5f4d377
BLAKE2b-256 155d6bc1495199f31d31989aaf4cdc2150f4bace7f2b7c1e2b8c5882e8475a87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fad5e82f612a0bb6d6de6d0b7f80866ea38e93db24c255d74d6246ecf5546176
MD5 8b15257b289073295e69b7bec9b6209d
BLAKE2b-256 c4a1a4acc62eb5e03b4478d227c3c1ff96119e0ed63bbd1b65e46ef13d2e8d27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 59c37e3e825a592a72b570d2114674e6184dd8a680be1f9290b21f8090527ee1
MD5 85d20deaeab154ceca00e324803d2da9
BLAKE2b-256 81a296dbf47870a90c62cf5ecedb042ff4a758dbf0ea19d55be736911e230465

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.848-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.848-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bd448511f344d840fa4fadbcd23581e11c301bd944fd252a66a6ddf233c3d73
MD5 62f90e40d6f603221d52157821df2a75
BLAKE2b-256 44e4eeda7bce995420a6421a47c907d0dd51a12719d5675d813bfb9831d6bfc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5315339a8841b898ba939ca8fb8a21f0750958ccca22e8e3d6330b22e98ba829
MD5 cd9c6f1f84bba9542c0edcb957c23be6
BLAKE2b-256 a3b97fa4717edf96d2b7e8dbc3fc53125c03aaf7ec9ea5955239688bc329680f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64f90481054bc47a357feca2e3089dadd03b24f09976abdea6cf7b0c589dc66b
MD5 c6008a482b7c5fa0f58fe50858b2747e
BLAKE2b-256 69632048137e7214f4335e7d1f302fec5c21f7bf05d646e21617669c5596f9e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e13ca3ab05eda85cf7c0ba64cf2347e84892b9e81c5ce61d0c7bf2c8b9c13d7b
MD5 5999ccb6b3aef28a6cf9a14a4d94ca1c
BLAKE2b-256 b51d6f9464c6145231d4256e5632bb45c3377f9d4ac39fee3985ca04812b4b3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.848-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.848-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0618b724cdd0444993cfe69bc94204d7e27dd8585496b4bfeb6ec9b3b4ddf3d5
MD5 bcf29f9a7b1b89035bca24dc113e0c31
BLAKE2b-256 55e9d09a8418bda5419e148c56a85aa1c0efc401b8784511c56dd521df3ef321

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5421b02504e0767cc787e5b25d36df5d11a8677c8c3acf3ec789cf7ae6bd20d
MD5 09dab8228d5d91e66c28b469d7b43613
BLAKE2b-256 df94a200acd56ee7b49b42c2a880528694176f1f66fe605663f9a93a97dbcfa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c346678b0160360299ca27ec4711e568afbb70831bb1e2e4966c1d37a02488e
MD5 30cd6905d2a8e9b1dd914db88dd08a7c
BLAKE2b-256 8f80a30c9d93280acea78fde6271e22dade375f8de3b3b331d6802f8daa02ab9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc7197a6cac580ed25eea957bdaade39154df7bc4291136e9d12e95c51157baf
MD5 32c977b16724dcc4458513164f1034a8
BLAKE2b-256 138e134017e4e25f5cec0cae50363a9061ff4408a8850520fff73f1cab076ebb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.848-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.848-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2ae3b924dcf850015740cbe7f92fa2c523950a6948f8b5afe6c9c3505cdf94c
MD5 48a06da27cef1df80fe3a734056c4c02
BLAKE2b-256 49f1d8d035ae1587245fd51a4af37b6cd2203ebcfa719230f59a5b3c3e696c00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86876600efc945700ab461621b751fc6998f9911dc6fecdb1b5133f34f47b8d4
MD5 b7cac8ed2d69991ffb45fd9da4c64ad0
BLAKE2b-256 a77a1971ce159905ed6049f1228343e0b6217d850a24b9d64ecbff6f4040619a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4415a3b5dbee05858a0e47b842b82f324d4ec462134ce5c7bcf0f9ee17259e96
MD5 2ac5268e479c52b93595c48d351bb3e3
BLAKE2b-256 39b7714266276f3fd9f9818e6140795efbffd95ef4373d89d3792cc7a5d424b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.848-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.848-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6f93785658a88aaee2d32579b504b22f8bdc947999b6504613ee9e69e45bf839
MD5 dff53495d282a25862eaa78cad907898
BLAKE2b-256 04898fbacf8b151d72145ddd466dbaed54e5fb5467b027f76d1c13bd628e9180

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.848-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.848-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a41b0abb6ef9126879c6e2a68c9c09f15331bf9e00d315daff561f1b585a45b4
MD5 fd7086ce29fc2a7539ddb1cb4e1f46cb
BLAKE2b-256 d5a36365e78e4b194dee9ee4dbe19f505f2465b31b2d614fcf0807a7ea063f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.848-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d715d049d72b48e2499b52a0bf250e144f5801ef1f93cf2d34a981d48e282d9e
MD5 e9924de7113b8f7835be06befd8ec3a1
BLAKE2b-256 c30f35df08d0e5ac90b361c5afa893aae399c4cfb30d3fd886dfcdd4b61eb759

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