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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.571-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.571-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.571-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 20d89b38d63c8edcf3dd251b2849c8fac32275f043ee7996e479732ada85202f
MD5 089a9679ee75cee3a44113072b68b709
BLAKE2b-256 f0454c90c4a9080991e7d5e974b6432f543bf618361f1b25417fcc88e10a232f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ea76a52629753a99e0b62889c58a66f707843c6cfc3f1af8a651e0861bd684a7
MD5 2a7df5d7694a0e01d2cd417c2f3b5b75
BLAKE2b-256 c3b11de574444f668373d3fc318c5fca456b7a334ace8c5ba7f040319f40181f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.571-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.571-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 621cf9157dc975e3d9c330378c66ffda1261559f949b04efe23b01fa754fe7de
MD5 ccf63da356bdc8ea671a178953998667
BLAKE2b-256 e6ea640cd25a9fcbfc6ba5535b86f7bcfe03914d99b614cdc5a095b5a92f81b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aad4bccfd8e4e61d9f980fdd61d2c56c0fbde965c0c1cbb0c68d77566820ff6
MD5 a6a407a33e8b48486fea9a14f2556356
BLAKE2b-256 a871396fca03d6414c2963ce355eb854027e28958c51bc3793cb5d595e6d6201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b3c53bd1852adad17daa9614bde3b126d744b65dab9facd814a9bf0e7029c8a3
MD5 081e990975cbc6b25b65992ccbf0e42e
BLAKE2b-256 316bfca51921625e22c6ab27051c2f70c02d1c8947386f498e9c5e71ac84b4a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a62a8c3ba0e171584d19847108cad3a27a8fe3fb23109c90abab48dfa60b7d66
MD5 a8c958142053f5c99b2b0377b17da614
BLAKE2b-256 d276e2aab56dec5eeba1a694571c042f8b09b60c164e5026015310a275203797

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.571-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.571-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 236b62fa3e888c5a26b390b6ddc630e23a807c872571e8bf6b453410f76b7794
MD5 abc1373f627b4109494775d497d288d9
BLAKE2b-256 253dee70cf03b3ccdf83681ea74ebc83b90e670efe15343e99ff63d1c5935068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7760c7f5b528e153b05e4745ad866561ecd2cca2ea1c566a2de9d999d231557
MD5 f2f570161b4ed21da383ba4493ee4f9b
BLAKE2b-256 7f6aa7a612f78cfa25d13cf516350f803fdf692e044d83f26b64a8ec8793e73a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2a6d23b4ce15b24062de2e4ce279b978e45735299577455a6467a92e85151879
MD5 6c775fdc46b16922e4c23938d87f5c83
BLAKE2b-256 16c28f0e12071d62d532a9d68fe27cce15cc8e984bc902c155afc32360dd7ef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c210cd52dc2dc92bebc4dbd204689dd010f91822a002252f58dcabd2a4b6db2b
MD5 94d924c17c3a14ae37c07d95f0680cce
BLAKE2b-256 e82f05c085de022d5cffec74d5711151fddf4ac2e74ca03ca2d33156adffb0d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.571-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.571-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd71d9aeeab1e354c310e203457102a04e1eb0f17e593e102e943a8ee3ce933f
MD5 d6135fa0a9db2eac89be19aaed9f3100
BLAKE2b-256 40644c08b83887d4479c9221742c48cf8a9f3130d5b38b6b2ffdad7759734ae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 365ba0e6dd97a682497fd54aa4117d3ba1de4445878501332bd5760ef8b15678
MD5 bcf10b540e6773b10f83f63e97b67685
BLAKE2b-256 5065c0688ee41bdbcfb667fa2a600b94ce4e0af0220d61c1dca45ef1013cf278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ae20b58911b9d6f8f89a093fb246aa48e8470bf3d7f67ba7abf572a5ea0560c
MD5 d84e26344f7a162215652ed822ff0d06
BLAKE2b-256 517a3ecd132604f85f944dd667c156ebad8dab8adda1f9fcef016ebca494ba91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e1bc3b4f813412dafefdf2cfb600a1ef24c394597beb8ae40b434e293b6d068d
MD5 b8113ebb3a6ea5081e385716ab520854
BLAKE2b-256 fb0554a3c80487c9022ec77c234d2e2ed6565001f90ca14928a7dc6e1d7a755f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.571-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.571-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2af747e331963ce37eb434d8bccdb44b364922c81b000cfd71084319b3dc751
MD5 707295d0a781a886ca6f8bedf08078a2
BLAKE2b-256 0fbb40da03bdf997e89841ac0aff6da7d78635c754955439ef21a753bbf12e86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d018b21393a83ac602166acd708447f44dd3ecf621eed003eac791eb0411d70d
MD5 f73743512f1893b96a8ecf414bf17462
BLAKE2b-256 d1c699749e73a40ef5d43de8b05aaaf4c33a051f27395f3886694d285f5806f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 179fd0420ce8161cfa43040a59b53c5cfaf62631cd7028616a809e00f7dbaa25
MD5 1c653fe688b0a28f1125eb9ede80fdb5
BLAKE2b-256 f1a5d113152e05b06be6dfcfa33e0d293877d8a6e265a77b89c12fc1fd19e8eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.571-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.571-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fb28d83b8ac49d7b2d90fcac534cd737a6ba6231325f577a51176fcddca8342b
MD5 bd741f2d97c7505a0367a995d8dbaf2b
BLAKE2b-256 0ea19c2b4e25eda2095a5174c9d4cbcf002458c75ff06549e931594075fc50cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.571-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.571-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1c7aae32941224d4555d7e3ba99b038958629187b49744681a4983f78ffeb63
MD5 ad35d90ae74016f3a132433d4986443b
BLAKE2b-256 49e110e44b7c9090394d9d105f2408ae5c8648c334d4ae5310d81c6c2fd2b70b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.571-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a6be1a38451dfb1e5e45d32b6763a32e71fd03ffb0236402809db9b5a90e958
MD5 cf7f6c80d0293d0ec211261d48abb146
BLAKE2b-256 be5f5eb935a07fc43a0729ab211f1e748be29c1846a38740b53a3cb914ff0924

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