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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.109-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.109-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.109-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 924d3a058a5a8ff772728822f3a9dd1a8929ddd8170e3c974a8967dec7d4e174
MD5 1e96a21797188e2fb27ff6bd173829f8
BLAKE2b-256 a15befb4f36e801af98376921e0b14647ab4b08895008c81510eae8ece57cc4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3f97df8a7fc4533984283e55d980f652df2cacd7b3ae4a743d3860fc2af3374d
MD5 41fdd269cf5c863b3a99a3204c6dfdc1
BLAKE2b-256 f9d03206f928acd4e56791bf49ea3519fac1cc18158846b9d7bd4e40f7b67f75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.109-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.109-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 310aa1315afee4a1d45fe6c563a062a9859d7bf0745d90d2a782eef184aa2794
MD5 72eb08d1a8bb6840febd8dd69180ecdb
BLAKE2b-256 d15838d7b792ad0b5aa7fd9d0b85d8e84c48804feb2cb1a32e317e59bf0e22a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 274dc431f1ae29111bc8ce213e6a48fa611e977a61a3758b7872ff4558a61409
MD5 c9ecf1e1e68f6d169333682de52bc36d
BLAKE2b-256 f2a1e103bf7e24f6f40f2d3bc340af025d5be170643128a1375a6073231ab830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2675b5c4044188fb3416b10196788bba04ac57c362a69ac95bf1f5805acbc4b9
MD5 60782208d0e274b8a460744c6e1966a7
BLAKE2b-256 118eb7868ac7567642b1302662862d48163eef126000c94932ce44a344d041de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 da3feaccf95a82f71ff77f18e95f0347e421bbe22ef931494a7aee769113d879
MD5 0deb4f9893a2fec8473a0ba199044deb
BLAKE2b-256 e35db23556104e44c1677f1ae41d1157a7be95e062aed352794c407727377346

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.109-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.109-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9377df264ac35cf97b34847ba75c7d00eec9e7b3094e15b2373e449238eaded3
MD5 36428d593d9a6b9dd02e7d573f4b144d
BLAKE2b-256 de46bf94546c7a761bf5db51d7b73b389d573e3432edbbc9b6fb85493ac87d7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e21a8efb492c55ead984fa25cc7d51fb00de4afecd9f72d94751b1466a3a77ac
MD5 3368f4499dd1c9ddc0aacb251e89abe8
BLAKE2b-256 423872ecb416e87c2228fec17b3447c30351f82d593de2debb0501062b1de7f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc1e09a221ae7e268fa625788e791039544a9687c74d03cc87886ac8dcdd45cc
MD5 bab33fcb591e7d569ebcb1424c166450
BLAKE2b-256 3a6cabc17494e5c99f5a4978216224f219b8679b214dda6cfffea7d71a8291d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5939f06baffa2a1a9178bc5dc08b746db699abeb53d9abca287fa158a2bfe81c
MD5 a8f5425837787c0385def62e51b0e0cb
BLAKE2b-256 dbf12d8913ef2115cf5be8e92a231b8492c248ebfc09a35b7fcb41446ad2d41f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.109-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.109-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b94ae566481917956bf32425a32769a1298c24b067d486bc0b6232c2a6f380c
MD5 dec84e68ed5396167eeed8153f4d08a3
BLAKE2b-256 65b6110a36601f35082f930891beca9780eb22d141e5420e717e52817e7ada66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b79bfbe1d896ae257e999271d56687d7a0bc727b46acd95459fc233d85896fe5
MD5 aabd61c79862e48d8077a37deceb3336
BLAKE2b-256 582664647cd34b617289325389e74504ce8b35d7d83c9c8ecd526e351226c579

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c864e2913d38fc1ef97a3f51f0744bb8e755b156d06fd6ab8f88214a284a33d1
MD5 13b0c58d4f87fab40c4e331d4387be88
BLAKE2b-256 5bfafb90093146c0617b15ae1c9a2b0038130aa615c830c7682531ee63266849

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc1db842cdf59788e1a5d76281458327009e385f05cf73526427370375bce732
MD5 14921633e6dbc8e668ab8d75d0c8e82e
BLAKE2b-256 537edc1d746b8f1a630f6f98f31b76419fe8235bff49d1fa5ed610a5fe10bce7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.109-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.109-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 781ba6e1e488c4e30dd5de4582c444f3b259e6a59c8e308b3e631f1bd27d1d99
MD5 8a859e53ea163d69aed59254d06f0932
BLAKE2b-256 903dc65e49e8faa14eede2bbd293845c7739c0f03c208844608b7554c352ce61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9337f68ecd8cb618084ac5262663a1b2f4ab70c3f41876be2c7ac7c259e7ba0
MD5 05773bf4fdbfa41409cd096791d49de3
BLAKE2b-256 e6dbfd56229cddcfc458388e50aef7d639f056b321792fb13e696e76e71ffaef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 724d88cc0253139bee10b955ac1515a7f54d420cf2b5cd5656cf472d5d5cfa0d
MD5 86e7300bc9de925deed2e666ed59d0d9
BLAKE2b-256 099966d87191a742132dd85d7e38a45fe38f39122b9725ed777f47de61a41f7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.109-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.109-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1cf7841d08e19fa71555f61aac8f824285e60fa62369343ad921bec2da1c8fcd
MD5 38d91ff8e444e61e7b155973cc982851
BLAKE2b-256 4009baecccf859f437f315e5782436adcf839c426e6499e224c0ea3b4a3f4b98

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.109-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.109-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 290257f5fa4a17e758b1cf29fce10e9df6b66f2867ef24a3d367fa82ef5fe865
MD5 b65bd9549234374e6d115a63e220f593
BLAKE2b-256 17e85e64a94d2841d88be113ec5ce39c0e8eea8fd69a39814013a5f8cc210157

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.109-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 432fe8576e7c8b159b9efb6083ea3b79bb1295ef09bbd6f90b13408a649b6541
MD5 1b4aff367210e1d038c022e1de555c2f
BLAKE2b-256 eb8ec800b106926128893ec888e76cef484efb782a4aacaeab8eb8c6d436309a

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