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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.366-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.366-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.366-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 82b8e50460993144a3b55e5b8f2c0beb5f9803ce791bb3bb21c76b203f77c0b6
MD5 9832f3c1854ca7657398881b3db41b67
BLAKE2b-256 13e1f21c774946e70b95202a0405d132ee2dcc7a7f4ab9d9e2116f0a06d63a9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 014ef19ea71b94ebbc487563aa5988fb6c5c97fd68ba4cbc18770db38dcc71c3
MD5 79057ffecde155587ec2a696b620047c
BLAKE2b-256 a0fda47df928a1be07917ca51937ed08fa24a3c42c9c54e7430177a8dcb62898

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.366-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.366-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0dd5934ed7fb44519bcc9bc6827ae471b741c453b2d6590953c2c0faf6a9d2f9
MD5 81427bf070ff717c97c7e0732a7c46cf
BLAKE2b-256 b3b2bca13b45ffefd2671ced4141e6e491361dafa5fb30c0762ada75ab780603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51b7bd31dcfbfb0c665723118844b1a75d0c40b4eaeb7dda5f1d6702fdc97443
MD5 060d508929dfb1748cd44db5802f8bf7
BLAKE2b-256 16e890e718d1b2bf50b284d9936eac58a15e8e58b5edcb6b75ab422db6a25106

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f12ad341e5fe0d373ed26e9ce5beda9fa5dfaacf06160490b190070c929a8775
MD5 2c86d8d375a3ff51c3b944ff4f95eb10
BLAKE2b-256 ecb1862bf5d699beeece5dd369bfaddbd673b03eb5c7ab4184d9e7f27cd1468b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 96bdf04be758275243b77ba2d559f7d0c4325430815aea7eb5c39cb082d9a8ac
MD5 f06e33e675572969029f5f8822987894
BLAKE2b-256 4291a7bf6851fabd801532e999d0446de4e5b40f62370d72e73e3de37b46335c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.366-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.366-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a5170f044392ed41a9511811ada0be56522e74251ea813d15d24051d2b9e5bd
MD5 3ac9b8ce8b4e569db3564e7a3e7cab07
BLAKE2b-256 a0f81bccaab4f369b2e06966212a611c687a3315d32ef7504d9795774bddcee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 486b38e2d2f4291975ceca0c28c219605652da6311f7d181f8da3f7aec4690cd
MD5 3e1caa750a1d586cdbc181cd79bcb5a3
BLAKE2b-256 4d495a1cb87c657afce812faf4071e796ea219b1a3296108654980fa10a29f98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 792b40ad64f7dd1c039d5d597fa4d6ad273bf7042ba9843b8466cdbbfbdbf844
MD5 db3000700d4f7e05d9d3ee26dadea5c7
BLAKE2b-256 0b14361aad66bc6a199db8bbbf38e2aab649614c14723ab27d31007f355c2c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b8705fe1d0aa2b75446f5567bbaf485073d2ccaf3ae4c7a7014102bb1775b65
MD5 b99af0e86e33d2667ede2de64c3cae17
BLAKE2b-256 5e72b74008a09f5b7b6f0d1fe8c8b92c1d584878d754bba636321574281d2694

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.366-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.366-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1a19d4ae4470a90e6e6bc03fdb15a756515f2256e353f37e5a08eca0ea909c8
MD5 5cfc75bca87adb0eb7ad6efc6cb47a58
BLAKE2b-256 dd0dec314d2160b21b6348714ec91f36b02308f508935158dbae1c8747bc8458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7181373193cdf5f0224fee9a5da1313e7c63397d677bbb73baa4034e9bbd6d1
MD5 a3ba892d769c9bc5dc782e122c2951ef
BLAKE2b-256 74e91753f9d4e5de111e69da51d56718e1be629b220495fe69b3dd1c2d900fcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 58381cd023afe8dd01b1939929e400441195f3bd7bb4f53c57da6bcc9727d0ba
MD5 de1e9774231a186dcdb9f0adbc84beff
BLAKE2b-256 8caeeb52a1694211e0273fc1ff87fb0b1c32a4aa5a90686eda403be31f857226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0c3bd50437dd829b6828512ef1731ef3333636436788e2542d9adb887c61d43f
MD5 fb4692650610257b1e5003ba6ad1d84b
BLAKE2b-256 766c47dcd9f6d1d533e980ba1d147fa386d2c20d8f634cb7504aa2bea2ef1659

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.366-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.366-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c6f880ac0642be7647d7b9a952a650afbdef01b8d4e06ced72fb5bbb61a60af
MD5 2400022f931b6bbc63b8f90bd97e156c
BLAKE2b-256 b7ccb11fc16a51fe039d48bd056faf07f514cfd7c3e6a64d7d896d82283b24ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c33b2b870f550466fd09a45f10f627f45da6b3e21cd4ed8f4d15db974151d3f2
MD5 f677cd35087ec2b2677fd4223780ecfd
BLAKE2b-256 07051396f6bf66a217ebebb5b63e4cb79d9b6245b9bbcdd8417e36ecdb69553e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a34676dc89ed22d75ca973bd57ec30259ad2a1dbaf4e0592bf51c8a9d16ef7cb
MD5 28955fded0b99e7ecf68f98219ff9e69
BLAKE2b-256 7b984f93707c2793fc8a0cb5251dd3c1c7581042b0fc30575cc26955fbcc23a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.366-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.366-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 382fcee5841299c5d9a5c52ff2927432337aeca986f48bd277c9b68673348b00
MD5 1ed483979e4e4fda9e45ff26ca400dd8
BLAKE2b-256 0a2891e8e3b7c06af0f0617c4d4eb5ca44ad18227197972bcf0f91228207ee2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.366-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.366-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af46e8fb3953d088d0260d4257fa091f20d96b482497266253cd11f1f8f14e3e
MD5 e2087c2ea6a8b7d7659a322c9d529863
BLAKE2b-256 2cd883d012d66e622ff55e893301f7e1e63070026e745ea0da529290f804fb63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.366-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6811d43037eb2e0e1412301a1188fd39e5d3c4f7ad08d6bd2ad28eac62229447
MD5 34ae092b55225403b31ea90d3c7f3313
BLAKE2b-256 d5509aa9d8da55d9a41ea0647a6a33d8afa0b9c6cf16c62d70700608037f30c3

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