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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.459-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.459-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.459-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 29e9662cf7adaafeaa9b35beef32029ad903b5a8ec0741f5d24d6ee9df1dcd85
MD5 b90ce58d824f7dd34aa8d4dd48c83b12
BLAKE2b-256 f6226eceffaf1c3cd68f896284448aa306f3bbeee6eeca350aba8c1cf08e161d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 56a7ae9a4b5f4c27e07d6c13808f648bf6b28954ab4d0f2da0574cbf0948717f
MD5 0bb06b4d10e500226a02a78aaa53fb0a
BLAKE2b-256 9d9ed9944ea89de49f3408320e0cc0d90d03019fb13f9872e4e406976add527f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.459-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.459-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7c8fcb3399787cfac9c78f32bffa6506152b278d51679ce839fd97917bb137d6
MD5 49fd1d52b626808d53877ce33b442944
BLAKE2b-256 c71b6d07bb7229bc901d97ca44a5e3a5900f649700ec8376a399d413b9447f56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b600525d148172819cf9559acfaac1a68f72e9d4823b7d00f169f6fdb1c9f731
MD5 f05c3a5bfe75692bd3bdcbd58d261f0d
BLAKE2b-256 df3f3f059abbde438d169a801940a5a4c9e2b0091cffb93963776047b61ae2d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 087166bce1cd1a7df915473160f5fdcde8c09f0367978dcc9bc79c12a8af5578
MD5 28f6acf219e41d8b7e0196f5d114ad84
BLAKE2b-256 8382cc063e219e496ac22ac4da43252fb842831b40a3d3e8a1ab662c95405070

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f7c9a876fd2b32d77b6d71617390d028530a03d44c6c91178cbd81139e8d8dad
MD5 6c9ebdcfddcd74cc094d4fab61feeb31
BLAKE2b-256 3465cc4311421728e2d778d586f041a8721b21a26c5baf62b8262e0c9c11ca65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.459-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.459-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a22d3e9b3194c3383037af200d967d57019c77b026f0b4c0e8210ce60150cdff
MD5 d03ab81824b05821782a9a94eacecd6c
BLAKE2b-256 7192051a23daa72d0e962f55549ed8f82b5b8267b740130841c9f95b7baa8856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf864cefe50180e8714fa0951a1d99e0518b41d9be77f97e5298843b81c028de
MD5 4ac351a932a05aa8e7fb91db14aa687f
BLAKE2b-256 fa05a7c9737e017408fc8df9d35c2880fc7b18c7d98bf3034972e02bb086335b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3974f949ed141deb392a53f5c66de018b7f4a28abf5d897e44ac1b68653d5b5f
MD5 9dee6db9c633c2f3d112f28770ced919
BLAKE2b-256 92f5d1bb3a8961d7369fc8f163bf83227a4cce5258bccaecea90f930062c843e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c8bb228149a889304d4db31e006793a96b1741d4551f3867068357e22d6a2799
MD5 7627a83e7aa911428c719ce79e254dc3
BLAKE2b-256 d660b6d4dde010066542de8902df8df3b58d5dd1df2a5dc501de922dc5367567

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.459-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.459-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1c1f0d7c3350aa3d960979d0ff8a60b6a4117b03b7e9707895b720f3d6df0d7
MD5 e4fd9655383f33d33876a8e8ee50ac25
BLAKE2b-256 23d638dba7ddb11c680d222926e48972cc9729a5c5ff532be12ccb132b1ae0c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be938faabf9515931cfbdc93f68fa292d6c017d3236df8ba4f513f07e6db4ee6
MD5 bada0fd2f0b3caf82cc977416d06172d
BLAKE2b-256 655c1320890129f3c19388cc5464f8320f3d66910c858926ebddf952f6a91eae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5b3320856f15edecdf66a413c87a9138724538a693b31725d2ebd4b50a19acc
MD5 cd62694ddbe9bcf5862170f3fb901395
BLAKE2b-256 78818528bade0f94e4f68f5da5fefbea8d342bbdbc50afd723252f69a789cb68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7e6292bfd8ae9224e8daed275b6010ddb264d93b7cc47f612669216e08ef8e45
MD5 20c8ac9e14fd402d1e8973ee9da9a690
BLAKE2b-256 f898e4274bf8e834cdd540d0ecf300c51c16c39c928b5849d1a85c11a9797937

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.459-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.459-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 225be7b3d542d4d09fca500055024e3927e0728d4a438713218bb1e67a71657f
MD5 ffc3e34d404cbba5164ce3244732843c
BLAKE2b-256 d01e6a6fe1804234f3daee6e62e0e0d9bbe49b0b50616fc6bd24ea272bc476f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f8fddfdf4221d9b1a51e612dee3a4789f05f2f7d6267099baa01d398ce5bfce
MD5 f382bc600c4f322aac5d780ff2bef809
BLAKE2b-256 f04d9fceb3f120230aabfb4900347cedcb899ed994323eca9f63402df78e8e7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0bf94741cfb39665b5a0879810a96a40fb10969051e5450205de0913cd8ccdf4
MD5 ec72fe9c2ad37e8dc8e2883eca97ff7c
BLAKE2b-256 e0280da7419bf1b0e41b6cf8c9b8371033c176cb1c74b3006531a2ec60bbc018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.459-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.459-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a89874866842456de85d86d87474e64b81cd84223a98ba51bc3582fd4624f31d
MD5 fcfbcd665e504a1228e85f4dfda6efc1
BLAKE2b-256 bb7d2606106fc230a653b6276f325e5acb1b13e3f624dcadf63f91a7d0bc2486

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.459-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.459-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7d8925dd89f14f9fd1473ed0c68b5dff5de889c2c021eebdc567462ca9991f0
MD5 9d4b9e9060c4f37b4740e7606be259b2
BLAKE2b-256 2bca6fc9722c389e25e93d447bc4fe9e2b7e07b16499e501e7f488013192b492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.459-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd6f073481a5358ada6cb37b51fd15ab684d507c2c5a97ea749893d05d197b3f
MD5 34989296ac2c369f3dae9c46c9f080a5
BLAKE2b-256 63fa9295da839e89951bc4567dbe415591d0382a57f44ad3fdc321353dcb14f8

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