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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.153-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.153-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.153-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a2c3d0e6ca56bd14b07a44bba6cd6e5017d01f0165fa21d2b232fd04656153fd
MD5 7cff8fbbb479fc7c510cddd4e0c561ba
BLAKE2b-256 24126413c6a0a67d3cdfae36caf3826c27f92273289e4d5f169be80e43bc50ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 275f0e61e2215484d68b2f44d6e660ad62ee2d29ea9828910265a59e93cecb1b
MD5 6dd14f639a30dccda90484a3c161453f
BLAKE2b-256 5b7d48d8cbc5219561d546591e1b875ce8b3bab4063fb2d5e0e6e68a29c3a3e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.153-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.153-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 585b64d526d2082b7cb6fa6c6240e37ee9be175cf4157c0e68d755a0eddc2ae2
MD5 38f040970f750dd35bcb7e2caa096c21
BLAKE2b-256 ea7327d528d6691484755eb3ee4fc3b22dfa03be9caa6f13604eb53b11dc4fa4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bee39967082ac107784bf305bbd5fb7f21e5f905c3dee6484a62893c405d8fc
MD5 bdc89497567bf84effd708a813adbdcc
BLAKE2b-256 1adcbea60e300d80e1b6e983eb865697d552004dbaeab54909e3c2e1d2a10942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a71f3ed56bd6c3c0ec82aac86fb78859036bb05d4cda26f01a0a9e00a416b510
MD5 f9314527a6ae90b997228ce1750240c5
BLAKE2b-256 4af5d636b96388bf233d1d27acd5fb4bd291b247a3bc5d70d99eab0d5f44cc47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ffbf2934809e0a480c98b8db7436725bd1b15ae80b03087d44652853fe0fce9
MD5 b9a7a2fa95e2d4cb1da7c299a9dd04a0
BLAKE2b-256 46b82546a2a0e24bf0ed449521e3e00a71ba3e1e813ac950de06785612f22c79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.153-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.153-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa9847d2722a3ede06f3eac30d2f52e31f7ff6a731427e2b743114bf1c296b88
MD5 5d0c2bda45431dad1ee12d0d57fffe37
BLAKE2b-256 f6c78e86c6d48f8db0ac9fdc5ec031ada23e9d8fbe7f980a4eb72b4e42b037c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 189b51be95886d96856ab33fa2423dd18389b040813f0e8b51dffa9eb6be7750
MD5 c2c8a2a5c00cee8d0d7e0df699782f26
BLAKE2b-256 a59e10b88c127208647bacfe7bd8af4e190ae2b212d5c3557d05795df2f61af1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5d2fd773298ea54f9d5b5ea4af7400beabffe004c87fce2a20bd73f67e103998
MD5 e049dd99ada79ec6984f3fbb47b3b16e
BLAKE2b-256 ae00b5fa1e4af395de0b7c22b3e748275ebd689bb84ebd2b2fcfd0408e3a3887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 779931e633b14b00fd9a263d25ace1a3f56e9cba872b63de22298ed2539a27ca
MD5 ded9426b9135ddd778632ddb7d002432
BLAKE2b-256 c75828ba16c10f3a10d394b19002f252afe7f4b5a21816d550dc9f7003e80715

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.153-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.153-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc17297a81fdfa5f4c826846746afb2d6ad911f3f6c2b1efc83069f76dbdfe46
MD5 968c0bdf8cb0e793e777d9dc4a852219
BLAKE2b-256 31163a28ed99d738fabd2f6b72f9b43326ff88a65ec9df46c9fa5bc00b4d0cb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bf9802b7c4a334a19e88d2da3a8e573a7a51c045e936034de007116312e8ed9
MD5 3eb9b1b818f7ac86af8a0d8bf148687c
BLAKE2b-256 1ee28a34452c626d8a1d5df1dd1756de289b25bd273b0228c94b0e5ba0c9b367

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5d0f798a6743e904cfa001302badd644db7f37a28972604f2c567e7913bd999
MD5 17ddc1e07c6ad231a3f488a83b63d25c
BLAKE2b-256 e2cb7bc73d10bd2b43d4134062b9e97e82170b51abf06726379c90e539f52b59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 682c5783331daf49971a3f1752953e2e3cb3f62493b19609c159504f4d6a6e0e
MD5 a5ff22127a61e3ccac276b61abf5d878
BLAKE2b-256 d9390203958e1be25bf412ad1416fc0743a6d48e20d1f4d1a03ab083deceacd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.153-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.153-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc7388072f9a8ddea5e1b6fe21ad9fc6002b1d8e4708d6a3a93c76b17a701aff
MD5 21d3b61047aeb90b5e2facfee97d3236
BLAKE2b-256 e1982d41447a293cc3520bf3389a0cffa6141a0b48c4f638c8356115a06a0fdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df35602d0ecbf691c209bd41ab0f45dbe2a315b81fa109324e9b74c954f60d84
MD5 34bed431bcadccd0fb015b13be3ad81a
BLAKE2b-256 cf10123ec3b635d659a7fd2b8b925cde5d8fadc43175084f7df8e91b100fd004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 246e90b80f5733336bde40db6885cd46d00022a3143ddf26b379ce0a0db4e547
MD5 2852b67d7806e0accc1bf41686217345
BLAKE2b-256 2d0eca0be42502e89ee33427dd98a26285bcb30680c00e84b1a8e07965a9a77e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.153-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.153-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8e4224b588f8804cb4cc2ffb701483d3024ebbc747934981dcb6730d277c1969
MD5 962bb669b99692ba0ff3e842bd2ecebe
BLAKE2b-256 785fce2009bdc93ffea40029f96d5efc6e5bba8f248dfd8b376d1961c751f23e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.153-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.153-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8ff08838dac30e971f79264557c2f7d0772619e131804813aa46e3b8c881aab
MD5 3557b5a3f783053ebc3adb2fd52eebac
BLAKE2b-256 d0b5d42fb5456345cdc6e929b47508aa7d693afe0a5884c61e502c71d7ac86b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.153-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 719964a9975ba938ea49620f91a834c53fc675a2c28cebeb764a289d3d2b8a2d
MD5 78c9d662fe2c7fff17b8a1e39a78715a
BLAKE2b-256 d07597483c15e375673956567e971a234320c79ff73ddf585f80675733d54ff3

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