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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.854-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.854-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.854-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c84da45c9963eabdc8093d10f133657d9267033c357989e7150793f4fc74a8c
MD5 c9000a0a16544feaf5718b1253067df1
BLAKE2b-256 66d34029a9c41cbc7ad59ba9a1c9f35c5f3a4b977569e9afe63f096a38f7b1c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f90944b7c2e4c38d2a3c9f5291971b5fcc912f7226685e3e6e4b0dc30bea3b48
MD5 46dfb4f9515c4db420e684d6d2494267
BLAKE2b-256 7cfc4f7abf4fa7e30659e44c2eb0966cfd009fd8f17d1a0a414facc231454191

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.854-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.854-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71cf2876841fdbb2d681960e2efd1c804efb5e959bd77ca8c6ce5b865bf0a642
MD5 883c150bb72b39a0d62130bd0e027f65
BLAKE2b-256 ec25525d9f06b3e2339e82496016a7334dfdaa983b2f4f6d0eee9838e6e166af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d34654e1115567d81147420f09db3a9b093f39866338e34dc0e984e325eab8a2
MD5 9f4f8c2077e55fcf27cec18ce944e655
BLAKE2b-256 0effe6498e14172952855ba746cbce87215cf4fae854082e4e13b80c8c771ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff8eb8b342505fbee088ae8b48605895194aa04be6fa229f61984137d4b6fe3f
MD5 970b3189a836b484a84097fb21b0e1ce
BLAKE2b-256 e2f9585d16585f577d2399e85e7e9571d3b5bf14c798835b4da892898450912b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8cdd6598bf677d740901fae26a0d80c22c3f860b768beabcc115a0914b889492
MD5 eba230bf07205d47305babdac6219639
BLAKE2b-256 dfd5763d1a76a52cfb84ad084b7c9970539780632762051f61689bcc73901c11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.854-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.854-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7159c10fb86d828e3737cad9ec26c8fec20a9b2d5d39c06d806b66f774b35453
MD5 1b373b01a0ee956f2712c2a701e77a1e
BLAKE2b-256 61789c049b7e7d8754e2c46854ba1953689e984d09f8a1f2026aec9b5ed0d5d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bf1e334be1d0cdf913b11d9072f7fb5f599c293d3875f212c0525ba941a2817
MD5 c06d29010bf24c0dffa44907ea738ff1
BLAKE2b-256 42a9d0e8e7b32f547d317289832cffb7939de6655919480dc5d6b972ebb5891e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a1c02f20aa809ae7e135d423f15b71f143030f50bb48412124bd1c8aa662759
MD5 2680ef3191fe4e78dd4958f1c380cd48
BLAKE2b-256 868191a9b40c54d10b0ed1b4e67f9ee096f5b7f0e3f624caa4c1c1a2e0b39b4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a95174eeb87a7f9139b217b3809bf688568dfba153aab246eaa72692edf22add
MD5 2071a0a0bb5dd32f2e2c5dccd86e4d0f
BLAKE2b-256 951ec09261c6acad7873b1d2fe335a883a67ca59ce84ea5ff53aedd90f171073

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.854-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.854-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4646453ec0a51ed4424a718d4e385ec1350688335da50361bc1511a409f60911
MD5 a32c73b270373d22412c928604eb2658
BLAKE2b-256 b8d7755178fafeb791acf1eb304ae5833ce2a71fd9575c9380f42e3b419cf7bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfcee9763d9f5b70d36518d0e7efaa49ba8a20b20a3dbcc565209bcc24e03e81
MD5 dad0b54e3976f76ccf8fd631afa467c0
BLAKE2b-256 09b34db8e8403bded7159bd1c1215148af76ea07536b37265711ee49e93dafd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3265a5498a2a2a29da926ac61887fe5bef445595bb1bb02ab57bf9547dfb9208
MD5 fae97412db0cc10c1bc740bf369a2a33
BLAKE2b-256 58e648caa652131c8a2dc85e7c075976f09e9b560eb0492a10f6b55763d86d34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 21b4f32676cc389a91bc4059882c7eee2a589fa10566a80e937b918cc189a0c8
MD5 36ccca8f5acc8b0e503e2f86198f723e
BLAKE2b-256 47f6c40be0d2333e708f119b5da228fe6cf7cce5c097fd313d6ce28a6b10ff92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.854-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.854-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aae851be6462bb795fd5458042a03e61ce11f8b38f459c98adcfa758ec6c5775
MD5 405680d7a9c10e8af6efb878026fcf60
BLAKE2b-256 07edb5ef2f0bd18c6b527f5a3fa42724482139d7f095f547669676e7d092a78c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7274249f0d45d561ffe290359873d6227565b8d45947b26fe893250675300ce
MD5 1fcec480f591cd159878fb5396188b55
BLAKE2b-256 fe7cc0d685432443e2df5b300d47c9ffb5a6811e30e85d6d3265016a2ab66232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56026a37ae9a7687e02b498a58befed8e7bbb81253d76c03658a2a993e329bd3
MD5 fe021686a3e7cb9f2097ae348ebf675d
BLAKE2b-256 7e8b6c4787a038fec0c02059d3947ca089b00b24e64851ca81c89b5eeb56e0f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.854-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.854-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f95df148ab84675ce2b39b3319cdb4e2aa88343cdaf380ce4c70900eea40d34
MD5 06cf153c25a4d90f9b50a6fb40b4e612
BLAKE2b-256 c54300469351b4e80a00b990f34cd1108c2df2825ed9fdb8885d2b825fff7e94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.854-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.854-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3f14a0de65b9bce1db7310b37f9e534bfdab77292bde1eb2cae5c8271132d26
MD5 2e07a504781768cd938c00dd096641f6
BLAKE2b-256 3cd1302ff4c8a22d7a62e8c4a985d5b5b093c3d06302580cb64121203c2b7b22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.854-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9a5299f1dd6ede10c24e99d9e01ff2039a34fbf11616b316bfa5633fdf69386
MD5 5ec08d90eaff62a4ceb0131f79728caa
BLAKE2b-256 ab91ce17013a15d7478525287bc605af91c05a2fc5f842c8f6a4446d29b63e4f

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