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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.782-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.782-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.782-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0512ba83239bab11793cad101e533824a553bfe69e0fd2c1af1fdf4c3b793448
MD5 9e4701143600bcbe3887a2333ec2f93a
BLAKE2b-256 a157b8972d21f7e66aeb2ae77b01c1f111e0607544a9a04fa4c4ebe2858168af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 71914838d2662eb95955089fbcaf748ba527defac60ae21ac1a2e0f2b26c53b8
MD5 345cc24f893b31ace7636a455a26ce18
BLAKE2b-256 86efc228bac37a6841b6631e371514959b289da14cf6fc6e913dc8c38e43e4ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.782-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.782-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc53a5e53d90b2a96366dd2c1bb5e1e4eb45eae8bfc9d9bb4a1f77d67e2ae8f7
MD5 040a24209b2b7a7372dbaf636f6576c7
BLAKE2b-256 3bcc836694c2676d4f0ea08d397804ac744a18fab8bce3fe66c6c40daab73361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b38f0cbac0b2918e0b0a620f24eebf56961357ab8637c49c8efce25e2d2136b
MD5 2778153a45fc19a31b5b5c746ff7e805
BLAKE2b-256 a4818b568144e3fc2ba783fc39789901dbe1ed11f3cf4eefa416168c129e19e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44bd832a7437b0037749f928ba9326d2d6b57e155c3998376ba91a319fdf1e1a
MD5 7ee787a3c5c48471e5bb43568c83a7d4
BLAKE2b-256 df3d27cf604ddb1d936e831cc065befd1f24c491a8ce56acc2023bdaa1a6ff8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 793aae2de6993fd4ab675dea50cc2c67c30eae80ca14709c34a629cbdeb74f9a
MD5 2c33fdf6b526ead11b0e453d24b97af9
BLAKE2b-256 108a318c2f00b754842b41da424ca7633f8ebc4cd7d08a765acad0c30f74cc1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.782-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.782-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba1646ed1c1fe475dcd608642b2b87d87f287f72a99ebfbf8a7dbf46a6af814a
MD5 63f809c83d569e240527941c0332da2b
BLAKE2b-256 54418c0eddc060072af516776c96f3f0a5b683ef8e5d18e0d3a6e462e7cf016f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f541257d04ceb96460b57f6fcc88722290c56c56aabd68a99daa0a40c9a458c7
MD5 27dbc7baa1156be6d68722c0314a5d21
BLAKE2b-256 9400f9235a2cc1c9e8a8e2c140e656ed11e05808ae44ee8d1dc508ffa874ad31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a13ca32161e25364b2e7197abc12cd01b3e867755544ee50fe622d063fa4305d
MD5 449386311b6fb055595140107c97c1a7
BLAKE2b-256 a0fbda98c6d81a2e487b8d4926f4504bf78f7311ba8852d8afb5abe33af13c44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 10dacbe007a02f3bdf59d69b2121a393d8343fbb8cf1fca5ecf1019ef552cdf6
MD5 a3dc9dc6864bcb6ded5a77eebdd84290
BLAKE2b-256 b2b0727b48422d97b48896d51da3ae1042ebba82e60c675d0240d088c8a5edd7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.782-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.782-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73deb10faed8b85695337d33dd70c22159705584bb97abe054bffce4d24498ee
MD5 657094a606eecdc7a7bd3e2f82840747
BLAKE2b-256 b6c67be0216ee01f82646516dfe8a118b2483f61ae1aaef35ea6dc5039892e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfeb5f8fcbfe7bc2a3f9ae8b8a87112c8a1eeaf6ed22b2525bbd94cbe09f0158
MD5 3ffa24831381ae67100bda2813fe443a
BLAKE2b-256 e818de0ad2eff797735c5ad2475280534bbae9f35a266f0fb3fd910366d14287

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b3ef5e1eeae0d6a4484fb1a6a35bdd359d21804ecc7b56710e6984c05eff7e1b
MD5 d187c2e219f5129bdb87fd9087ffb751
BLAKE2b-256 c1e556561f570af5b8eef33b84a404beb60f39d0184400a3e3aaf2c2d954aca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ba13e591c4db7e41115a73dcf55d1446231ac50fee989c4282b061014f208383
MD5 e8c2aeabe88f3f43ebaa689ddff6f0a1
BLAKE2b-256 7b9dbe0b6de122d781e5cba8e0e7eece89573b20931a3033f4d4064a7154b96e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.782-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.782-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2478b6794912a43d6a5bb6297b589e240a277bed5865b96bf3d15445b6d9bd35
MD5 8f32dfb819caba186fa42a75d7fc4e9e
BLAKE2b-256 527056d5960e5bbd4b97b4079f2477156b9cf027d94fbf87db5698f733a57772

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f32c0777757cd3dc4e56239916fff3c78102706444c07f4af8896a72df4bd4f5
MD5 3bc19f4d62b4cdcbd2c4de0fede0196a
BLAKE2b-256 b1e7090f275e413db2538e6b26247cd2d70c959c7d77cd89bbe98189775a4c50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 837da6615ca3802a7a420c13e6c0d7e623bdc81cbdf43a73941c3cb84ee2f46b
MD5 ca690c3919a7afd23cc4cf94be185ecb
BLAKE2b-256 39e9c493053ec08e38e4aa5ec2415e868c44fc3a8b7108de3d9313e0d8e5e962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.782-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.782-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1896f47c7612e0d5a34286783e8f45aabbb6dddaf2db0af0fd2e477fc4569266
MD5 87a8c3357e19eabcea1c30c28512dead
BLAKE2b-256 e36d27c0066e151c33f2c014a04455a6491ab4e97ee86a7d22e1e45300ca824e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.782-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.782-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d731cb6d7b242fb2203eedaec401f302f3a515637f5b407e4164507ff545e411
MD5 054c2eb97c2df9e05a8efa87a988c0de
BLAKE2b-256 aaa9d860990c902e0115af39efcced2b147496997afda7b6ba06f94090adddcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.782-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef4a08342081c6b191da585f8c3b04bcf4e3948f678f9326ead86a23e1ed16c7
MD5 68412c5ac21c683c645ad479dd274b16
BLAKE2b-256 2f23d55723fa62fa1a4f2010eaf3dfd3bfb89ae7a799eb930f150a85b993ef83

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