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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.60-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.60-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.60-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.60-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.60-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.60-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.60-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.60-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.60-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.60-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.60-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.60-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.60-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.60-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.60-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.60-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.60-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.60-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.60-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.60-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.60-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, 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.2.60-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6e6d415eb7b07902aae7dd2a199b52a7b29231b51bdfed79f6cff10abe20252c
MD5 f8caf3908b0d3697a9af49f162c24487
BLAKE2b-256 1f2765e6c895bf66607879ebc8bf5dc08823f96cd40c9a0a7ac6713e1b24e2c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.60-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 13f528fc0bab10f3b240a4c796e57a6da401d8e93cf4e3b0944c8f5b20890bc7
MD5 018ba766a4eb7f789c0e9149b1739998
BLAKE2b-256 9d48cb37697c49cf5af68039dbc498370c68c5067adbb8c06270f8287cdb22f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.60-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.2.60-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f31f6c4d431b3a626d80ba7a9f05b0dd4f017e6a2a6907fa4756d8389bb1a78
MD5 731468d44598db1f8fda37a6c4fa7679
BLAKE2b-256 9667160ed0d077d35b2c1a27a0d283a3d8d1fe269394e59bb512a9ba0f2e00b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.60-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb17389183669d5d16877b87c59c8417520202bcdfa4147fb98d5d209f84de84
MD5 c5efe28d67de124e24f12a581edfdea4
BLAKE2b-256 52ce0ea3c00f78e29524460a6c4c64f7fcb589b06ec7e6e84c5a8f26d0ca6351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, 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.2.60-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f2fda361dda40158ca010cf6441e36ee0a469ffaeec5a566cac184c243b495ed
MD5 5e11fc33b162ff16e1d84b68e6e1f376
BLAKE2b-256 cada5b82e82d334bd2d5e69b3f75d0a46418d11fd698aac868710e78c3e83177

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.60-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b40e4c5947b348985cb0c1e264b0e2172bf35c0d5efa59b89d086feddcf998cf
MD5 e581d5f1a9c8c6af37cbe81e7fe93bb1
BLAKE2b-256 17cb277c6ac45e3d2d06b03d1b95456798bfbcde3b4ea9276c9be0794f8a5b0e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.60-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.2.60-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18076a99a82ec17271f8a7329d3e9703a00982757739975b7a96c4b108a1e67c
MD5 63c0c3e382fd5325a34964be42148ad3
BLAKE2b-256 58e654f450266292dd10e9250060d91f6ff8190357233f62bd18f22b01be50c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.60-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2078e7e1924eebbce9d765836ead62d631fbd50ff62bd84e79ebf1feb793fbdd
MD5 168c417760a909c00af6290a8ef812f3
BLAKE2b-256 7a7df28d4f45cb45e3515dbfbb8512d2be8a0e7f8154d41755480ee8bdc03a72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, 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.2.60-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f9ae41048368b35c2318b4f12040373bbc164ae6cc7371ab57c71fbdaf24905c
MD5 25b2f2bd5ffd499d433ed2b93bd5a69c
BLAKE2b-256 62320d180d463e653df5732224955cba704999e59b7a0832c7e7c49c21595eec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.60-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 781f039fa7a1f1d8403c8163ae50eace2dff98cc55b5eb1b435d355a261f4dc3
MD5 361b954a68e7f48c66f6beacb4529afa
BLAKE2b-256 3f16358c249309bcf89b0d42ccde29a66734e7ee458be85c7d8c900ebf793868

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.60-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.2.60-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d3f60e9da3be75c646dceffed313576d056637b5d10296fad8473bbf5c7e187
MD5 841feb7bebb362296a4fd2c9077d1e3d
BLAKE2b-256 1e1cf92fab03c8d9806c10e52ea5f0b1c701d4b1d4796f73d83ed04a61af3ec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.60-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cef9e240fada1418c651c8513968f578b2926126a2defdf97bce69c1a7e8fa2
MD5 da2596582c4f217c598756e255a4e3a7
BLAKE2b-256 1d5658fbb37eb9910907b072a977184389d1dc5b4209a0bbd055a411a8261ae4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.60-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23ea80348d970f6f3f96ad3637003af10e19a3170ced6a68fa65e3da58ac383d
MD5 fed00e589ed94f1325fcb1d505d7fe0f
BLAKE2b-256 ecb12df011ec6ef55ccf5bc13cd8c30caae4d01ec5151def50ca2ecd0e9e8f9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.60-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dd84bff3e02b3d704b36c5f9f6d2e24ffbd241013a95faedbc07a9182829a68f
MD5 924f3dcb28dc48514e42e64cc77fb7b3
BLAKE2b-256 a9353c3fad70a887f88b1ed2074240d25c3b5750b39f84681f27c6a2026d8cb4

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.60-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.2.60-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cfbcf7e36bd09478a6a22fd66c443f6d144e5de7684f0ac5889e5f49c7ebd7f1
MD5 a79aa19a1f99c0929c89371fd5dd5e74
BLAKE2b-256 61396f632f4c17eab65940526b6ae1b57efda4892aa9e9724cb6490898d0bfaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.60-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acb58e68bb46d0cf16839f290911199941f468439ee38b8596a87a535bbda19e
MD5 1463c7dfd1a9238c06959649172738ce
BLAKE2b-256 31353407266eb9b58d7b61e72484ec041a82c1b698224da7495a8c77c05cafb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.60-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3e8a4501218f41858681dc9b2988179a3cdc01efbe6efb902ea358197dc9907
MD5 62c2c104c787c2c47950d476b6109a19
BLAKE2b-256 389b87b60adecfb989131151c09b754b537d6e63832f4d910217656de7ae0a9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.60-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.60-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1b83fbb7e3d400a754032125de92832a4a10be36ffd3fe43bdaa1b5e545f9c9e
MD5 209c7e57fd97e69b2f4d5ce5dc403c61
BLAKE2b-256 b5e4c286016007176caccace19d213cadcb8b7fb6a22c6b9756ab8694e5b8c95

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.60-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.2.60-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ff40237e39569b88d6aab2bfd705a86fd8675f02456dd08ec5c5193f1200c3a
MD5 22e45b50339fabb7fc6bbe4004d9b12d
BLAKE2b-256 344c5929fb98f849bbfd0df7812b78503cf7e1d3d348a95ead67934fb5c9b980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.60-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5be70fa3257dd1266b58979d69ab1b1bfb3d708a79e87af44fa0321fb3258247
MD5 617329cf7af642cc7ed920a9e16d00a8
BLAKE2b-256 bc1901b0266391b8422370158d354874d4fc7bd6ea08354c81cec217ecc04c61

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