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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.176-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.176-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.176-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0bfc23d64a65f12b069308f12c08088c206f302838862f7179c462898bbca8df
MD5 22414027d919bd884cefb4ee072e5218
BLAKE2b-256 d26bb94a3012dfd85218fe513ed7f8da206cc728508f1ca7f47bac7a70da8a71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b62ec0f03e058bdf8af1e13e5ababc0165ebefaa135fd4effd9976707e8969e3
MD5 b6a0d755bf703ede7a96192b38fa0cc2
BLAKE2b-256 147d533370e369141565768d8035883fa126d8a9d13aa8e355650b03f874a83e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.176-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.176-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ff6f5e2d7ce4a500f00049fb1ae151083a78374bfe011ec7f13749ee3566fb1
MD5 31d97a0a88ee5184d9121002b54f5e30
BLAKE2b-256 0d9c0352f317090303e0afaa26faea0f3e04caac23610848f0e5a37919cf8735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13ece1b27520dcca5c03bc761da1175290a4845874954cab04f58ee1ae642159
MD5 6641de09a75cf6ae9a74a3254f9787b8
BLAKE2b-256 bb6420e18495e1b560309497e584741de4532b8a871ab59d8fef9e11cdde1196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 10e9069e21aa41679ad65b73a9570d948037825f947e14746042cd67b8ccace8
MD5 881f2f36345c9660bbbb1872bbe79b43
BLAKE2b-256 444b2ae6c87144037e2e798b92857a8ab7311bacefae0e81677f39988539b2fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae82799cb994f2686dbaa0e67e182f3b280a4ee4bde0845409d00f05523d7de5
MD5 70b3d77fe576cc23cc7f3ceb5b40c27c
BLAKE2b-256 8530045a53d36ca7ad1e4ee45945bb4d9f87181d38464507e863e5e32c35120d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.176-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.176-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7befed95a6aa4f32d516ce229682327e39993a2dc52f07ed636201919c367e71
MD5 568f4a23f59b12b9d7a9c2de6a38a237
BLAKE2b-256 5011e3fe8ed79574030036d145d4ac69fc9166f4231ac096b66e7b4bdb22260c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7e8ec847480ab6a8e6878b975742529124662bf3902b0b02830cc0da3a51a4d
MD5 9f1c6d911c153a5e66227701f5296df8
BLAKE2b-256 5286466f05f0db41c1f9b999208d14d79d8802f28621341dfa5243441c74110f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e1a396ef6315ce48171c416107257e1e2657331b74cf96be70808f78cabcf0ce
MD5 b7ac77c0e0cf7928aeb75a7ee95a42b1
BLAKE2b-256 5da5a2dfb81002eb874ed3d74b089af91fe11fca69dcbf5ca8ed00423f61a482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9ba3c3b55ee1b6f7dfb9183199b76e5206ebeb70c8686050fcf706f615bff3f4
MD5 cb782982e116bdf9c11e90f9066f9826
BLAKE2b-256 677ec82d388cf87fec05a3146d7f774b11431fcf06056ab17a4852efbf3a0354

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.176-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.176-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f585e99208968d21080c6f159b66063282013be78ad6c501b6de280006192770
MD5 536cc0b2bf152421b8c46722ed374933
BLAKE2b-256 acc038d67212faa595200dba38c92c3075d0b683815c22c050b4c28b12f130fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c519d691cc303beb6a12a233778d83d34a391efd10091cb70e414f9c7ca9972
MD5 353c67f7bcab40ee8bb442d3f0ff2d48
BLAKE2b-256 178d1b49640681bab434ea52c22c03c767d104c948a475bf561e36d39027c3a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3d3a1b97123a28c6ed7af9e989a1b4fbf42322a150556608297d159a177a30cb
MD5 530c1fda93549d6af9bb396d6224f914
BLAKE2b-256 5357ae8416283930c60342bde3510af95954d8a6a72b966835bbddde3ca27bdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 36b25b9fdd67c4b4af48c41b01ba6f6027afb74c2dc1460c69707b410adc9a95
MD5 309f42585d330313cb36e2c8b536df27
BLAKE2b-256 f5c1f9cc41c92acc04079d351cfe5c6237c777d134c94704c94c70642b343a81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.176-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.176-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2db6245bc5f1fde7ca71e4621f5d4be7e92c5347aff77f6852b3841146fb6b17
MD5 eb9fbaf4a9ff55e2b13b5c25f9b19de7
BLAKE2b-256 e7bead0d8a7c871fad1a0deea5edf33fcb9f3ef6042904d55518aba99be263fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdabb04b7532f481bfbdf5462d8ed0468f7e17158f7e5c6bfc1a653f6306beed
MD5 6c4de9ac82faeb11913ea0d8dc1c0dae
BLAKE2b-256 28e4d035a54b1777fe907f35ac3d8417389b4632df35fb30663bb3418731f275

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a2b743ccf657dd78bd04f9ed972ea29b9a486d173951161aa130652436068fd7
MD5 b3b63ae6c883f62e1502d69612f6200b
BLAKE2b-256 5555dd7e875237c424b32a5ef58b75611ea53421e7c3beafc61157b911e3170c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.176-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.176-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9ea322b1b49e6c3536240e59a2707e86882b7a71d90fbf0bb620a5cbcaa308cd
MD5 7b61d3f5ac0e9bf32c8c96aa119219c9
BLAKE2b-256 685a507a9d7105b862d4ddc78a06d63558ddc6466f6f5695fc59cf7fff03dc50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.176-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.176-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f41db6f0cd6c23439c7cd0f01891891dbb88ceec2c1d4b195b992724e088af87
MD5 0c9a0b97ae005abfcd296965cefd75bf
BLAKE2b-256 f88d209147234126f25dbea47611e8e3fc35427b5dce6c49c7fbadf2ee04de27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.176-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e3b9beb8b4b1342cc5887e8f7b0f72a3a9c290c87414bfbaf0d4b625f247a30
MD5 a52760fc7d595bf43433e48fb794e31a
BLAKE2b-256 eae21ce0b499c0faafea7080fcb84bfda6e8cbc8480c44da3916b30f41efa78a

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