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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.211-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.211-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.211-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 72f548630ecbe0861ce6cdb9a460a77f5bcf0e5c888fa93990624ef32f0d05f6
MD5 61f7afecd887a0e4f90b709783d36645
BLAKE2b-256 2ddde0f21386513c0069fbe79e8e6e114e838fc28d14cdc60ea887be4e4184a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9609d1df9121372b9168189d508a11a8ead6e153b70629c8a2688a25488f61a4
MD5 74538fcce06748627cab54c114fda904
BLAKE2b-256 9a7203455fa8874da1351304858172dfb0b97b81d506bc77af1856ac386addd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.211-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.211-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b596cc7eca47e64ef386aea91e5e57a7cf5ddaf57cc5a910cafa3372319d2ecb
MD5 cda03ae2d73ed181fa360c805dff108f
BLAKE2b-256 e39079f35648f82a4963ced44d76f84f56fc63ce11192233c4a07d72552a0357

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1690c3da3a5623711e66050d6a0bc9c8c8f3db5bdc65c91f5b0485d4acecab4c
MD5 bea56f9437e86c39c6d3c4dfa1a3be49
BLAKE2b-256 73a3a963b78a7aa6fdfdc0750331219898e20771f864344ca0e40d8837622412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e2e8d7a172061b354c16d6f1e244b4db478eff2906fe39b707d4f49dcb54925d
MD5 72c38a1d9f89bf04a48e1465070b00a8
BLAKE2b-256 ee18bdafe5c93f6610b2646e78c2e5f1939d975b3d549854ec830e7a521cac22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0ddff6e29fa7a0357a516f29a123c9d708350dc61d58834adda3ce78cdd13fe4
MD5 6b1157b53bd0354d6e41e85c644c63d9
BLAKE2b-256 fb4489ed478b57c80a02b01d24f979fed51a7b941cca10752c744a78d00fdb30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.211-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.211-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3502bd6e5e8b5803c4fa71a52c45f6df9b050e682291f628127515e63765e549
MD5 33a9bb6f52b2c3848a847d2170e80d32
BLAKE2b-256 76b54886e8f3152a32c462ff25c3a3315e5ebadceddd1324dca4091e69027809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6d54b97e3765a817b27437eea047d92d3da5adf3e280ae93f3de63cba9057de
MD5 d939cdc8ef60a95942806e4d2f27aae2
BLAKE2b-256 254f6d7c93da52616c3faff0f9e8fd8957831156ac58a90506e36b65127afce7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d797d0fbf799cde2c07ce973c3425966466ec8832909e1af03871015e9c949d8
MD5 f4f4d342338b8745dfb2574696228af4
BLAKE2b-256 b66143fefd919efde99439c21601bfd1ef4cac94cbd718f6abba97058b431772

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dae4f4c33ffd64d453502dba599118e12ecf2b4c397987c84d80e8f010e5ab06
MD5 88e47d1d09fa515728a2abb9304b45e1
BLAKE2b-256 0d21968917d18d532fe6d27931686527002caf2f4200715bfe873d40bc9f739c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.211-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.211-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1356a1575ea158c30c176ce934c022a546ec8c701b3711fda33b5d94abad9423
MD5 b4f4138a52933bdf5ed1ee83dd8cada5
BLAKE2b-256 76d6d741ec628cbfa5a1ca23bcc78e87f33f7f3eb96ebc90171b1a8270c8ce68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 462f2ef6a3fc4fe03180bd7f2bdb33a120393811bc37c3396d653745cd6ad0d0
MD5 ec6508e23eb85364b26253867ac74e7f
BLAKE2b-256 fdac606b1b20b6dd02a0139a36e8d972eeae9852c1bc54506baec805acae4e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8588f6e60e0d68376f93491586eed1411201bee9f9559ba01ca6b869e52bb9ae
MD5 93bb13a9db43ed8a9417978a1ce457b4
BLAKE2b-256 ab6d6d167f553b98d32d046f40c2682fbbf64dc05c0f21c550eee2852ad44a9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0ddc1aaba26ae9936edcf7fadbe2f7f0c45d89f70e76cb0eb062d4e9b9ed5e1c
MD5 50985a37c0a98b9d25058c5f8a8630b1
BLAKE2b-256 cc5a86e7a46f558871c57a03397e61c270a162a9dab52775c51fd1254db8b487

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.211-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.211-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b4dff5c278d7606f79e35d75a84aa2b5172837f95d80c9377f43740a6651d30
MD5 c6283ab69c3164a28102f80693624ae6
BLAKE2b-256 86f1cf039e58facd330726fee009eb97725ce62b710aa7ca03a64ffa080b3611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e03dc39c54619eb159f14889f8b93bc20516df8d01afe5fc5e97b486e1b5a38
MD5 1389da80bbaeb01baafb5636fc03e707
BLAKE2b-256 1b752e785b9d45511b276f28176e8f0cee6452397a6cc57d3ebcc82b309815c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 651565140654520bd3bc48c487fb3aa1fcfdee917931011c727c48fea3df7720
MD5 43664eb8c894b1ef6553ad4724cbc864
BLAKE2b-256 18618539b0d49900ba926fe968e5a22c404c1170ea5b13d3fa132755fd480952

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.211-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.211-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9b0ca27900969497ba2c3fabc33912f81595ba44363380e82077765c80d3d068
MD5 3fe605d779fd688cda73719bf2e9135d
BLAKE2b-256 80a78be7a9428aa6f98a84ce3335316403cc590996245cf096d8b2700209b1f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.211-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.211-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f09a3ca812e2ec19500411a600f74260c7643ef39a083595fab70afc5f165593
MD5 ebebb069698347acbed6d39665d4345b
BLAKE2b-256 89c75210cf2a1235d9a10ccf84e29942ba87eec26323eb1dd7e8cd745e871945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.211-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00256ce086e0bc7f3a083dab819572e6ee4de844c4bace4ae3387019a120f37e
MD5 23247800db9fa550227a1f0411715812
BLAKE2b-256 9641806ba6d9cb6f314e2d2d5eff7842b133fff63380c31789aa78ae27dd41e1

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