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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.780-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.780-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.780-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 86b17a6a42f1262b18752b395e983cda03373b5d6fe9e50e1f2d90028a7dda0b
MD5 beef5d9435df76fb6fc207c506d91f76
BLAKE2b-256 40a9c573dd07b7b70b400a7325afd706bbc378babaf69b362bc65942c74ae942

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 81431220063822d819dfabe8873de69fc707817a6192edaf52301c0f350789be
MD5 64e97be1677b89292f46ab266227a5b1
BLAKE2b-256 3ea32dca7eac19ee9951e72f33e4baae64248638991950e6c73f236eb186984b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.780-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.780-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f520ceccb25aa8954fa726d63bcb915e65968666e349a9a7db5a3c4f9467954b
MD5 39b17f6889c7fa5516fec673034a2ad0
BLAKE2b-256 a1b0e1e61b9c8047e3ac754a4a73b8714060d86a11659e2fa4092437b1d3899d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 090e858aca47dbf8d07b7defbfb3306b1e699088350ada80bf4449b124c7cb90
MD5 d4f1de7f975f2e4986428aa379374576
BLAKE2b-256 c81c744fc9882ae885ce33b825adca84c8b6debb1aa7fad8c31702f2c699a896

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9efb2b7b36956402e7dae8faa1e49f4e246da127561ed04e92871e27e700cb5d
MD5 43ecde1f1a8dd4b977a09930ffaad463
BLAKE2b-256 51f0357beca722475d59604aa7a0cf94cd6a42a01aca9233242f2d2caf43b147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 566c195302e7ae74c0b34f622a2ac914c776e2113b98fdecb56867a2503713d0
MD5 9a85ec9a90e6aaaaa28bf42c97c87688
BLAKE2b-256 1dd83827f6e0fb0a8ab20cf5aaff0626e13d97078760ed287e90afe7917e30bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.780-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.780-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd639a2eafcced45e74bc3d549a0b729da03e6e1e283c5cdab0b088d60fb0fd7
MD5 1f28eaf0b2b1351a6dece9f41d3fbb4e
BLAKE2b-256 6822c6eb341767d233346ab825344315e6198536ea11a30e87df83a02603b353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57d803859d395d4b9cbf14043ee5502631a01ce2073f5fcd17bc27a8a01930ae
MD5 d1b2745ea51b19e9487fbb83365167d0
BLAKE2b-256 54e520ea91fb7f5acf59e8579e393238e7cc9b5ece1f1d8bdd941343a3671e4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f765171456abc8a49e477392326f37c466318278b1a3d37e84ac47154018f8f1
MD5 1aaf37ed4bffbb9a1b91437111ce190d
BLAKE2b-256 534eddb1ff72121a77af9114983ae6bfee3a6536fa0e466d07c863274081b902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2e18d15640d141e9e8c204704c2d064a9edbd29734bd113072600c86c364a608
MD5 9e3727612ac621a9cc474068ed9c3556
BLAKE2b-256 8dde81c7aeef0c578347ccf42495a8f202885cf9b86cf824d585db16ccd0d2d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.780-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.780-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7c411876e6f514d2241a30111d00269dae124a4a24e5bcf6dce2fc159519536f
MD5 50e462179cb4f5dbe4cf0029b2c77064
BLAKE2b-256 97516bf5b8f7e8c599dba9cceb388963856d254f02c1dcb4bf028c756e236e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49dec369ea29d62a26e67267b74ae5d1f4b84d70e96a3347c89d90182ef31fc3
MD5 2379dac55148231f0b1f567b60598915
BLAKE2b-256 8088dde1087bc9f935c2916ae39103eb89de7022d1bf8d60aa3c152a989b7339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 694a0058b1b55a6e1611500f0bdbe6be43400c4d90867b1e094a4b2783170486
MD5 606732c4797e7985217e9020564d95d5
BLAKE2b-256 47359f825b1cbeef07deca31538a652b8b722ebb79a84973551134e2e75bfc6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bd9714f68c307ff8e90e67b1d872d40deece9f3a9637cbbca51a7a057bc8f5b9
MD5 13019722c76cbf30f609d6accf90336d
BLAKE2b-256 8f871ad12ecb8ba0635a0b221914316304d9641f3fbeff7b3005f11addbedb74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.780-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.780-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8614c0c959f3ee997365e9bf97ecc3cc7e9345357fb93c457e3cee3d7c33502b
MD5 1088d5f8e17aa2864b3ae7acc1a2fb76
BLAKE2b-256 ec25fbd16a7819460f219e541ff79558786731302e062c676f77a17c58293ddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4cd9cf3e670883c39943b628487e9f40241f04193ce7438b05567d95f9de132
MD5 545c007efab5635c18927f87ca8f1fca
BLAKE2b-256 b69bd812c88bfaa49220e2fee96e329b4caf66a89742af90cde46c7725ab4f1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c5cac37fe05587a62278d3fa7688de8ff17ede4b339944ddc066f119ce46fae6
MD5 d4c2516a82bfa27de5ec0215080a606f
BLAKE2b-256 30117fba5a348dffa8cae0f70c280184021dd32ca9ed7dd61923f7c50d11c26e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.780-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.780-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b4c8f03c6dad46f5fa304830c6a64791daaddc3c078eaa67d9c3e20b1e064b0f
MD5 02544f86b42ff74d9b4e06e99ca509b1
BLAKE2b-256 a4c664cf34c1e54f263f953f1bbd9f6488e0ab758ba262a2354efd9945f6ebec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.780-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.780-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58f6da2a827c69662a390a485f6b7be7f679956715e2c75d5c56782427b85896
MD5 29d0e24c310edeeb922b7c2dbd5f3f87
BLAKE2b-256 b106725bbab695e880260d95c815f44f77b81ddef94853b7cdb3aca6eb0b5d98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.780-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7376e65ff4f678cc1810bbdc0d6460b04259df09f0bb3a0a2e0e65b63d5579f5
MD5 10928624b0ed0f1cd25daee3ec0779f4
BLAKE2b-256 5a4e821870297c3c8034efa3813c09412dc33e8ca8283faa3276c5ba14d531bc

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