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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.699-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.699-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.699-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 16d96fd29a9d746ce3d59b5eb7ea636b8146f8dbec93a8b3177a8d1425a83772
MD5 81eeacf449601809fcc70c3596a1e6a9
BLAKE2b-256 f6f212bc7dd5e3443e741cec1c37cb6a1ec8408e0411b18f14258553eb2f6286

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e0acd867177f64d0e1eca7c446d3959a9c7875602d868c463033210a7219fdb7
MD5 29ceaf75322032c8f216a299b1c8cebc
BLAKE2b-256 85390e389a1031c0f6253d9d42470e3b3d3ac834a569f6ad5505e6c03b23a7ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.699-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.699-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7dbc412fffcf40dac550f73f7b23171c683dc8b8d4a51a264f3c16c041b6d1f6
MD5 9b18f0012f6c85f9c31db7a223ae909c
BLAKE2b-256 8c2635de78ddd1a1cff8f90f48535b7ab80afce02cd25908d616dff20b6de7c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74499a5af2a06be7dd3c42b6bd4a0ef9b57effee9c35bdf4a4eaeff7ae33222e
MD5 1218b2e1c83a1f16bc6192874168ab79
BLAKE2b-256 92aa2723efed8298ecc7509cb66bcb0122f21ec403341a96dc093167d73d6253

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0d3b6f1c0509c960a67e310fcb9afbe3ee91a008df767dec4b1d7815b7284bf9
MD5 8f84efb5ccf1c86e8eca3ea128800cb7
BLAKE2b-256 ab8d117b638de170b20f8af343dc80a7ad2de3f6e43228bc4b35aff249b25540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 485674e8b87919f5fda90ac664a53ff1991691d83196bcef22f3d5813cd17d4e
MD5 0bc8f0509c4b2f5281ee07522aab8ded
BLAKE2b-256 6eca2f1d250b5cd5793cc9985371ac0b8d2f31047eed559c88406d238859447c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.699-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.699-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 407058382797f488f7319bf5cbdba0e9d4dabdc03be33e6c9adf617b03adfe73
MD5 134891ecd0bcaffffc5cc95e8aac8325
BLAKE2b-256 b226a850b8ac0c9b0aa8f043ab7ab540f6d55081af7c7024b5040cce75ed08b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27919377e9d91ebe13164bbce680c52d5d88ccf7a4044ba7e1f9a7b97445dad1
MD5 246e4fc0d0588675c4bd6179c874b6a8
BLAKE2b-256 cc2540ada5d813482155158ed2bb1bebf1baccbc6aadc18e140fcb57224a15ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 299eca2cc154830f83068bca3d4e2fec33360840fc917c6b3d7e3e154d459ee3
MD5 a6e3276439ff6d9c48a85fc03cf324f7
BLAKE2b-256 7c14a642f2be909cc24c4563ca75afd5d508f23569794bf203136d9b616f51bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9270a1b56d6eaebf52136c063c610afff16f63b8ff5beba6fd4996d68a7eed40
MD5 dc1caad07d350ae9bd0f025921373e2f
BLAKE2b-256 fa2001e26b3557145fc20f58516f1ba5ae4f79e231156ff8cf86f35bc1c6c4fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.699-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.699-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f057e13e59cbf9524d7077fec0453158c5e682c5a1517c205706c8e8d8800c15
MD5 0f00a5f844bb3abd0b88b70004c1749f
BLAKE2b-256 bfb41013be6d4d35ca6b3ec0caecf0742979331d569d0c68a2524e9e1fc81904

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf79b42e10e752db37c77651bd828871d7a67a3353c0d12785c0f5165717ee94
MD5 8923a425e23576155f7981180eb2abf7
BLAKE2b-256 54f89d4cc7e470b9b7800e87f0d82ea5e64f0d030a41925dd5fc034396725632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f6edb37d63ca404c0d832f3d3fb236965b0fd3f90002d6e7c820c2c310cae23a
MD5 c64b2359ed5d90d3a6c37f0a39b5a4a9
BLAKE2b-256 fdc14912460af5370cd427844c46dabb79a2adf86766d6bd41e2f6f5156c1ed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0528e40e0b4355fb5ed1d353ec00107c79af73282de90c6e128e544b1b0a42c3
MD5 4770714a75110d11c6deedfe8b935714
BLAKE2b-256 64148c0d486cc4b133f59bf6fae486a0bbcbc6d65cd5437f4f706c270afc9e18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.699-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.699-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b4d53acdd1709f1c85e9a9c8736871ae5adfd36c932bf14c5608ad9f64bf8b6
MD5 499cb4ec9f1aa827b786e0680858cbd3
BLAKE2b-256 c62edb8d9604e3b2afd749f773b283f62e5b000371464b143abc75bfafdee065

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed699b7a5492b464b5fe43a5260c7a7ef795d8303dd90be3a29982d60537e200
MD5 746bf3b9e8b41e720d3d620ee9c3ca81
BLAKE2b-256 bdf50caebfee76e919c57ab1b8125a3dbfcf87a183e27ffbc5c85369c4e7b770

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f83b5ce33e17aa2cf16380f888dc9abe577674a34b34887f73a01d3266dbe2e9
MD5 8f69c7cc2d0ef772752139af60b76569
BLAKE2b-256 ae42740e317cedf48e5c21428fd2a78093701c19a317f5fb2c5c75a168bdc371

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.699-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.699-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c52be1d6717c8874342cb53e3cf91ecdabac3bf1f727408c684331399e4540d0
MD5 80b5b887f886b9ff517d5cef48c04c1f
BLAKE2b-256 a9e61fbd41a1293696399f0c79db99d26f1237be2fc5fa1abc74fff57a1a715e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.699-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.699-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c86217f14a561092ac91683c7667eb0dd918c6e45c59f1dfbc101328abb760d0
MD5 63557a9406b883ca46b82e4b7256dcac
BLAKE2b-256 64e01a45d934c4f56163b3601ddf62fcc9b80f1062045256fd6ae6a7f659ddfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.699-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 201f079f6fd68bd6aa438e11952484b33f93dd71afd8058907bc1f4c00338aa0
MD5 b015f63361533ebc5916b880b634d650
BLAKE2b-256 c53f987500ecf2a142e3ccfc363c7efed79efd324de7175897293a5bc6403636

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