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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.963-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.963-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.963-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ebc49a7d16b3a097160b232d2ecc91973f0ada54b0ea4c8f3c5000acddbf016a
MD5 89fc54f06e13dc53b7aaed03bddeb3b8
BLAKE2b-256 01523782704c3a4695a7f07d4435835125bed0486e49b0e7c22ac9dabc4ad509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1672ba418dae120835c7d270a8cf4ee31ac95b99e316d0f671877665d8a3c20f
MD5 13959906ba7b62b927fac7316241944f
BLAKE2b-256 11fd67135676588736182c382377b5b1bed6d3632e1581f12a2a8a882ef52148

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.963-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.963-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f43b047c60b7aba3f23bb5ca93a27f8546dd861e917f97855b0fa47b49a5b20
MD5 54872ae5de07805205a9bef8a225dfe1
BLAKE2b-256 81bfcf6dd9f8299337aed2d86f0c77cac020ae396397b364dedfbcb90182dd8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28edc8e6a3b5805c600a90fbb6049d2b6423f55ae293c59088caf9ecc56799da
MD5 3748b60967ab889e6f1cf07469aa0885
BLAKE2b-256 902161c6700b7a7c076da5b691410dcebc969f9a291ab49347c9df1a651dfeb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b9181496614fa1efeb9bec2ac7835fc8c6c4d42bf31ee5c3caef010b471c29b
MD5 9669eea6993e2c83d92811eb30379e24
BLAKE2b-256 de7a959287fef86f1d6e1e4533bc198f74054b3926a86d465f9e2dc1de677ac3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0d6076dd4ed257029956a7c27a4ecf2d2f2625e1d5b27b16f47c159de07c6202
MD5 df3d06ca7ef55723de7868be9acf7963
BLAKE2b-256 d45b2c2e7f9517e069e4692fef12501927998401665d81b5d1d2e9da77588442

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.963-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.963-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2eb911651dd64139541f55c69ad0197649ecc7519e0b10c3aaa8645a196ad90
MD5 6a48b49165d721c0bdc46d936b9f7266
BLAKE2b-256 a1e9602cf531e2a43e4d729f65dded578e918d9e4d7adf5f63e894f31b66819b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7669916c04ca101ab6564d93b553b422a55a3fd6827c2bee650e29f3c717cc95
MD5 579b9aea4eb1d9cccb7ec2ae711e4f31
BLAKE2b-256 13139e924148ad08f050643e1925aea67b4dc73e5546d95a2e078efa163af4c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7f16da1435bee34992aa3cbee6e861dbd8ebf1d8edacd41a57f87e9b13b162dd
MD5 273ec3cbfbc6f6e682509805d9266c13
BLAKE2b-256 3843cb6585152cfa7a4d150f869e80b90257d70fd42198578656157d00b54a65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9fecfe80a0c91bc55e09f74311c3b33e00a2ae2e8163221820e6daee6253cba
MD5 00adba83a1411b409e7d39dfe59c521e
BLAKE2b-256 07bc1cf77507d4f5b4b66cdf0b8eb1518e452d89fa1cab765867c9e8f54a3162

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.963-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.963-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46a375d2087612d2e7c6d9df7a4d180b07de093556830bf2774abfab23e74cd
MD5 117c736f4a9fb2db4ad4e58e8ecc0ccf
BLAKE2b-256 5bab07b83e6ba5f33064d7fcf0e936e98e3cf7ef2622dba10c932b8f538ef63f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6c658b52d746bf3c3fec1dd63cd28e9c34c8eb79584dc4d723a660189e2daf8
MD5 03da8eed4c4ad0a36367683ea371ed2d
BLAKE2b-256 ca7d4b4ebb7cdaa7bf751018ce4ff98490938dd7c34e51f33a7f42a8fee9fc26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2bb42cb3886b0d8ff240bdf504b4953afc98e3230a02ca037cd8fdee8775ff5a
MD5 561452cea70575edee4b0a89d8b55c64
BLAKE2b-256 17349d220552869c5684c5607a5e61343e80149df3352e515b7d26ac7a2f28c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a1602f0f758cc28f4a2f2961125ed529b54d5e89b4587624d18966b3cf516f38
MD5 960b7cc121a486965dfb726269f6c95a
BLAKE2b-256 5669d179fd28e54dfa58d9eff51a84656a666cd7b680d1cc814ed8b52419eab7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.963-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.963-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be4998a164de8f9fcae189f79d2d6f176e7f5bb9e98c06c0db2abc42e9da63b0
MD5 3061da2848eac89bce4201c1fa540212
BLAKE2b-256 95ff9dc6fcf469335ebf5e04190471f9b5c9da2ca6dc48d8616c503f7bc5cb99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3911ee546e7a1bae05fb2403240e4174d461801a71d64389113b4da564c08ceb
MD5 f4943894ca7f40bd4dcdbf0828f77d72
BLAKE2b-256 b12fa66b483859fb27a55e7ed652cc510598bcd08585384fe6c555a8e6e4ad3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6dfee343c448e847b9e1f6f1e94dd9cd3967e87f085eb4f6cae6a9bc1d849099
MD5 dc2cc46385c863b7e605dff498be86b3
BLAKE2b-256 7f2602f48934f82f09a35318fd9eca80bfc8cea9b93e996ec71ddbb06dbcd59c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.963-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.963-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d99c1a190eb09958fea99e94872cb467d89c28e65a75608dc63e5472b91c1c20
MD5 1491d0f6de222ff435076238a014cf6f
BLAKE2b-256 6dbd94b68570fea5dfa1251d1e2164e378496884adfa43e9815a9450cc8d937e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.963-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.963-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6fe088994fc8894a218d1b304930c279c77def8c6af1053215d88ce38e27450a
MD5 b50a4bef07e0e4f33c4072053faea570
BLAKE2b-256 8e10d7a1678bdc788a8f3e11529e5ec6a3a731b64611efd142acc5cce6de8988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.963-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14ac713a9d189b958599691d48eb8e38082ca26a6e6a2b89f273e5c6facfe3de
MD5 731b229c753a8d59d222d2c436fd7a20
BLAKE2b-256 248e55a134aa23f9323b92c7fb05c6cb34dcb46db40c3243e94df12c1cbd8708

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