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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.768-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.768-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.768-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 26c509fee5ff546fdcca1bf335f92806d1b66c3ff525f054e4fc51b520d17851
MD5 12f771bfc1eae5fc75a216289e14c967
BLAKE2b-256 d7a9b1b70f1f0d1dd210753f826af9a2876770b847092486fe5347801cece72a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8c4175c4f9d4ae7341bd3f972c4ea988387077c7bd96778dbee6be039a7de827
MD5 56a7b84382fa8c38389c14e91ae70614
BLAKE2b-256 9382f5d8d79f3657d0656c9a3a21542bc01c4e1940a211b1d33cde1da6e0c44a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.768-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.768-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa1d6a78d16d299df3cc0c99175e20f8a7900380eb32bfdf9073e62aba0a6c8d
MD5 39bfa9ee1fff674a5ac2954f413a530b
BLAKE2b-256 9e4960fe99671137618951e197cee75300850633fd5eede16056320e3dcbc323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc588984de0b04f94d6375c48271530c0d5b277635aeb1b29aaac7b579d3b8ce
MD5 ac0bdd8828f153d4137767165a7acc0d
BLAKE2b-256 3a7b8c2d84563825d8f61996c5b6550ab1245121957d79af280ba8a4e575d83f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a469bd45c23935d385566e60dc708d039dba7fedf236883c68ea98eb65dc0535
MD5 bf30a86de211185e14c785022baa2db2
BLAKE2b-256 fdff943a795cbc5b02bb04582120793b687cdb39706ed6290fc19ccbd05d254d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ab90b6e93442f21934df9a192b352f198227d827314df699112a57073dc79fd6
MD5 9b6bc4a4c149a4c89b313a429feb5beb
BLAKE2b-256 de1aa900de032973815bcd7c03c8034cab2f5a3a46db0a4cd51d75497d908dd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.768-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.768-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2c9d7716c5979d641d55da31acd25bcec1ab7d20b664c12de79b347459b324f
MD5 e554cc04b6fd4e08e6d6825cf9b8d2bc
BLAKE2b-256 1c3f2c724734c649956558df2993470eb5f6d1b246ec3de11425321cc973aa00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 219668515ec32129d39620d4251bf525aae37fdbdffcffcb57494b9aa285f707
MD5 93e8cfc581da90ae7aff820f679e642d
BLAKE2b-256 d2d38de89a3b7fd4ba563f645cacfc086b9f1dae54efb5ed012059e8b24af5a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7db669c44ecf2a317ed635d7201fb8d2cd815d341564a936eca709b316c30f3b
MD5 85cd98e10ff1d644cf672c45a367484d
BLAKE2b-256 dd76a3f7d3ce91e3b66947c50657c441c80f26fb5ae60a0d51da55c59eaaf46e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e5f035b4bd7e7b8faa2f257c6d0b8652a5886612a37eacb2f9e1c33c1517c63c
MD5 dff8e6f801af3f2941c2f2b2755865c4
BLAKE2b-256 2eee9de2984e316946ebda5ec54086c9c9349c2860b21db436a6bceb9bdd8199

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.768-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.768-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1654f33858e7d4fc45ea5160addd7762430c483ca8234e569b84ef8f49e64282
MD5 b05186d241608415114f11bfb5912480
BLAKE2b-256 882256dbfe4564c9a2d44eb3143ca7132a04907ce65446ae3225df92d56eb727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ba044df23d2fe280bb5b6b11cdee28852f17e28e1edc39f8610bc20a3e3abdc
MD5 088391b613d1ec63dd273986427aadae
BLAKE2b-256 2061ebe5cb725a6461208bc9ac53f030250033ed936dc7f8cac27bcf8485613c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9009dddfde20c71ed84ade11b898f8acc527f7a771ff6e7536e5354c78752223
MD5 64787b231f4d4174e370d90613114939
BLAKE2b-256 35b8e1620609661250f426b5bb9c3bb19eaabfda7f27507c5ee76b844c540525

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2cf799da15aa8a4d03263df76561c83945e65fa186e72ede594a7b913a6cf03c
MD5 dc76db026f01c240e790eead28a24c03
BLAKE2b-256 fa21e74608a3294954502167d16026c6669ca9c0d5a6b41d748262ec4b207bd7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.768-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.768-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3fb0c5b86b1e9985f78f865ab965348552d7c49ced14c13041af1d55cb43456
MD5 f08bed31eac5ccfb9c0f9826f2e62f2d
BLAKE2b-256 9cbbe6379009bba846eabb66bcbe8393f2a75dfc4f7fe363b221e10d8add66e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d37a4376df828ca01f20271cac9d822652b59787f3aa304315a4063a2fb3058f
MD5 8c61b686db77600057170cc4af0a50ac
BLAKE2b-256 d5a3bc0b7b77906719f2e01e058fe2c77974229dbfb57fb2baeca1c3dad95c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5ce7892f089df00fe724b8a60f3b6d13fec217bb4db4f10481ec707f84dd20d2
MD5 d3812cf39363c03db42771bc40be30a5
BLAKE2b-256 98ea71843d45f7d975e56878dddc36f862d4203276c6764f30cb2657d4ef03fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.768-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.768-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9fa00971f9452e3de499aa28e1d98580de2a76c76f58a7911a46df770381536d
MD5 0fb70670e7e813365bc383e3479ad9e2
BLAKE2b-256 6631a57142c8c2de61dcdf51abe7faf56a18e2396e3629223aaf5260e1882d21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.768-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.768-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6885e8789d063a6eeda2e9f461a4be760595d1d991140673d2ab6fb93cc130c
MD5 afbd0957a341bb03181dce4e339b2f78
BLAKE2b-256 3df36de25b3dcdada0051f1f2ada70277eaa0397ad25b1cfff26c465fac297bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.768-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2031678fd2cb5b40e5677db58440f269897094c78dac47dbff7c8e7f2fa99c2
MD5 a63b2cdcdb040e2103ee1b01aadfd3d8
BLAKE2b-256 38a71947bfdc5a2074c79fdd9c2916dad144ee34fb251fa5d80735f7f50ed1b5

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