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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.45-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.45-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.45-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.45-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.45-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.45-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.45-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.45-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.45-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.45-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.45-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c936253b06c80ede649626cc04b417e7e9310f5fc3afabf4c532ed058304a94
MD5 2ae210ac7b0233f0e5b81f40cab489d1
BLAKE2b-256 df82e389f5dd6f6151b97d224c8c0568e516b49de88f142044e98887dcff6cfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0b318cd0e19ad4572f5e92aa1f4dea89afc42ddd832cdf12bd1f28c41913ff5d
MD5 e2ea94024571ea1b7e0706f0dc966635
BLAKE2b-256 abda5b3f40faf6e9da9c4195b3eae7db2b2e7c8196df0e061afefe2a194d8493

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.45-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.45-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d3d8f4a49f340a03477e9ef727708adc82edf80d9e3e2e56632897e97fa6f48
MD5 ce515e8eae9501bea371276fdcf2c022
BLAKE2b-256 564ee05ed6d52c2e5faf7bef9a4b10b2a0ae8e3b7e57d01b4c9ca5f0db6a9336

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.45-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61bd0128a4c19339d1667f5e47ef57b73daf106745766ed75c8286b03e353d70
MD5 a67b1a641499e65ee72876197f9bf83f
BLAKE2b-256 2a1e4192e3814e491e67cb3bae8b82ffbc5502c4a7a23ce7fc4840d450e65e2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 269d01d9c76b1fa7758051588f9ad3b90056752b8d7a0f48f04750ffbd992f81
MD5 1028502465ea79c8c6820b20038da873
BLAKE2b-256 e1e62e3c50382d5affc8ea75746cc4ab3abf66cafb7f405a41505bc8c55518b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 16411e9887ed34bee8b2df42ee01df30af5de8704409605ff9f2b634bf71da4c
MD5 ddf3f27b8a5d23becd6d39ff4cec6b98
BLAKE2b-256 c0a6e7c5e3329fb7885ccdf3bade5c5fcdf9b8bd368d8215142f265a02784ac6

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.45-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.45-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23c5299170e2787783faeafc81798965961d255c2c698e8c6d667ce2fd1d62ae
MD5 003f63d8fa71c743284fc43ef4d0643e
BLAKE2b-256 8ca1b0d88d1b7d05c38f831dcd6e33a94efba9a6f3afeb1e2971b4bd38f2df58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.45-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dc9f4465cf962dae5b2a867b047db2bf374518aff2d735771e04a6813aa88e6
MD5 ce7a11c9a0aada0d8a920abb8db61167
BLAKE2b-256 abe1bee6670fcc410dc1540f0a5dc6a22e471fc1fa2a0de474b755bfd5fd29be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ee9780fbee69903613b5f6a3d47a88126a94b57fa02175d64bec3e9432daabd1
MD5 c1fcbdfeb0bcfe67edf0dbfad50482e1
BLAKE2b-256 4043193c790b1e86f777fb92e8d4a55ce535ff400159c0e56fbfe15e8c232502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b12a20d5c4544281af54b0cdc0125cd5804adc99c5ec8bfab96e67f224636d52
MD5 27e5ad02cb8f8bc29a12b86210e4d145
BLAKE2b-256 bd13b6db9dc5302511108ec7fdae19643c15d610b89bb107d631899144136103

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.45-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.45-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc96ff2b8e64aa37512be203c2c1e5b441f85e6e804dd2abdb00b441c9dc805f
MD5 e3c97a721c3ab88c997c9b11e32c9a94
BLAKE2b-256 7932d803d5ababa057e0d4a67fbb5bd6ab82683f067d0ada6c410ebd62cd5966

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.45-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 258eb2fadcdbd4254109ea6cb80ab26a31f64c6149d9b50f2b83679db2a83676
MD5 cc0324b068e88ab307e3b47fd593b488
BLAKE2b-256 a4875cc3c0f1ee5262d6389ccf65d69ab8f26c33f5995e9d268754501540a96f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a3bb4907e24ea164b302c0d8a0bf140f3825add9b59cda001cb40ee04e8ad2b9
MD5 67c40fd5bb9396f2dad3f83ada60d1d6
BLAKE2b-256 f98fdc91f9cbaca42a874d00c76b7d94bc74f51834064c7567345cfcf84755d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d3705fed0644817abfc29c63821c75d4d1197a6c964417cf45c61c3aa89be098
MD5 e2d6602c7d165bd5a0acea698978feaf
BLAKE2b-256 796ecfd4bafd4ca4b6501d1fdc71aeddbcdcf36784db36f3126c8615e5948f3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.45-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.45-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dec0b11b74b338367c300b84bdbd39fecf13b5014fb487a5d641088daeba4c33
MD5 5fa63b4871c3e2c50a58453428f77552
BLAKE2b-256 b94020d1fd25d9730204ebd59fba2f98be82b9d4a39def6f674a5dc5429753fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.45-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c979937cf54b13e54cf3e31a342f2ba2ab203359b4950f4b4baf8386e0f2d07
MD5 d80b7a24c87b8b7d09778f70187be2b8
BLAKE2b-256 ecdc360c79c3713c303491af0f6539143ef4ef194a80bebdac2a1f33f77617f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 daf75cd6d1fae3544c8807268e6bf81c86912b3da3383959884223e7d42cbf60
MD5 60f7fff3d48935b2f8ec1b05f4456b89
BLAKE2b-256 55fa122516cb1ac203eaa4e2ae7c0ad78aa600af36fc751f3262cc05713a36bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.45-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.45-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 881f80219c00b90452d6ba14c8edbc6dc9a56617ec4504633f9ea9223b27f5db
MD5 a7e568bcb8647ddc308f9ef6171abd0b
BLAKE2b-256 ec1dca648eeaa15f97a1145f72513b85408dfac7e5411712fa4b0500c0097ceb

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.45-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.45-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a06df5a2cb1c5923b4224d30a6ebfbd689f09fc9d22426f2060a8b2adac10071
MD5 d64c33e0499b48eb89c501b5a4f4e292
BLAKE2b-256 92b88bbee85cbbf22fcafcb5bd2792622c013b38f81c4ba339e15e30c410f68e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.45-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d206d795fd986df1b4053881058d20558e07174c6fe4a84d80a608ce909fa05
MD5 1960b40b64a29e2090351b2bc4e64d7e
BLAKE2b-256 18d7efd0a4b1c2b50db6a55bea77ed55fa1be5d17c8a5060aebf163b25c5db58

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