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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.38-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.38-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.38-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.38-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.38-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.38-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.38-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.38-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.38-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.38-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.38-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.38-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.38-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.38-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.38-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.38-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.38-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.38-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.38-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.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.4.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7f3fab08596e02ced476fa4ac32fe90cffc41b55257a833013bd96018522cbe0
MD5 4707842cdf743e1c208837a964630fe7
BLAKE2b-256 167fdd8c72b24909bf64c417154c2b9cc4f3735c72a17891b8014e3ed3be7ad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.38-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8f402eaf0074eef25b5d3a7b49a44a425eedb0a41e07890af1b21fdf8293931e
MD5 b38bb6902aeec2e620e99759177fab6a
BLAKE2b-256 f27690e0a7c829686b743e3738e278d2bcdf8dd2b8c2f8ff3638983a652e4619

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.38-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.4.38-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92ba271638ded10f9f3ae9fd626daafd0c846cfb5d26c87e45d51a520a3a9054
MD5 7e7ab64f9aa1007d7d0e50515010013f
BLAKE2b-256 05fc38f48ae662d57da7c2c440a7964b3a057693f019292d241c29e60560792d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.38-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5787449373b13aab5439b3cbafb9c5d01be172014d857c7174ee6aa1f71a19b
MD5 72c6b7f0b101ba1f4717329264e7f019
BLAKE2b-256 fe6b6b41a62b8484020f8e84c12e728f0b57cb93ad9d2fe64769cfab12c3ce91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7398d77406e21fae245a3e9a6ee8b5738e13fd8c6de9b88f51938e3f583fa3f6
MD5 f4f420d5bcd430c4e51a12863a484de7
BLAKE2b-256 8980ae6f37f0cddfd209c3f470e0d61e8775799b6f27f5fd345da900e6e53f91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.38-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45cbab32b2a98d8804ed3a2a90d0cd728ab65c9d338e57682b8855f01ea84dee
MD5 9b8de53539dd1fb641fa9f1a194ace5a
BLAKE2b-256 756bcab91d0f312445cc378b8c97520e095a5ce987b2db7d50dcce9e595a6c19

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.38-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.4.38-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d09f68e6c6e5e2dfc2f58a0b81dcb971a6a769d58b7e0bbaf2047c7469339a5
MD5 740ad2943a3ea873684a08794a6234bb
BLAKE2b-256 7ddbf0f32f0611fbcb2ec7b09345ded11953044b3000771e127b3ea0d9608771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.38-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64471c5f00e5c0e6dcf265efe47a88f1601e96a58c638ff792982f83b13ce71d
MD5 011b1e270ee8fa8a2cfa13530ccf8a33
BLAKE2b-256 d502b96f57105567a9061e262b52459654313400e68144ff76af270ca8b8954f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.38-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 377a414f9282c0917303c7488437ed2dd21a2bbe247d59320e6ce63a8edad088
MD5 e35977a9b594f178c22ef1e3f41ceb0a
BLAKE2b-256 ee66f76e2a1b53c6ff9dc0b5d473dd5989fe312b92d9ef6820b8ab363e6317ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.38-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b9ab654e0662e676db60e4010fc0150f35fc07372e24458b6144e2d14d70572b
MD5 f4387329acb3fcb40f3f69975f986a4e
BLAKE2b-256 4795753d8ddcedb6046f2ed32760a5ed7f79c0523b3ee297c2eaa3410ce1dd09

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.38-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.4.38-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 221038d6de09e09cd4c9f6e2803b2c30f5acc810a89db61edf6a7a5845d5eebc
MD5 e7ce8e42f7340d322ae643882c8f6ac5
BLAKE2b-256 cff3de01c1dcccc8c986bb5cf2a33cd977ff4a91e64de91c228fcd23de0510f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.38-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dcd60b0550d0087df03af3d2afca9918ca5bc3416befa25089dfb3af16cd763
MD5 73573fa06e742bfdd484f25c60c0b9e7
BLAKE2b-256 398964890866bf00d547adc5b96499620a7e3208ac092725fca07891f3ecd3bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.38-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 29565917ae9773c56d3e595f885afe1ea7c17cea1c4abaaceecb7062a7989933
MD5 eea26036eff63300245048b66a928557
BLAKE2b-256 9b115699f160e8b1ae49584a39db5a13cef0bc8466021d0943a198dc844226bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.38-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 496546cfd2af8b8a6479d2e801ef14cf087395446722d6dc5a4711da284cbe77
MD5 f66357d5340c6422a2ffff7cc9626f9f
BLAKE2b-256 a461db6bc624d8abe8910f274a9660e28753a9a7a697a1801b9a30e2798652c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.38-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.4.38-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d920366ca0906514784bbbb366438fb386351b7ceaf351c66187b71ad56958c4
MD5 97950f764550f37a70474b09fc3f1a5a
BLAKE2b-256 0de720eb0b91f4163b4c4fc189c6a1eff057d3a20cc9aca071f1ddafca7ced6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.38-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ae011a245a870bfe21a3b9448959e7b0476a1cc285747996f539569b3783e8c
MD5 15abd9d7fe1ada3ead293b4ab74dab79
BLAKE2b-256 220a0bc5b6477778027dc8647cfbb8bd8f54a879d7fe5e78030f38e5a2b2e5f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.38-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1fc830eb4255dffb7e974c5588d20edf1d6a5b66a5b5c69c9371bdd22f1f8983
MD5 c3b67ab9de843366cb6005bc029bc3ea
BLAKE2b-256 009d55b4b34f4e4e37d4c674bc76daa60003d46b1a5ec53011af4d646e8ad943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.38-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.38-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9bb174833595ae38e109bb40d8345ab7ad0277a56b56ccbc450e18794ec826b5
MD5 d779ba1832538c01e3d207d41fd28d9b
BLAKE2b-256 3c4b2e09b95e8a37f0bc040d552d74293e2d475910478b42ee75c62964972ded

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.38-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.4.38-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df8b6ffa4943f188537406b80874a0e6d9cf693582317f63a1cc9be2b6cf4dc1
MD5 269fa81555201bb4f6e8fc9e3481fbb5
BLAKE2b-256 bd63f2c767a4d53806ae758d7f3ca06d6030e926d9897d97e61aab0480709705

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.38-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aff01ffcdd0d49addabe2f445cd0fefa598ca0b4def5b23914ff7b72bcee9ead
MD5 f63e5bd706ad9bdd8139f627de876770
BLAKE2b-256 6843196338cfc0d81f3f1bf95e48f77d9cbd862714e5dba0b1635a5ee2e5a463

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