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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.141-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.141-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.141-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 700a546dcae6818e0572d5fa75df4abff36d07b0c27ac5e5a94e3dc71aae0245
MD5 ed7387471a483e736c06832a5c8b7cf6
BLAKE2b-256 15e42df4f32151e298c9286c95b9c39a44d260ff85707cd9c9773b21eefca77c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 651494dfa0731d7df0c65c68e8d62755ff8bc98d0832de6e79d6a0dea0be2ceb
MD5 c59aab119ae9889eeb3b457c841957ce
BLAKE2b-256 5c86fb9d51097efee907364b38fb7d2feba4cdaa6772cfe25f1652f61f1d5010

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.141-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.141-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af9a953c3899f376dab8a870de03a5ee3ea0676aeda6834eff3467a80fdb802b
MD5 3a8b074bb3ec7f82dfc35dfe18eb0e31
BLAKE2b-256 4e52ca04abbadccfb7c15f3a78845b7112e3cb0b2ad6743c92c51b03de08191e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfb3aa301768ab2a9aa7bbbc91a3050cff7e25348dc574921905e19779c049e1
MD5 feaf177b3a358c13c00214ad0a096736
BLAKE2b-256 a2742f2276d6787be05959fc6878b3b94f93604e70886ce4eabe0488ade5d6df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a993b091efc5532707dd03a7581d7fb7864aa85b7a795e2410869d5f8428f7dd
MD5 9785af17fde64c5930a6a306dc49ffc0
BLAKE2b-256 93033cdcc0749fe627081a02b90771c32ebeccf28258f80e884cb90cc719c497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 386fee7dd64e0edd6283672e6aa131f37a87fd9173109e36a00715d202cf8f2d
MD5 fbd65f7a588d80239690663047e34235
BLAKE2b-256 ac8c95c61c3710e460226da54709670abbb65be33bc859d2b947a4c6e2d697e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.141-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.141-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd15184e634862f24bb392951bec98f41925419bbce03cc23074b356986dc9cc
MD5 55590be3288d35628b5dad0d940047bc
BLAKE2b-256 c9fa2e5dca8d03ada85a5e7af759e8ab3ce6111fa73ff6638486da302f0ac951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7637e8f7887a2900ef6e2d382108219aacf39c5de9229607c85c7089240e9f82
MD5 f2103c1639bfa781ad6b7ddd8acaf916
BLAKE2b-256 bbb6ffcf8f5013514a62596ef5f27aa6090dbe7b2c326ec92baf8be5cd28c563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0c0f159842639c49cbd39ceb596118f383d2a3867bf78f81a32fd373314895d
MD5 3799e580ab49669624a495b070856ac8
BLAKE2b-256 65a51763a7d8fe05891c0d1c6a4917870b5d0931d4bc179b94577fcd8549cb4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 55a6defb63a7ed46279b9f2c2912f21e8b7b062f697666e975c7d12bd9b01089
MD5 4f4dc2d068922ac9a8b71be9d50cf162
BLAKE2b-256 c7bb8e320279bdec8d565c4f96efea96346831dc1d1887ea73ecfc8503b39d23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.141-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.141-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 062af4f64bd030ee738ac89894e38c1bd11754d66b58b1f7bf35e2080700056f
MD5 133e7512daf7ba092524bd5f6990a6e6
BLAKE2b-256 bae6e2a1c995ad18b0b2bae2e8d26e3342367fcbc631fbf1aa96d1ebf35cece3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3af6f7e812c3c869102d13cdc0ce9a5957cfc883f6cbeb5d41f755db425e93f
MD5 804a3c15bcd0d86f9f132c2bdf9db6dc
BLAKE2b-256 9eb4bc0a649373b34e874c2f3ce4c57fa9d2b2b64e555b5b9d45a3e29e48872c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c13629d1618d50979a2a78aecbc36937821b206b6eb0783a6da38021b6fa4e47
MD5 0dd20daecfd8947395061cf313d1cbe5
BLAKE2b-256 f1cd46af337dc73a975164500bcca82ffd6f14b91873fd9dd0920834d0148beb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6f28fcdad453e6b9440e93f0ce4243b0d11a13883a08c80d09e9de42007964cd
MD5 59618d98ac074e4e89015cd09eca5503
BLAKE2b-256 b85264f183f32022d69cd037afeb3f8385239651dfd516ce0b57236b3552744c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.141-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.141-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6fccea76f192634bad4257e6bd9d3978839296e725e1d0d1d14eebd94dab698c
MD5 cbb768ce7056801ddcd3ed44bc38c34e
BLAKE2b-256 d66ff90c1c076331cd6fb8bd29574cb89bdb147692ffe2d0b0896fe1da9d8542

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3cf3f6780ce5653cd5109cb15a5d3401c5883a137b11e8690ca9a36762402c4
MD5 4813e2de4ab1426669b6bb7b383a80a8
BLAKE2b-256 4885e4293c64d09969f6c0df0db15f1eb503175d4cf0e5306170ebce521a485a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 96a75184f72e84502d5bc91f76314f8f14feb5d16d3f23e3ad1dbf7d538b2baf
MD5 795d30d90503f9fade79a785eab80eba
BLAKE2b-256 39cf305cf3581a6dd5a160ec847e1531697c25db163162b6959750f8fb6ac1a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.141-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.141-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e00a6314a49dec2e522c94d36b4c74e8536e79e79cd155ef91c443f776eb35db
MD5 3f835503c132e1998759071804f40087
BLAKE2b-256 dc9f9d180e74b67ba726e6efcd9b5e7b7ccc42509317bdcbf5956c1b2d5bf55d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.141-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.141-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52b4332e650a9e7bce8e1e239c39a887b3967b4198ee88b65ff37f9c16d06865
MD5 b77c8b028552ed56dccb27bcfeed5584
BLAKE2b-256 92cc2709bff81f9b407b44d61ae124c016f2999cb01095e5ffefed4d1917a419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.141-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9fc4023eb7d011d92246c21d4ffa31688e4a5b338398a15a5fc450f64b88d93
MD5 2de68b3ff2a616090629dcd5d9c278d3
BLAKE2b-256 115085d4393b5bf663982e2df7f76758e3b1a9cc7ddf39d025e68703db95ff56

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