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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.489-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.489-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.489-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd9e819a59071955696d5bc3ea1840beb7cdb00e71e77924d47da26c9818189f
MD5 6c91339fef84dee3902d7aee5de456de
BLAKE2b-256 5c3e180a12ac41e809baa011a9f9e5fed3c8829275fe8434dc4d01ec03ea6f36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b5c4ca2011c8875f81c320ff1674f242081c19e2a8a2ffd037b6bd7645ef2d09
MD5 b2404548b178f841485816cc71792c65
BLAKE2b-256 c7800b4d518f8892d8d651f5678d710fb372c16a99c703dd23b0c17bb93045d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.489-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.489-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aede3c266534852c1b18a51ba681ba47400af3ea9e159e1631c045e8b3870889
MD5 0e99f618cc09d44ecc010c9dad534f65
BLAKE2b-256 3677d2f7c88134bb6929fdd50e041f5115e2a955b9f217dcc5c452c1b24c517e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 145ba15831c233fbce805f2032b9b8edf8eeaf1db1eb6102aa76b6dccf75eb84
MD5 776de1aebbcc49351c17eed40ae243f8
BLAKE2b-256 00f821f0b9c0ffa947d0bfb93a666a840d90c84fdc4af970a80eed2f77b890b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 53ac87ff1dcc678db4b0c11201f00b5431e476dd2a12e30be0576d556da96eb0
MD5 b8e96ff750fced5d52a97a53ef832193
BLAKE2b-256 5d8a66b7aeb5c81e7c9e6931d56a039b8a0f63404e01017cd24ece29e5a3a7e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 75b1a63132df52015eee46f12f5189809020ced17498ff4137c555b3aebc71a7
MD5 a1afa4c133f4503997a92d115fb42558
BLAKE2b-256 8ad56f3119fa55e24cf1bd6dc3c3ebe44168e186a3a3cd7e9eed135e6189b08d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.489-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.489-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41c1f91b54e36d7f33d4fb47b820a68d9af19229c3586e79869eca0938ac3082
MD5 ac9228dbde96d8889c7d5baaa1b60bf7
BLAKE2b-256 2a8bb494157c16820196d909c1909852eb5dd224535d57495547fbe3a8bf47b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32df6f2e7ef8cd9d3bff8635568ec84506bd68c03d48045dc65d54974c2413d6
MD5 7439b7ed53f1356f38ddfcaf18f0a949
BLAKE2b-256 359ad12a0b5e3d15947ae4e203096e79a643a9d84d9363afda96881e6b0f86c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4463c6603132b4fb5794b84872b2ee00247697960532d6f3e6d88b252e324653
MD5 7123e14b797cf08bdbd324770c5176e6
BLAKE2b-256 297a603145bd994a609861e5e301eaacc9d14ad36fd2dc34566dbed98f22bc0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7080832ec09e75a89c27cb48b6aa64266f289ef2b4eb92a3626d872e8e0f2f70
MD5 b8426aa6b1189875a2b95fe8c932b50b
BLAKE2b-256 c254f2788f03acdda93b25c35f5bc409083a2651bc5f760c6a1dc7a68d3575a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.489-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.489-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73ce0341e5bfb6aaacbfd19557d9f6243c7a2b86f48e3148b944a9f77160de1b
MD5 cac55f85e0506b3f96b1494a5f1b3bf9
BLAKE2b-256 a245a09ca8c1c4917041819b62b5f015ea6ce733c6cb28567a5d8506dd73ae96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2ce54b47511f4aeaa5c9112e75de76aaf947f53057feb6dfa12a5889cd43292
MD5 1aa2a967be4c14c96278fdbb08c9f3bb
BLAKE2b-256 0d9cf84941dc067f25beaf38c0cf2cd4546f29c9b3dda04a71ef33f088544e79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcd9f0cfbe6995c50d22aa866443487dfdce17dfb173e00ffee18cfdac1d78b1
MD5 6f9d90d20bf6c3550ec6f991630e527e
BLAKE2b-256 09d77f291d84f02b2a98b2dddbfd3081aa2734366e8d363bc8fe57aadebcbcc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c6518a03a56fdc65f4ca577822abc61236caa8c9f25b5d9037bbd6d65795193c
MD5 dd86f605f9c948caf6cead37f5321cec
BLAKE2b-256 f79ba0375afa256c7071874ba949270de64411b3cf59a7a6d0f9c8c1dfc17cff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.489-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.489-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62adfc5443b13edddd96a74c82aee04d3d8eac77c206af097862bc28943ae334
MD5 7d30dce2906918811953e6baca6473f5
BLAKE2b-256 85bc906cd6e0d094e79b0d80c2465d7b4a8efb7028ef10eb5232a10fa27cc01f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d97d8bda4c76eef724bf7e1b32dcf780a33694630310043106987a994aa90d60
MD5 af12905e07466401dee5e6061c6a6847
BLAKE2b-256 6730f2f972f55cdbdce9a740435c5b7eabcc2ca0f019152bbb8f96fc307ccbf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0e6f6624494b7ec3be7a94d3178e276d7147cde422a69f8941f577a717b452f7
MD5 ea75d08ca3404ffcc7a5de4098cf9259
BLAKE2b-256 fd63778295415cce3b20d0eabb84e61c0d0ed1aa8451e68efe9bcb9046864aa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.489-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.489-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 13aab29da33be00e96f04f69b37e018c4d042e74a1536c1373e4ab47510c9f95
MD5 7408d0d5f28673f6a39592a394ee9563
BLAKE2b-256 f1e821d9e19af379a81676da74c1837ece844ed48ec13b4de29875978e45cb24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.489-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.489-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67b4a5fac5e81b59a8b0c08a6e1e64f6091fc05e814b31b6c357c9d1a32c3910
MD5 44772daab7915382b198da68ddf6190a
BLAKE2b-256 5bf1f71bf7e2378746687b2f5bc102e853ed03875607bb971cd67dd65ad2301e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.489-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ec498e1c4d842274a59d0dab2b95ff1afb0d326a6bb4ba417fbdb5d20f83f4b
MD5 e454eca54bcda2b8d57bfe0066018ad5
BLAKE2b-256 83cce1618fdc8956e487dfe551c39218bf3d89141b99ed514aea42a39e5ed9be

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