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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.466-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.466-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.466-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0cc59ba2816725bfe1e54783a5c3295f85b4d54b6c0743773d539e497bbd6ea
MD5 a142f86d2be47005358736ba4b78a061
BLAKE2b-256 7e4c962ab6ed72b828aa2a370e164619e6251deb4239834ee046faf62f9ae894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d4aa80c0d6eb131dd9c516f32009838543499c7fd86d2c2ab7121fa42eb3385e
MD5 a10cf633e9d6d29223e9d8366342b11b
BLAKE2b-256 f270c07abb998d16ee1aa07074873c8140dd183de008c26cc93b9aa1a1f21cdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.466-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.466-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77e0e176bee6a9b392e3c54c3963592f10f1cfca9f7d9177e743cbd7c8126a75
MD5 c5a2c5eb0e3ae54f24661de7e1d324b2
BLAKE2b-256 e5bdda257497b9fb2124c5d1b250a808fcf973133f9b950f3bfc82635eb3aceb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c08135d04e478970fed092b8ba792add30bc179f23283ba7a0c18fc49acd730
MD5 239465c6d8a5245b4774a27a136eb2f9
BLAKE2b-256 8210a0fcc71e214a75e5955d90f390ad57e43ffcb7e1a981bfbcf6640ca9f46c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 108668555a0eef4d957a10aa41b5d37e004bb838cf7c84aba665c10b4a5844f2
MD5 970edb573f24a0b792b42ace1a5711ba
BLAKE2b-256 12831f0e955d3ff36e85f44554885fa21b6cabeb2a52b59dfdeda4f6c47d23e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c091260eb10dae2dce10c31b8aec0d5166bc6bbe6b54848925459bea8c281415
MD5 53fa216e042d7abe3b27bf87060b4b67
BLAKE2b-256 beee910b4c97aef0032de4c9aa610c21103ca98616e972417580a3b4a2b7fe40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.466-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.466-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4296037de0699313edc3bc334186f1e3c38bba2078fe6f9c0347df7efd39b804
MD5 75966aa2211f405bec37b13cf0f02a38
BLAKE2b-256 5ccb3350005605abbc6465e8081b9b9bb70387da5552356b33d79411b848ec43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a5b05c07e10e991ef57211503abc738678f34a9b7e5da895ce20bb881ff2657
MD5 ebf696c678426e8cc0f28d50ca2f8a85
BLAKE2b-256 21cdde36b234f8e3ad43a5d7067c3061970bf19aba90c3b3a9fc717b9715cf00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 08422e8663b3b5445c1da08a7a156e079819d27e3eff8e462ec233c790fce944
MD5 255b789c62d4e86627ad9e4d04bf8f66
BLAKE2b-256 08b36e0071ecee536bb0fcebd82624bfe43cb17bedb559dccc534951a37685f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8232e994fc06003e02c5320424a28802df2ad484b63e6004de8ce4c96725ee3b
MD5 583172997efb18bdde8aaaabd10e885e
BLAKE2b-256 148a4fba6a71b1080f5ddfb30788f4d3c0b8202d3cc05c73206f62f9c547ad08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.466-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.466-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 173273f99717e99341bb7d1708af89ae83f5ce7731ebef75896e1b38fe2472f9
MD5 260455fee73490f80b5abc4926464e0d
BLAKE2b-256 1231bd42773410ff1ff150a1ed901d4a55a41305c0d22d25a08b4ca2efad93d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6c2f57e2332767e2a1c83caba1e76c10f86344733273945a53d9fc0a7a94e18
MD5 05d60a0d84a1d1e6e148575a12f79a5c
BLAKE2b-256 e9283d587df1bb0f557f45589c1077211851c6ffd75b6a9407f14cdaa58b67a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cf8dcfa6f73949e3cf355af26e25b9428d0de9c53ac12b71b36a4ed13005733a
MD5 d4f37fc2775236da95c7899d1a571ee6
BLAKE2b-256 cc2054b00be6511dafe4fbc0c013d760ebff3c07623d62d2fff16249a81eda29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 39343550a5ccec0e2123d6d000a78482940a43d44e35d21cdece3eb70a343ade
MD5 f1fd77099605c5c7f4df8621bedb8b11
BLAKE2b-256 35b3272c8614c5b82a4869bcc82c552107acb11e3a426bd7712965058bad676b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.466-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.466-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 852f415f245bc51ff77614009bf4bf9e9148b44bc6a9a65c434102ff05b6aabf
MD5 dbcab94295b275648cef0ed158ce9029
BLAKE2b-256 f7bac0148bbb72635342d7e022166dbe365b2011f2723a62d3837159a700de8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96adfa6a1f9711261ee05e3b440884cce8aea37b32e77c1b545f2a4b7b81ba39
MD5 9a2937c2dee71a2237694d5d647364a6
BLAKE2b-256 3c12255a8e6fdd63adfa89f81f0a64f394147882eb2bf73b2989bcbb7d4ab81f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1db3f2af02b3dd63a318df9ffc61200ede5b71813a5568a5083a0ce758c90928
MD5 37ba17f61f2b16230c4f1da1176b0d64
BLAKE2b-256 a52abbe2b39d7efe1fa3573b917189ec76735ad3421780215629d6e644f2bd0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.466-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.466-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ed9fd05dd501216dcd2308ad550e42c3002c39b6d2cb61426a07bd484004a455
MD5 d45de4a5a37f1592cb2a69f60ef49262
BLAKE2b-256 3fdd51d4a5376cd1e7b9f6f948ccf43dc1873f0f5bb1363baf2b9165c469fd59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.466-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.466-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5e3d423072c26f7fef0a14b2846d3a6e47420a5c1d118f45e855cb246c9bb55
MD5 4ec63299e571d3aa967bcb96ca3631ad
BLAKE2b-256 99db10eda9864b8293b2241f8c3943d4e41d5a550beae8b37460cff9f9ab0324

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.466-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3bb767cc582842558434997b33e557bee5afa090fd40969d645fb6d99efdfd5
MD5 c2b391eb24864dbf6a54d1b3d7fe65ca
BLAKE2b-256 d46b5847dec9a0b027d4267a5cea0a5066b5e22c2805628e4c2001a0b35fba2a

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