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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.907-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.907-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.907-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.907-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad8a461adc68ddd84e4661c698585e7effdf705f65246373eee416389b767755
MD5 500b7b0afb042fa01677cd275d52d688
BLAKE2b-256 ed975143429619646ffc282acc7f679d730149efd66f87ff397ccc3d91324da3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f9144b7387459fb771948d37e1a5861857f2b98adce03bc4d5f90f96eccd7ad3
MD5 d76321bb626f9da55bb1d09fbf0fdfce
BLAKE2b-256 26f0c7ed777a0a0fe417e5d76cbd1377be463d7882ea7181b7e230b10597de67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.907-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.907-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b328343ac5cf886c1f69350f46ca40db3bdf69274aeaeb51ef93435f5357242
MD5 aa6b1248a93e362ef1d88f583ae8a56f
BLAKE2b-256 2fe9870ba37184f3fbe834de435afca0c1764f7e3893780b1155bf192f9396ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fb2cf46b24d2cfb55ab7216941f41589825f94306aea70ad596a0dc2262c62a
MD5 aa621e3b399e37d416ab788a91d443ea
BLAKE2b-256 0b49cc18afb82f04e5eab56e2898c781da7e3380d3ae96f2a6f1585b3d46b471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a2b737e73dd521c833059cfc19e21bddca7b9dd576ec6833cc2bc6bfdf6ee2b
MD5 a264e24390c09f4e9adbf938a19ef262
BLAKE2b-256 a0857794a2780a0b591d65130ea37ef0a6489f2477f90016a53a2eaebf1be1a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 69dd7d0211e61568ced9cb4486509f1238dd21ac06531331dbfd4c34832e2899
MD5 36aecb7522d6c582b612acda78a287e3
BLAKE2b-256 9b5502bc2672134c0458602eb21071924be041e6092333adb4e176e0e46127b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.907-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.907-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f50ba66ae2c258ab0194bb432db00d43a5bddc73c89f5e98f3da15e472a3391
MD5 d25a484dafdaf69a596c4282b74f2a4b
BLAKE2b-256 4f103735467f3005fd938666408c5b86a5634231d1322e1583a9fb2a3967af63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e40fdd9f877ad311022e84c3f6a7383519c07405455a25bf46cfc9658151d9a0
MD5 821b177cd591a46207ee75cd56af683b
BLAKE2b-256 01a0bda22050c099c767cc91bcc4e818579aa66d120d00b87b93db8c95181e41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 874fe7af454e2c1b12e81048d31feb49d6379b2a782b85043ccee25655b9c047
MD5 4646cc15dd8cee198f0b4c0a8d8e55bb
BLAKE2b-256 d31e530a23801bc4f8b83baaffe6268e7de902c875d5dec1dc90c5d1ef667d36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 92f0bf74c636eaa85a88fc8798824fa556b3206e91b5381a0f54baba5c94d531
MD5 8a0b80adcbe9931ed712eeda269c47da
BLAKE2b-256 035a271db13f0e128fa6bed78ff71d0a645778970748b3874c0411f3a02c792d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.907-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.907-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c2ec703506b21e32d26ad662588b54b0637a340740eff28078e449d948a1df0
MD5 ec88d4ef7cd3950fd1c64aaca1d2e276
BLAKE2b-256 447582ecfbd9b74e4acee14a005e51e1dc11d31168ca68d5e3d7f467fffaf99d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dd1ace5ab2dbb8bafc501108fab0be35ada4e70a2a3c36f62e1870d9c48dd4b
MD5 f906f8bc2e5f539237315c366d5c93bb
BLAKE2b-256 f3f63b277d0e5fce305f45224c5fe758e9b922e60936f1652935c427442cbbcb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 37150fede82012bbe8f1be6a70c820cf56ac99caf84a1962d4b5fb20830d8914
MD5 dac32b7fc8800a8308c8afaac4f8b56d
BLAKE2b-256 f0ee0f11c80d536d08327c6fcc6d22b4bcb1b1b96faff1814ad15d29271e4e90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.907-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67dd86d75585c6df65ad61b8c2d3834ad6c6a679a081af54b4170fa65ec98c3a
MD5 dc828c800490e022b9ae29f7c93bf9be
BLAKE2b-256 f5ca4bfde1c121d2936c5b69a5f650b948285578d0a1258da698173ea48ecd18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.907-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.907-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b23f3ab1e08debaf47f10f219a06e901d6cfe2a1b1f13b1683682ab98375857
MD5 b5a066dc728eb0ef7218f7ef6b9eec63
BLAKE2b-256 55eae977d208b755680a96198ebb3bc78e1f0f75606f66e80f47fc95a67cddc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d287d65eb4e6222a847dd60fe7e6af493908ec1f3a030fd7e87ec55648234751
MD5 7287b2162c3d65e0788d32d0645bc09b
BLAKE2b-256 7b62e59e4358e47643a797789ccbee6dd6bf401a97b031670a2d419badbad4e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 abf0ae2e8f8ee32bf059be6195520a05afbbe12b181f1ba25da265befff65cf5
MD5 c33c71e4e66fb6197a3dd18c59a53b5a
BLAKE2b-256 6ede559c0d0d283508c4745e3147484053c442cb9322513f95c6ff781e72d7f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.907-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.907-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 acb1736b637398444322b277906284eb0690505b66da4f13d03353fc896905a0
MD5 5b1bc67339ad163a10d31d2f3548193a
BLAKE2b-256 1041b053b84e3eb210004c0a14eb5bcc87739bb38b52ddc6d411dba942cc4afb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.907-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.907-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de073fb7ee93b4bc2d6933c9c0270032a42b8f2b496e65a67c70dae5eb4ed22b
MD5 40d8c659375cffbd866f405bf6fe5eeb
BLAKE2b-256 5428cdfd3658581e07b80600acd5502300c3f3cb63c52bc3d23843909b706a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.907-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ac16868d3a2c212186333d45c9061c07a40e021d86e192821085f2371eb9994
MD5 260ed1ee2bd24303cad2de67e57ac2d2
BLAKE2b-256 8d791b9b4ea4efbb9b5557dc34b15d5233fcb47616f825ac6724826e2813d4cb

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