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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.187-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.187-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.187-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f66c70fee803baa8306b6604e012f325e3665b8d138f9dd97e656149ad36ee7c
MD5 530a1116e233ddb6965b7cc15fcc4039
BLAKE2b-256 0463c18a4a1732b26be9b9bc20f9a55dd8bd63235e9eff37d280ce49fe2a7476

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b8c1bcc42d74ff30df4adf01240263a455e1e3503f6a7301831538a47444be4e
MD5 14d1dc6f9a98fb572506c2d45a381368
BLAKE2b-256 b6cbeab6c12fa2bd3a028f68cb57f53ba0e62a03a6eae4ec1195dccd95569ed2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.187-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.187-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02495dc9739def2655ca54b34d0f33d943f0d9d5d191f2721d499e7b72d62aaf
MD5 890db47b22b782f9c9041cb91a51d197
BLAKE2b-256 351eb19db692954f73fbbd336ed81654b63e45092b2f3d7e048faafed210f1e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a94ea3f5809e2ba56dc67edd67ad330e432636230495a380d169272be96c3beb
MD5 f40236b8e53e5afee564dc539198f945
BLAKE2b-256 5756c2bf148465d042e57aba164402b9fa958deed853c05368aacb21eafd447c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d65ea13d58de883b3b30ac581c5054ca9f4e8f22d1f6b540a7edd017b283a8c
MD5 7b5ed116bf14e7b742effefdb15e5534
BLAKE2b-256 e897486263737a6398aca14509c85e0d951c740f4d12e8d42654c5c090bbc23d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7b8d92107a6efe9e3906bbe730104007654c434532b63a292d977f393cfb5194
MD5 347716728227305946cdfd2d64e744f2
BLAKE2b-256 c4f83e18e101bd9fe4a92a122bd3735f6d7ec7350b1da218f8ed8ee6d9988639

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.187-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.187-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8d826ae0ca521c5a980a5c03763e526b8cc6111c6328306631e1d761bcceef4
MD5 6d0757dc91987a6fe1b16af361aac81b
BLAKE2b-256 27745edfc22131726781372ec451e6e3ba5abe30796216df8cc3891eb576d9cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a72ea21f8fe6edbbc50ce0a1da6abed3e27d8d590c177c903e0cddc4c300a3
MD5 6e1be1b27328579e62679352d85aac48
BLAKE2b-256 487a23213b308e4c869760ccf8a9b03069a8428246ffdda2c0c83fec15364dd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5dd064ae9401c1e4f64211994d296bb37e8f4c41e25a57fc13caef2b357c0f6f
MD5 819c01309a5c8dfa5f3fdf8036a8f467
BLAKE2b-256 cd471919604248abce2c2140aa27b0e27ef18b3dbb0febc973caffe37557d5eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f13b91f0804e0e4017bec9abd255ef4765af87b64221101470082a5e14f8d88a
MD5 8fa189e8a5ac3735c5117a03a1f93bc6
BLAKE2b-256 49f45d892f6c0031abfd60a398c0f96dded09b5b767abaa3d3a4b511ac99dc11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.187-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.187-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79b3899da5a4f438ce1cf197a15ab7c0bf3fe0f63b8ddc33c204972b3a83fb12
MD5 8074ac3e9dadf7180f0cebb193075806
BLAKE2b-256 28443e56573268ef2a8ff4c817c5d29573c8703c827093206f61e5b944c3bee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab1f519bf839aa64a5ef6c04d6213c456f848bfa2e1744dcd995cbfd5a127fa0
MD5 2a4e3fdf62e3a4180c5a55d2d299042a
BLAKE2b-256 3dfc32deaeaf7449b45ac5b4aecdfd04123342a6fd35df5dd1d722e20fb56747

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 91e0b69c9da27ce19b98936d0df2c874a0395a4b10d2c415f2d2ae5283b2929e
MD5 7e771de1565afcaba65c96b33181eead
BLAKE2b-256 2338e5500fa194f10913a042b4ec8e6bc129f0662cd536d840802530ee17430b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a6583e824c025f1fb2b1cab4a55572a1baabf30429ba664535d50af5ad784f01
MD5 b4c86b636a4bb66f24a40cc3cf146905
BLAKE2b-256 b266fd8d5915fbdffbc947018a3b98ba4143876c61ab26f7483b8464d95d910c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.187-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.187-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d2c7f767f6a041e2cfae7d0391121fbe252eae936da0c4ee6ff02e6540da422
MD5 1f2251c49b770d223f7c087a66677f7a
BLAKE2b-256 ef5bde5144295a25fa9b4b621f912a340cc139bf12589e3d64d17f98c9762d3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39b36ab14cd2360389a28ac3e472c7ad0779fef1c43b70d901d6b22285750678
MD5 98774d52d2034f3a65fd1fa2e559b921
BLAKE2b-256 9320b28f0e649fd8e5c3b6803e9b728583367f4700514c93ffe0340b76d30a02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bfe6029b73036a16a65b7376e6fd9be098f1c1f16fc0e7558fa471c2e1cd9a74
MD5 a248a117ad3b8d18630580450bc22f9a
BLAKE2b-256 f77859ae7390a3156c6475b0fa9168f5b5ed2e9f6736c679d37ef217a6a39c87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.187-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.187-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f97e17c751a3f58917ff6268aef1193a3c86e7028018df6956eaaacf7a602493
MD5 1a7a90c283633edd902ed644b8708ef6
BLAKE2b-256 32ef4b46bb7a05a4ae7705ded064d2c7984c48cd848c6c2e4b9b67a5facd05fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.187-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.187-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36c00ca6ca09ecb53e5dbefc8bc8788eaf2a00b878249a7f54597239046c2544
MD5 cd2e9e0c21e7d41a62b059e01836873f
BLAKE2b-256 ef91b882edfc02a2581a98c69d44389eac9c23e89a4505dcf3b2051266515788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.187-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a894f1d59b7e74cacc7e4af9fc2afb4b1851bb155d3ee3c5c8191c1f28b96ada
MD5 c42ff4acc4095351637dc0d134834c77
BLAKE2b-256 2771c84f32575a3637c323f446572b7dd9e67287e99396a92a8b96e6ccd0a802

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