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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.582-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.582-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.582-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35db1e899136c4696e4faa312547dbd56bba09a23d3b2dc1afc2804b50d3d17a
MD5 348ecadf1355bff94effb1e891b3b177
BLAKE2b-256 c4e61949f7383234b9e184b901cc877141342a6442da899860c70a7466432966

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5d234f629133e30f796942c08c61d6f361201ae7778c883c3f1dd252029a85af
MD5 dbf729513868c767713a2a9826fdbd77
BLAKE2b-256 791040e1db4def2d295ceacb15e3ee704d26b7b92fd0642e3f12e73807d0bf6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.582-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.582-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eecd02621d81a82e9c8b4283cb0855c1bc9d383fa120ec9d1240bc2664dc4e7f
MD5 951dd55c11a749a7003ba79d229a0bb6
BLAKE2b-256 4cdde5ede8933ffddaafa519f8b8a2096953c7fd723842f055c954b93f3c7d3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e3c49d08d329447768a9fa2e7296b9bcd6f5803b7b5b898143cf59b92452210
MD5 ac976d83f74f6079545112217a1cae84
BLAKE2b-256 57584dbccef0774476db3f0cb5f9f152f8fec5abde8581c5703ad1bea83696a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90cfb767847653c7baec78a1946f717ca2851c8c2fd46ea54fa9d04b92fb0693
MD5 35a8c633f27ad6b06e216ad9c99f5b86
BLAKE2b-256 330ec43071acf890738fb7ae9c74fbee47ede9979273345a854cec6296053360

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 21ddc9233b296575d624240900ac22c51f040ad84bb80c3c98c7c57d664f1a98
MD5 fd39405612eb45d38a6447f6daad17bb
BLAKE2b-256 43fa2037a8f8cc09266b9d2386bc5a9fcd8cd7f5e624d59fccf51875024519ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.582-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.582-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9de025e343ccb3fc1e169be1b9a5888b5ef30f9ce0e9797fc5d0db63ecef0f76
MD5 028947f2e6c289c0cce7ced1fcdac59e
BLAKE2b-256 36fdc2e6f08cec3e7d0c86acb42ac12c3cda7f1775633f56dbaf0ddc243956a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9506f2046aefb3cc2f053058efc41d26579561fa057b2e56d92aaa20a6a025d
MD5 b04df6518f8db48a775b9b65bc093fed
BLAKE2b-256 e2732648cce0864c4900d7ec1ff9bde0b1f78839b0a3c8fe3d614794ae020241

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68b0b1ae282dd8ba510b580ae34dc4851370e446c8595e2ab44379749df5c373
MD5 d89faef1c23f34a99e18645b31e7663d
BLAKE2b-256 56aa490179ebb9870eb084eea4832059acae060462a07e0155259fde7fa1872c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9727cf48df2f09a21b6fd52bd8aa48106277bef2839cbf32917120751daf5025
MD5 fa00e08e878a4a2410713690b744d8c6
BLAKE2b-256 fba56dfdf6bb97ce505bcc5bd0ab6aec0169982db547357b905ccbc88855d941

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.582-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.582-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00f038f55e0e55c29c99fc4ceec41262a3770a5a91a979c8746896b76b41af15
MD5 0c06fb5fdd5923050956d596932dd26e
BLAKE2b-256 2dc14ad0f8d40bdf8b21203c18a3ccf3d0f14ca109ae57d97d6c0a8cb3a4e8b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3208b8e054e6f8c30bf410252c80abee1f9bbbaa408cb0c1b71d86beb6c57a3a
MD5 d7ffbc56983ce9f8868b1dd477c9849b
BLAKE2b-256 1c7a400245a48376db90e4796c3cc75f12ab2b969a4f3f7d91c634c5c12ee648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2fcf9ec6c3780a8f3e1974fc3a3528a31e8febd70d1b10e0c10bf8227db59bdb
MD5 6d9aaabf6fc353fc073666d0721190f0
BLAKE2b-256 85e8043cf4b7e737b53cf8680e9a48a3a91550f8f729f6da2b6d440e2b455a27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2a51f2d2e1681cef227bbd80eea0ec2b6887d506dbd7fc890b15cec5d2f667be
MD5 f4b1dafc4a8d62bf08a7c1461f27dce8
BLAKE2b-256 68a9ea7c55c790da601ad17b3866a9158833e17459cf5a8cc5bfa955e596fbf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.582-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.582-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcfe124d6f383dc9f43eb6ff23dadedc069658add16f06fa3351e1d15c8379cd
MD5 08c443f25ffe8d32161aa48c7953d373
BLAKE2b-256 576e2682446e77e89789a95c7807a6dd68224dad2911203dfb635d01232c197c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f45e091eea223b285d5457d4a54eb0c492722f849660e1ea16e7586deeb9b4b
MD5 615a284bc44ca1e7b064815a5ee95525
BLAKE2b-256 e19ea44de7a75fc62854509023f2cc913b1b92750ef56d4a2dc172c5ac2e91e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f89a15c4a8eef8895fdbc5479fc6025c7c6544b74fafd37d5e48f9314383cfa9
MD5 d23607149550316ef08875364e1500a7
BLAKE2b-256 e03ca10b60ba9700790fc17cd6199dcc41b97dea0ac3c7cef275ccb73c64dd8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.582-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.582-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4199f29b9a44fd648808575036ab7495508038898e300aa5a1fc87bcffd52b25
MD5 56406f4e3b906f088f106c83190e44c1
BLAKE2b-256 8686f1fe18e108c86fc5fec8f5717df922edf4cb7bcab0c5c3050cfc23b8d712

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.582-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.582-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b25e91e5675cec464bd528d4f47b4ed2a853e983d69a9dc74d68ecb62fae7f22
MD5 2f1b04b10a59d64234879f54f9cbc1e4
BLAKE2b-256 36b226ba5f979289fec4ccbbc288dba6b2b5317d05cad8256f498d1fff6dd9f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.582-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f14d896b08cd9af304ec93e0da27bd88e28cb5d7c5f4c8009b0ce2cd8a09e1cc
MD5 0f6b0ccada3da2afc71f2c4dd5ba090f
BLAKE2b-256 33a65b3e79dd6feaa2fa51e8eba8819fa2191d7767760283bf94f53a26c7384f

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