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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.726-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.726-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.726-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb29bda81d39c40a97f6fb3ef039614f7f912201955eeea54798d449925bfd05
MD5 ea381d85cae5e607c1b3f92f3383f341
BLAKE2b-256 b23f1f015892e046fcd2a497dc0cce0f62fe6fc64d1b3f0ba26886375367e56b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c407a7b22d2fc1b2d81695153ae47e041fc439bdb938c272e35435c9f5398b2b
MD5 29046c80b93c5a271641fd14b3fba5bc
BLAKE2b-256 d004daf15fe7ce551d16a3360dbd55ef83aada3b2eaa12a458aa857eac37cdf4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.726-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.726-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c992c65cf3fb6e061f65159a491baecb16d1a0aea7597b8492efd09c931909c3
MD5 aed7b166c1f1fe52b020c25807a62d11
BLAKE2b-256 d93f6dca57def2f0e8aa5b79602a3c0b8556f530a241688bfc0057d72cafc7f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8707b951d36987bc643cb6ae41976b3a43bcec52abd4d9a0e61e7bb230ca74d4
MD5 11c4812d987a6fcacf88eca039b61c08
BLAKE2b-256 7521a73f1ed8247e45324ec59b07697dd69cf89065d676a25f7ba93736262115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 74400f4485e13597fa4045ee62270b685a3c033c79c9446d85f017786f1ec213
MD5 a072d4d8d978dc4c3378c0399138e397
BLAKE2b-256 a8536d7848d08b76fadb5ddfd0c9a2772118b9ea05f7af4627754f14ee9397f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b46b6977738c849b4a4dd46e52b1c56a0183a718cece9af45fcdf1d468fe96ed
MD5 439989bf4e6bbbf36570c0207712e932
BLAKE2b-256 a3451bdcaeb1aede11d07633416ba9e9cbc56606e42316c513f00c3ceb9a9f00

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.726-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.726-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08b9370df0f783e0fbc5c841f41f0ece5ee5d0155418ec44432bd64e74970c24
MD5 5831c7084ffa42662c9f24f6ec768524
BLAKE2b-256 bb3c88f91da84affa9b7a397f24348e56f003bf2f5fcecc9e7525e6adc5268dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e56a0b1761bcbec55181ae3f17f5a4da67a0ac33a7913ce89bef6d300f436b24
MD5 1636f3dde6223d3962e5523ce32ffcb8
BLAKE2b-256 429bfba8ec80c40b418574a57aae5c8f891755ade2b6ae56ada7825561ef322c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 040be4b1916264fed53a356005eba371d7b35a21c2753229d35ea33d424df4ee
MD5 15bbfe976d74b1e4080474a979f2eb49
BLAKE2b-256 5400d68e56a688207699015ade8e659187c9a40935c6612944d24a729f64477f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3f4ea1c2979cf4fe74659fac8f3cd78accbbe601ec9ce32e6e98da284d2b4c16
MD5 496f285472c4ab38e947beb4f54c077d
BLAKE2b-256 3745db675fa97ec87c6cd29c96396a8883007a84679a3b092e522aa05b69c0c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.726-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.726-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9dfd5cd6c4c84348d6466bcc100ae123dd2d4654c5cce86d7aaaee2c8254572a
MD5 650018f22be4254d9d39568c4684602a
BLAKE2b-256 cba22ee02a0e32c5dd2912ae63e84036e9556b9eabd02b780beee110659c65b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2c9ecd8d905b405287cf342e34bb0561fa8aca78d78da92b0ede0d0cba772ab
MD5 69be8b48d7d61a0552e2ad137ad9ed9d
BLAKE2b-256 9c5cc3af51918adaecbefbe2377d1476db25decac91beedaf9beef7d44dd70f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 97886848365c6a957e1de818ba3831baf5fedf06a9929b6363dd2d89f332df63
MD5 ed73e975e149a63fe943cf7c2970b0c9
BLAKE2b-256 89f23d3767a9660a4f359b8d652e88a5af39d32b25a00359874436618637a48e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 79e6b60f74f8824c05bf4cf908cf42f8fcd58352a8e2ac2c28be005282aaecfd
MD5 83d71296b33a5b725677ce9b2a59724b
BLAKE2b-256 8eaa3828a0fdf8fd00bd6542600a64b50d64ada30519ef0fcbb16439280150c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.726-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.726-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 586d56ca6df62ae1124e20c7ccb4108cbd439d89739e245997774b128212f2a8
MD5 dd49aad69102e584f163f881d5c5575d
BLAKE2b-256 7b64c8892754879393cc9ece636d6aed2a95b3bf18ef37db80e7851b3930b4e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b8673f5ebd722ce3b80fa3a12201baf62418c496971a158e526c69bc9103c57
MD5 53e0edd7d787974d8c574ac99c79c263
BLAKE2b-256 997dc8e644ac2319846aee65e22a66b4211c2396eaa409705e4663e89cdeef4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 83b7abf5789009e734ed93d0b9f9e958cfdac0cacfc726a36ec6d0764c9c3762
MD5 4a37387ffbcfbf7c29258dda288b80bb
BLAKE2b-256 930b5f9c70b01606f7a1b40012a021d775933c30214689ba831325c15ef06348

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.726-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.726-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4087827f7a977affeecf840498aedee7fb3765df965f57a57c230aaded741365
MD5 8edbbcab9c91c30087ea966b032c72b9
BLAKE2b-256 6b87c07400b6a584107ac672f8761ae25837b96dbc2705dfae1889f4ce7c27af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.726-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.726-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da57ac54cd0e99d206d11cbc1a3e4db27ee04dc94f110a3b88f94c78b14bc588
MD5 0cdcbdb932a690d3ee6ddeec01aeca51
BLAKE2b-256 5cf08ac87a9d82223e84a7337d6403a69709659cc5bde5f436245b231aa317f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.726-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8697bb49fa2ed4e388fa86e0064398feb068135f30cda9a1992857e90c013557
MD5 2a2521372cf70b8ee9a4e076d7be6842
BLAKE2b-256 babd1b9acdaf01074fb6e72a0191542d1452a09c38ca15d6831a14e21008b692

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