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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.947-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.947-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.947-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce0c2081db1b60be45d0449601056618c478c463d01d6d6cc3b6d7e2d8ba6d25
MD5 27a9f79189a10a552c8f50f0ce449778
BLAKE2b-256 3e2fb1e8a034397fc524704f2369131771ba8a667cc563490e044d5c4cea68ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e81b3de0c23356febdd09574a1f7e28381739bc0590ca2a659abb38be12e995
MD5 0e1e5a51c346601d9828342b89ac9837
BLAKE2b-256 60c16f8022e34ed3741da005e3dca4f7e87aca1900270bd0f7bbc574d68fa2aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.947-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.947-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb06f9d9cc27a5869be2bd29f56e3a71bd15791a99960b495d09a0d78af8837c
MD5 b58c4aac01a491dcceaed52f5caafdd8
BLAKE2b-256 c8dfdaaa1e4f1d21770f1a6e983e8d95252767c6e5356c33018d187736682ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7693057358dbe1c766d13f306e08a1639fe27a5245bff7c2592adedb0d3dbc38
MD5 5dffe298f5dc283117e915cb46cb7e5f
BLAKE2b-256 cd5b319f0511ef9827937d2b6c8ca1eb8a128476a4d8de8e38630c04ae7dde78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f009226eaf05dcccfdace6340c6e2dabe6df1281f23839ee7c8b95e44c8c99bb
MD5 e3846185526ad2fe4e8bcee225a03f5e
BLAKE2b-256 171d05662970800a407753319830d4adf25bc6335ed72cbf5dc43a35e905894f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1cd54e3225120f5ea4b6f696bcac5ba8c1232116ce1de3bcef98e017fc651c65
MD5 120abc95d2cc7d1a49e179954d5a23d0
BLAKE2b-256 b3f97c04a5e1d700a2f60fcd53b85070dbcaf9934268dba16c5d887767ca3c03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.947-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.947-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15bb7a81b464257844674e5b8d61acd1f404687852cf9b03f2f135928fa6c752
MD5 5009d9eeb4f572ef323c2cbd0308c2b2
BLAKE2b-256 f2f4d6ce990bd64d44cdd7dbf684bc926a9fd1356ec52c8c77d96c1615091f12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08f224c08d386a3911d8130aa2b856fc5aab38c4e75ef8c5d7a702b5ac845738
MD5 2f0a204a91be7ed402460bd026ce67ef
BLAKE2b-256 fa87d2de0f93ce89381f847aa51b0035b602866787fbe0294c9afea491cf8921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 12aef595ecf721fc9141695aa398fbc7b4b2d762f54773bfa699e206bf7bcd61
MD5 1b3eeab04b86adc1fdbf1aba0bca8f4b
BLAKE2b-256 cc5bd5753bfddeccb2175924e0fa7ed45f1e760c1ddcf301ec4c3a30df5b5b06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ac6a6a3d1ac2c32e3daf043c08f6dfb0129885d0c6710da440cfe792c0584852
MD5 de1513145706aedd9521217dc092fa37
BLAKE2b-256 4d6c0cb72193ff6948d4b3810c0dc44595aa617226357524444614c34797dc3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.947-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.947-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4dcec06f39efa14bd614e83392f7ed9e0eeacbb79e52e185c9889f0159bc028b
MD5 bc5d86ac468549c3eeff26995e411a9a
BLAKE2b-256 ea220d15065ef9559dcbcdf3059014e148a9129beedca0507809591ce3426d6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08d7f8d4d3412450c8faf48a734b0d21d547d02f3ce160f7dc3d88e9b0213324
MD5 aed2f186063f48464a52f17a0b9921b8
BLAKE2b-256 ae031775d0be11defb4f9a932bbf6ed0fac66dec861342b6e9bf3f312a9ed684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ab856851a289fedcbe3b1c53ad6472695d565827a6f88a64060735364242dce
MD5 0c4d0e4929730590d7ed414eddbd9964
BLAKE2b-256 b4af9a7e13502284f350288d2327cff084fb8d1c1ba7336cf86a046a877be138

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 af98df75762c9e23d59ca441f892fb2401617073ec6300e84e4839d0b095f702
MD5 5717f974f0761c6b029aecdb042d0fe1
BLAKE2b-256 b41e2aca224d2beb014512e728fe50453dc4652f37bfa35c75b5d74c51d5221d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.947-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.947-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba6aff65fb574ada9b57c69407d4bd01f5245a792a19f1ddde3d642e3e4c386e
MD5 685db45661aa256b02ccda160694e14d
BLAKE2b-256 5051145f0aa8fe5c19f3cc43f4a8d6c0f0aa5593f062bc29d63a834768357e38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62573443bda2cbe8d6c8e04f4d12b64b22293358b877db79dfb73af028d671f1
MD5 e5002733d523a42c68a8fc2fb2e29667
BLAKE2b-256 cbc58ffccbf828bf06efdfc21ed4d14efa7137137ab3ca1a8f9c4faec408e768

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ff8d3a52f46dfabb2cb266f93fbf5168ad3e810ce01c62f205ddfd761ac95dbd
MD5 7184e4f96f75dfefa6cfd8f67f4412b6
BLAKE2b-256 a52551e8cb6ea0f1d68e0bf37f6ec9df7c1a5cfa7af4abdd246d9736e564c945

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.947-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.947-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7f2804df636efc98fb25e7a60a6b7cd15c5536476da76a0065435f6b3106b52e
MD5 403d2eb418b95be5494759a04bb46c10
BLAKE2b-256 29ebdae7dcb11f69076c67dafcef3af726afbe84136c994cd25c959bd740f2f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.947-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.947-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f6df1f2f614aa14af332bb99d2972c8f94f0828f9509eea5ab7326352c15a1c
MD5 4a17ec5bb3aa3ccfa73dfa3ef8bcef9a
BLAKE2b-256 d8adf6f0b5a781baec06c4be7b51f914cbe5b86ee56e4497ed5636341668486c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.947-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29f209d40ff9a0616c52476fe163b4351bde7fd9f5446c569a6cac1dccaf217f
MD5 856dc8090b23adb881caf80ab7c70523
BLAKE2b-256 96760a6a39ad09ae63f0b58e6f5bffb24b9e4f271c5e2ccad6c365d52997b2cb

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