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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.871-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.871-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.871-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92a35cdbaa5150af2069e36cd2da3212c049613466ac01f57e942bdc51456cd9
MD5 1b315f16af97714936a966c253f64e82
BLAKE2b-256 61084dc22ee949ceee14ae377c6ffeb60d6eef95ac3a281a7f2f48cb9291080b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 701c5a2f8821d594accd1aca7de42cb08d9ac2514d789e2acb4fb3d75d6183d1
MD5 475969defe81dfebee44fac5d0bea3c5
BLAKE2b-256 9cf7de987c7b714a48445b7bcdc358d6009d605d86686159e71cd64ff4b73b29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.871-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.871-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8957bd115e527e59e22b8c599d2cc1fd0497d9cee7250140c5a0b2cdd70ef1e7
MD5 7e5b97d475eefbcc59767a1221865ade
BLAKE2b-256 0339fa60c6cf5822af1fb0d962f7f0e51ee24db4760f1823c41eed4231eff0b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54a7ef0d07f4657be38dcc01951dc013ff9c6e55c7e590c44a0ca179123d9eaf
MD5 f32b5882af63e712ba32c9b7321b3c5e
BLAKE2b-256 de954665c774d99cde0a3ceeffabe990d7ff0c7747660a7947f784bdcff5b1cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf3431773f00eec859fe3d385a5c380c77cb7e83b4c59c50cfe112166fb152cf
MD5 f6ac302bb1646bacc2f2fc6f9c6c002c
BLAKE2b-256 34c32f7ee39ea0fe9fc25405af247fd4d4cef8ba39c1b908b5cee15c11f5a0d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b1e910614db580039fdc233c678d4595726bad5aa5e50f4d56d6f1ff00d4ccf1
MD5 7eba3ee6f426db88a250950e25f29677
BLAKE2b-256 53eb1176c35e22363ed0e45be88b81930d1a74b35667627c89bb882564b3595c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.871-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.871-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23be901283ed959cad06b93fe3b86e9d907be88360fbe3d8e972ba540c25ca20
MD5 ac6b64ca7599113ceee2d62114a14398
BLAKE2b-256 574a410a710cdcd01c86dc4d6dc629544fb86c2fcb17eecadd967089ac051343

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de6e4080365132d07b190a29f786329e17d79ca526bc0a9d436a0549f324e482
MD5 c49e2e7a2dc6582a7a8cce10ff1f10a7
BLAKE2b-256 539683187319008606e822ac13a8e59e64a38477707a61002b38ce9c6d0080ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8c458ebee81cc79a064d8beffc5c0a795f10429fc1ebb4fb0a6f17a4f6243b2a
MD5 f831c076a109bf49b7e62669e59e15ea
BLAKE2b-256 deb21f26c00e1c01a99f9825223024b695094bdddb1e14e4d83e78cef9d3d3b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6d548adc38112c1beb5c8e0a6089bff4f41a365d9c5b579788d940693d0d95a1
MD5 8357ad4d16b3250f25d85370931ea2c4
BLAKE2b-256 92fbaec6f1a718479836d783725607b64463838cc60e6d16c288d1972ce36e1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.871-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.871-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 829150a503754145f253f9ffb08f436b3241e714f379f304c3fc17f6b490a6d0
MD5 3d52f7315876c727efabbd786384d45d
BLAKE2b-256 1c80ce9c8d2a982c5a5a0bae6df07ef9c9d645fcbbadb1176dbaddcbde47f4b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07509cf62c764cae5a88576f1ea7b05b119e96fcc794e1951ffbdcb08169037e
MD5 dfb5153fedfcece1c6d2804809fd52d2
BLAKE2b-256 8535a5363cfcf39de4511c06f29e8dc8482bb1a1a7dcad7f740a58cf5a119e0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3ace1fa447862c982701bbf0775f24de691cec433a67dfecc8bc5527b8d5b9eb
MD5 d8cd1c43ad0fe19eb3b3b3ffa866446f
BLAKE2b-256 7e5fc53709b352cbd4f72ceeb02470101960f8120b645d4ea7833cd009d2864f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8cfe99134cef4a1bd4c17d9121587701d815bb6d056866a6670880d23458916f
MD5 27a54f5d60b344f241d34f95de830be4
BLAKE2b-256 a313c4d99c928a730283935b59b7cb620eeb4a35effc013050a67565156a16ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.871-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.871-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c763859ed81c102113f2b3b4b531a6fc5adf3a4e0d4334ac22a56e49517a76de
MD5 a6d55d6ffe2da4c9d8cd677bf8fb28d9
BLAKE2b-256 4b6758e2a1fac127e928dfb3f0b0ee8f25467653168afd1c0a02ad906098e98c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42102bf9bd70c87e02319a557afa71234ace707a8a550cbb402c136e53e1a5a0
MD5 16e0e9e68c6427f045d679546858550e
BLAKE2b-256 e9c76e0c4ea73246f7b0e123aea15565ded1832cfc3a1ad8e78da9512de00353

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c439c92f874b06ab9898528f5af3a3982c0769481c218a3729c3e7d930fe7f1f
MD5 7865dba15261658dfa8b0cb54681f076
BLAKE2b-256 749ebbe7c0b70829ee707bfcd4c9e1cf3959d85798ce6e3eb5d3e4ca118b59f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.871-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.871-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 37433cf7ec604b124dcdfbbca05393647bbb78355a426b77d9e6d8b055b0cebe
MD5 b8aa7f8d0e1fe1f3cf07e71912243dc0
BLAKE2b-256 962b174ea6a8f8185a01c689f2b3d32b71efe3d2b3ffe91e44009d7db7b39664

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.871-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.871-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39333a99e9e23224de62082a9680dd8f596e39c9bec545860f68b1a6a30e7d4a
MD5 bce9d5160469310f73c09bc5ffd72659
BLAKE2b-256 40c9ba1a8c977aad0ab77880ab1da4e0bdba01ae1738e6960fc6283e89984758

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.871-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e5ef9334fb88119e96547d68523be7984c27983235be22e04c1d844a7ee922b
MD5 b10f939dc435fb396adbe8b28db202a3
BLAKE2b-256 e7ce719ca93d743c8a42f53f45adb4f6f5f2905788b62312038df7ad33cbaf7a

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