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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.885-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.885-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.885-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.885-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9b6a21c2cb7eb2c7f35088dfd8dc1985df16a2c8cd1284cd2349a5103ad95ef1
MD5 dd51c8bf995cc34ed63b833b4fd9c6e4
BLAKE2b-256 619e60e58702594f1daecdd09afe4691ff283f12e4c48e377bb35f7dee982871

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4bd3781de4c39495c1024dcf212cc3a4074f7095f37c5d49f3b5fd0cf60602ff
MD5 84ab93ca083c90f9f706109d29c0c341
BLAKE2b-256 b02a9a0c1cdee5e925cea69f463f01447727f95083f854b59c09f48e82a0c226

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.885-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.885-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1220386f72b4c3d20a14f8cdde36727a0c9c7463cfe41039dd1bdfb3a8f0885b
MD5 6cf09ca4c8ade1788f9019f2ee370188
BLAKE2b-256 cac1ca031b49561a27eebb564365e613b4e03944f785e3f9eb71bb2bc8553bdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4344c8f67ad1280dd729981038a797fc43be6fb16a1e699a911d8b5e88a398c6
MD5 58ec435cae2cf549132f06e3d5e2346d
BLAKE2b-256 4548c781a02791fa4da536a48f6ab1762ff7127c15001d80085ec37ec1924da4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9449370330cee0a7e19e453dd438c80aeff5db9cbb34af934c5ff93089a6d9ea
MD5 77a9573b823d92970444812cbb4ecf5e
BLAKE2b-256 4cd169c7229496e02161d8746facbb9d9b6db57ecfc44efabf5fd4384a3cfa1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7f52690b31674735680477ad69a6d7f02b73fa22bc627193cf47a708565eae9d
MD5 284b1000f15ff8bb4544156eeb2cec0b
BLAKE2b-256 17bacccdda1223dd2376ec478e11985e60d0153f5056e6aad760e778c5eedfac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.885-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.885-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad770cc843f11c2d7c7d1e03df7b0bc348fa5dbeb1d554e38556e66be3ef12f4
MD5 fb4e1c6036aafdebb559d6ef125d8468
BLAKE2b-256 ef265b97ec646b28176e19e58d45c831acf331bf6916d3a9358fe5984a1230a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10bfe2f4de0984a4187d9714d8fc9fff5eeae0f1e5957d3cc741e39f51d54793
MD5 a688de72b27b1cd787840454dd56e04e
BLAKE2b-256 fe41c211e2a72d0038c9343a18a258e8f23c2358737ef9f2d87bda5af5c726a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1bf885f0f6ec50adff7ae4a121defaa3e22ada64236918643f94a12f20f1470
MD5 052ca80e74b5c29080ee40269a8840d1
BLAKE2b-256 ce9624fa7eace420a8b93496517e4aacf2d87be4f0a0b36c18264f73cb3d7802

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.885-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c5eb652011de17483c74d6bb7264983152a43fb9add8b0c4cc8697d0d6293f3d
MD5 8c6641aff02933f14154378ea62f20aa
BLAKE2b-256 1945a62dbcb5de334e2f9608244926682de44fec44b880765a1e4ce4f6a92344

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.885-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.885-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8daecbba6b620128ceda47e6cc35f7e93a9b743577629d8796fc35c27c19a72
MD5 3b5bf7cd0b2d5508ea41a19c0ffd380b
BLAKE2b-256 1d1a13ed0d32a12ee17a54cd01c58be103633800e77685773c204c2dd844d79e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b91591a5f05f6f0f2cad3cce19b1e82ea10cd40fb738035eb5a11524c7db1f6
MD5 ad6b679a59c42208a484cb735b3d179b
BLAKE2b-256 73a17caeacb06772c5d6c91c630b92da4944de3564ea6e877c57f3fd66c94594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6eb3909cead0c1cc66b553ab6f8b62015da7c0f93fd0eb084c7939e28a374fdb
MD5 b700f2e4d3594f556961854688c2eb5b
BLAKE2b-256 86e3a6f7377622117c3891aafb1f4ff3eb47f90c8936aded33ae0456fdc55c08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 37fa99be4ee361422f7916ebe0d130a13b5b42b8137a4f20976660784f4e2a49
MD5 b34d7a10b74d596e4ee74d55e2aa8031
BLAKE2b-256 a00683b7c8ef507eb65051fac887af2bfcf653c799048a8a7f5d2f4f87925d11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.885-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.885-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9d5eaa6004123517639fdec66178a5a872a0ff1f58ed99b38cc48721060060e
MD5 5cecc012d79b7113e69ba22257e6aebe
BLAKE2b-256 205bf01ef48967dc6a3ccf10fb532e1ce188902f627a83a01a2fd54c43ba4018

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93ae9ba7c766ddf724c28e7886a898139a1c5234dc5a6da902129eab992ec841
MD5 61e8234c2e6b504ed48879ce96688e7e
BLAKE2b-256 c6a8fb1f874f7aa32952711fd1f3b6c2fe275596e16182f335135676eb66a20a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5e9efdd165a581d32f127f00bc5292f859a23dd0c799b7acdd8472710b7ac9a2
MD5 2c3ced8d9b14fbfe559f3910c2a89498
BLAKE2b-256 75142cd992fd45de34a611b6d01fb9792c8664f2200ffc7e24f5037db2bfa323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.885-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.885-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7ba390c0bf0f9bc39c754fba3514e00abd09a87148244d3dc53cd340b5410bda
MD5 8b4b1d9e935a9efb39a914d96db91871
BLAKE2b-256 aa36b87c5dece800ad2ab7fe6d2b118e566bb8cd172fd9a3d06fcc9cea75833a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.885-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.885-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18c9c48d4b17b942c90b7374a32615e906bd7829eeee04c1f4b279bda924ba6e
MD5 7a0e9b640357159c58030302cf2892cc
BLAKE2b-256 effdf8ca5b13e551532e161b184ac014c8c1ba5003dc95b2ff456e2e92f25501

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.885-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a85619237cbfccc7f75950f96c0e9093864c9875cf2e97091c0fef0ed0d0634
MD5 ea092d135be6ef1917cc69970c197049
BLAKE2b-256 2d49005756f0470ff082cb289e6aa8ac7843ff656a494272f75ea89c679bd381

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