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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.39-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.39-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.39-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.39-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.39-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.39-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c84432d0e31b0c7c5f8f6214896b11b52dd3226dbd0025ee5557e1f9f9fdcb0a
MD5 b91b6f50d70ce7c34042f21601970133
BLAKE2b-256 6142c2db95a80329fbcb88ec5da82f0e1242f151ede7d9f62fc1f4871313feeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a218019e4762a9a70b983b0e5d3297c6349bda80fd27c95aea135534c91508c7
MD5 c24b5678e517532181419c610f3b44c1
BLAKE2b-256 6c87f19426afcd80b3943cb494a763ef6257eca6cae7cacbbbc3c76a96c684d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.39-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.39-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e3735977c62edfd4ce08567449825065e59775a7e62bb11ddbc5cb9be93cf9f
MD5 54d172e8c0dab71dc158e84f429261f2
BLAKE2b-256 69f379073b72fb41bbadcbfc40d0298d8a5d44d21ed5b21ba6df2467563317fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.39-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46563ffd714012275f02dad1ffb956fa51ab1eb501c41025b62dcec9e51f7a27
MD5 62839a0f668e4ba28682a527408d0785
BLAKE2b-256 1878aa900664172b2fe47415cde3a9fdddd6f1239ee21521821cb7fde868eded

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e86c71bc72a8a705a6a61df68ca097287f593915fb6c92b5c9714d8169e598b
MD5 cd1844afdd9403f2db5d2eb138e582d6
BLAKE2b-256 f6c6c8b38b16ad8c21f58a67507f92d69b8efa628334ab640dac48266edc0ddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 195d09198a99241b881331eb2737f23a63cc18f07069271fcd693c0bdc11301f
MD5 92c82b10ac28fd85b056ef48153ee56e
BLAKE2b-256 380bd67d62523d30319d2f23ff8fa789fd73db67113a9059f105fee0cebc002f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.39-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.39-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f71397a58f02677410c1f03cf3d74dfba37ab287169446c9361be97108c2b794
MD5 fcd12090950c91229cc9bc0520cecdee
BLAKE2b-256 b06c3ed87b4b656316f1eb51e5825f67a5e662b9c9a9d9e45decc5422cb2de46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.39-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5a519226f946f4d4e1956f0adc6c06a31c1d814c44680c191e6071ec94f0c5e
MD5 4a03debbcd8338b8edfd513bfc016c50
BLAKE2b-256 4b6dd6ae0e07506242cbc6d7c1212a7deda77a0143052f7db13e478d7928d892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.39-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3416258fbc3f25bd9cd00f0d6bf2c35374c74a14ca2cbfcfaf1ade3190ba546e
MD5 e4652061c04fa8a4dbab0ab4c92197c4
BLAKE2b-256 3ab9038a38e1eb724654415039092035d97453122afae1e226fa10a30107694c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f7b26bc6a13fbd0dcc97cf56549cd7d55aa87073f3d7e7f1fc4796c8bbba072b
MD5 f3e70f251916fdb656a33df3746b84e3
BLAKE2b-256 4db1cdb0375f0756347fd057bdf3706941adb4f4300c7d2c95a8718337105a7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.39-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.39-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45f7737fd69eae0624eda2c6e5d620e3ca10a27279a76efa3aa8a0754b4aca33
MD5 18d03fe7ef004f5d74d303aa4a81b8fb
BLAKE2b-256 2f7e7925a9325227dcc747d3f553fd8f905ac24278d4b01df3960b3aef0ec2c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.39-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83ba34f7b39811ee34a6090a274bbd76e4befca0b660b07091570abdb220c095
MD5 cab70999ca000a774d138f3ef18d2034
BLAKE2b-256 f2e0894733e11af36aaa7c4db2974e067cf69a0df190d496f7d096801f8864ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96166bdfce5a978928b53f9b0dffbc6e7282a51fc1fb3255d80ba4907bcd05c1
MD5 66b327bc6197cdb73b7bbf7e7b87d43f
BLAKE2b-256 44aa81bfb900b1dd626a8ffcae3900e4a69d142e69d43df0e90db2a54819b955

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 360f77f5d1dc23f7b26006ba796de6489d42ce06f9db369816a57bee80ee9d4c
MD5 19750d23fe309ec521298a1a58e22346
BLAKE2b-256 2f87b7d242fd225c3dfffd2aafe7d6bdd1339025468195c20b00821ddf0e2e66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.39-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.39-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd57fa04506a44cd1cb532b9c228c12bd920844f90862806c3bcf29f84e47928
MD5 2a2cd1c9d4f6edcb061039abdc35b8bc
BLAKE2b-256 74ebc1a921f9f19b10a8c595677b11ac2a5c0cf9a5fa222cc252002073335f16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.39-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 340ab7e40a02fcb9399939503be0aeecd3ed7c8ce69b2314078eab394c7e10a8
MD5 cac9f21d6cbf34da713c75c9e721f2cd
BLAKE2b-256 54798bd31bfe162d20a4ed45e4628dda86497b34a837d0ab0ce830ab923464e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1e915ed76d5ee67bd5581156291e5876312ab2e150f082b8aef516fe459721b7
MD5 c645dd992ea6cb10cb15feb2877b9535
BLAKE2b-256 f939bf52becbcc8e9eca8a8f5c228a8ecc4db130498644784df983a7ab41f957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.39-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.39-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4a2d94944c7a66eea9523fc3f2d7a7f65fd7f2e08cc9156b94828aa857690241
MD5 20acb966cca327bfaa71bfb97b528434
BLAKE2b-256 bfa02c801944fe8212c3a24ed5c22fe3c25fa3bb9624e39f9fc1a4d4577e569b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.39-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.39-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa9ca5a1cc6aa35eec8cfd8a272de148de97d90acbf8bf3511808216ebd5c7dc
MD5 779bccd8f2b126b4793ee1fc79cba5a2
BLAKE2b-256 ae390d85ecb734c3f25028093ffcfec28d9d542baae5072251c8e4696f4437ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.39-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73a339e04a675f3cbe26c0bad4f80f190a124a1f62f8011522cea04c2e4a2da5
MD5 f850254ff8e3a799c4a8f57c7ecda11c
BLAKE2b-256 4e8895d0173f773af022666c865efc6fb7ba7e107be040936911187c761b2e80

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