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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.964-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.964-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.964-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 03f40e7f69e020dbcc761d59fbd882545fb01b22b05836cc3383c385f934cd43
MD5 3ab24c2bd7be649e11fc289aca8e5e58
BLAKE2b-256 f8b59b4eb333f36ad9a99e121fc9c3092704607d7f0cc093572abb565a3a6f30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3889fe3c43b05142de515bb3341f2dc8da29050b1d4ce490dd9d59f12b8d623b
MD5 7f20bce05d32e8af61cea6c7f6f7f467
BLAKE2b-256 da40c359081ebc044b409fed797c81668f2234d303095edaa4946ac724f41f44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.964-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.964-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2dff96a4b736355916e24bd79bd78c7f5e20e2b54037b6584d7a3d141061ee1d
MD5 2156b0f471aad8ef19bb2cf9eb6d0264
BLAKE2b-256 ded17b606cb165baf8e87691570d004b10beacf8d6ccb95c8963a2cbe6f259be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1f890d22c86c0c75821078b6ea9fcba50acff12a609d79b2c44c1dcb3578119
MD5 f9cb7e5d55b52c486b230c8f818872e6
BLAKE2b-256 19fbe378c57732b44c02ddd63c216722a4c882c4b4450490e449e6792a274ec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 884488f22320f66051acc883ae23f1cf08b0e501cc61c1b7ddc204d7b751f426
MD5 c596935cec23c34b99ecabce806e6f3b
BLAKE2b-256 90061893286d3b82dad0b914a8b1a3299c1605ddceab5b9889500f557efbf1c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d5cc584743e999ba2944db62fc4a1c3a05cbcfb01fba1971d104cd516460d534
MD5 f1e0ee5317b1fba08c3c5f3a3cc494a5
BLAKE2b-256 d7e7f71c3e57ee25f685061ed6161375efcae54dd898169194805d3673c091c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.964-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.964-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 812b480ab346cafec745c8d0edcfc795912661de338fdacc5db1154d14518825
MD5 8dbfb0b5e92c445626a898f248d4284d
BLAKE2b-256 84630555b0618fb2b55ba9e88d93ef5d7f2eb789a9b7e4829bc6fa1ba8102a3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c016616827609378a9cca01716ddfdeee94bc3df4db9348d1d81fa40d4cd8b3
MD5 09d0c1691cd5820c16913fce73e0654a
BLAKE2b-256 1336fd36a8141658728580656541ee42edba240151feeeb0dfda8f5df2f2a34e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 185ba9d7f31a028ebbac20441bb67839e2e39ba669760fb7bf1952a0e7e7914b
MD5 981288ebf33f33315f8fcb7c00793062
BLAKE2b-256 74801505635a2a23d0a6d1987f1b042bbfc4d128bc119df5f4a0f9bbacc1a318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 59508fde9f72ed0129f96b60253d898f957b8ba7af8522b97c6b9c40972c08f7
MD5 d8c123a81c8204738525061084683827
BLAKE2b-256 16dc86c4f3f05411f740389fe7fde768bf5533b40ef60c4b2007532f19aaf9e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.964-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.964-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cff280ee0a9cfb071c3649d583d1bf3a6e0394a205f48d104227aedc2297017b
MD5 27a171b48e77b363d50928354a0bba13
BLAKE2b-256 5ac47b00653c15ac692246a5b6d5d9c5143c21166500e50ee9b70a1ae4a0f36d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e808853068733614c33363148eba0b86c8c23dca1b2403fd6d026d21f4c2080d
MD5 28da36ba6ee81bdf9798b57d2037e562
BLAKE2b-256 553e798ceeba6cfd4601e5929e9f95d46890fc87e6cf4b3e1455adff566f2bb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b9ef729d773c1d76bbb5d033fc6b2d71a01024628d496e604eb547aa38d42b68
MD5 a0faadcfe0fe9ea9a3823eeecbea750c
BLAKE2b-256 44a23c1928d987ad87eab5797420d8373b7e18e6ce1f269f2e7018b2c912668e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 faea5513f20ed45aa6813ef8db68180b45610d3eb1cd9c088694c5e152d32b3b
MD5 b44223afbbdd9f9cdc6911d1a1400671
BLAKE2b-256 7aaa92d06259f0571390f2cab57d0aa412a5089dbab25d0fe73df5246a988d42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.964-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.964-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 260ba08f9b1fbb53df36029c7422042d00da1ab0d3c70fde4f23e5d768fb7da5
MD5 b1f36ba029593a89baf5a2e774d1f4ba
BLAKE2b-256 4107d2802e5bd43a6e9138898ed0dacd5457fc49061996e7f92ce7d0952406bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6b6d6bc08c035845c69a92c8c9481e446e02593401d57c0b0ebbce4d038c6eb
MD5 59c43f09ff28707f103ebb7f5884204d
BLAKE2b-256 97be06e67f8db6a32596c7bb497ae35e82259b617aa8f00d56f9fbc000862215

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1199f44d9652548f1501c19c8ef3d42d199432ecf46cef777e4802ce2c7acc14
MD5 fca611557548a034d074a72a413c3ba7
BLAKE2b-256 b8b951680649dd106cfe15e3052238093ddfeb6534bb0a14a46ecd8d68540f75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.964-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.964-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6631d0964cf8fb5435ff93c2e4be65009352eb0d0b0b9beb1c0f7ad9378b5abc
MD5 001053cd933747eb09e6abe29fc4509c
BLAKE2b-256 5feb8103c33baa3041b3d3174d3379f2b79f22ebfb3c579bd82313bc0532da03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.964-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.964-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f679dfcbb501b10d7d237fc8f25bdb0cc458c3f47e70fc43c63af96cb747e867
MD5 9a6da1c8a42619a4432921617aebd06c
BLAKE2b-256 16a028c29401a6672c3d69fec1fafd3f5be7933ee694c6a5ef1fc57e570742e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.964-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ce97ff4420148333f7ef006e0fb201df3a57d28b810cd7bb1ad3f94f624bb09
MD5 858eb228554d135d5e27b0201b0e9856
BLAKE2b-256 72cc251f8b666369b18f946a2e86a82fbaf60c1f17b407f203e0ec1bf40e0a50

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