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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.210-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.210-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.210-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6dbaaf097bfb71512e8aa548be67f09e7bdde92f46334eaac856b9668e325ef8
MD5 642f17fba394ec7faeaa08fbf6f26171
BLAKE2b-256 184a234b4c26359ac82d0be2c54514c6a9f59b967cbaa56fec2357bef4c34264

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f86d30429c4f3691170c79cf5bd365f8b4f2be1589df1ba8c51d4b9f538e7f9d
MD5 f6d16e04e54b1a84cae4084d1c29a867
BLAKE2b-256 47a13d8278c7044b1dda1e5c44971f62ed5a6da8fcbbdf1313578342fa46d47e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.210-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.210-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10675ffbb6637ddac08a7e58bf3494fa2a94623e840359b875882c17ff32f23b
MD5 35b1477f655d6b3a93453e55ddb46aa0
BLAKE2b-256 57970b34ba8f3b5b221a2d42b9fd34bac4e40d28d1ce2871dfe41ec5f99e1617

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9558cf7c3ad0805c9eb6415054adbc871d71fcf7b99f6743ab2387d80b2da6d
MD5 ab1bab40b5832c47601f0cc2fe2371a2
BLAKE2b-256 99de62345f8566378c486d742162b5553d08b9438b94e851734a122955f5cf87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 433c4058d58760bb59862df49625fefcbfbfda8c47a39118a2edd815e2ace930
MD5 d115913942fb752dbf4edf53938cc0e4
BLAKE2b-256 b7d7895044189db1f37539d10e700dd73ef61d2f854a5398e28a336be8236dd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cb2ed4f209b6c3b41f7950f62b21211a58bca797b8c172ff2d2da509e491ee90
MD5 b4f89fb717d2c856f49fb3b161148124
BLAKE2b-256 c5f430311a9e3bb7c3364385c2f25af1aed04a8ced2baee393046ffc8ed984b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.210-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.210-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dbd53938ae8ff90ec035fce7bf0fcd415ba826086b7478af114b1158679f2d26
MD5 d251c6f38a2c0ef426c6492502d9f88d
BLAKE2b-256 ebf0ed1653d0a755cf431a632fb0ce3e5e4c447ffb8d3bca0de95b4cc287ce1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92096c3f5cf6a510e1e696a76bd3a797c399e123aa70a5be06de18efa93e45fa
MD5 76b6ff6934011f73f46a0f85b62c6599
BLAKE2b-256 2200eeb82dd3731b9d6c7d4512e57b75348cf4ca6573a02e80e955f01f999492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3347cfa43b62ac469cb93ae9f5907446a07a11ef2755f4192ee5ef9e1bfc91ac
MD5 085b9e427f721d1e8a7087d7fbcca551
BLAKE2b-256 92a222929e82acf4e02ea55f920075e455ba01234e706ffd67a97cceb889a4ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f071641c81ec438d84238e40906df4debebede3d95365fdf7846bd66db3813a2
MD5 936b7714a31a5aa3612370f9bfeb4065
BLAKE2b-256 fb02cafdb55ef828204ed25587bd58a33a75cf4d9b38987fa8762c619a038203

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.210-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.210-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 683826e784c17e9d0f1f6d7c0a8d17deecf26d65e74ec83b7ee2e7bbd5ccdce1
MD5 e4b341443dbd8b263526224979e8fafc
BLAKE2b-256 14cdf2c6531cb79d88f1122a8d2b663089c920544bc97fd685679fd7608acf3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e3774e4927ecf6e7ed1ed0e66aaaa0ee9cea5d2ceb7a81d90273d819a42065e
MD5 837c9a1d8d8fbee0b9073888bc9ac22f
BLAKE2b-256 13423669c22323bb1fa77ba60e5490d1d99f6484ec9d3fca9e5b0f74a99f14e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a702a7b4e5c87e84577e8bff66e98a8fc6984f455f0168cea064ab7b2f146425
MD5 2d6dedf111573571bf6c80baa121cc71
BLAKE2b-256 14f40a601fbab2d6aeff40a1fd3b883cf83502dcc1b169d616728338c0bd8161

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 97adcfbc9a5a668e8431a9d54dc17c85603578f18375c5131dd5f62937917c2f
MD5 68dd1687e7e236e62145881f35143c64
BLAKE2b-256 67acce4c5214ce56cd6573a76fa1de23e91cdfc300996ee02801a62d7210f3cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.210-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.210-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f9e9bae918d772895a788cc0ba5a746fe12b6016b228c6e46b1c4ad11cd76ee
MD5 8e5a7c0e9fbf9294bf2a1cc8332a3794
BLAKE2b-256 437a7fd01dc65f99f2ba0a01c5637fd479565f5b9c0db04dbd5e40fea556e7e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae2a94b739157ed1b99825fcb48c5c2c71f5ec3f0dc44e67442028fafe78f9d3
MD5 6e999d6f0df459f4a23012f21ec9cab3
BLAKE2b-256 fa91b9ce7260a806c5a219e10b21f999891c512972cc76b172818770702ac70a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cbb212f93bd148924c787a756ec2d7d0707d52c1945c171a68ae3ab86c2e65f4
MD5 72b60a0d9881819f5162c0e7c15753ea
BLAKE2b-256 6d69839584545c14506a66f57f1f33ef793be63c70a9beeba373d2685a340283

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.210-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.210-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c05ee00986922b712e45c2d464cc01dd12c8bc055ab4f6c54049a5db298612a4
MD5 52be058ca5c558fd3cbf311679e80aed
BLAKE2b-256 d19b90ba1ae2ebb1311b6ed2fc4ce60efb3352fb7c7873c30e17eb7dd0c5b5bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.210-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.210-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87333e0fe419ede9e72cd7ee1ec34c2758e18cccc1e580c1d9faf2722a962ae3
MD5 bcb9f17d94c824a1e221e58ac56e5c41
BLAKE2b-256 339656825720767a0cce3266bebe8fa52b488291c66001df32d0966f0bea7b9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.210-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4de7c36c1e508843859f5e3625cc52d555de84583fd14bd2f42ba65d1c61daba
MD5 765144d35a6ce340536a4b34f0be83b8
BLAKE2b-256 2403ba21118c6b090267d18d707e76a555badc18b39d648bd6622c2adf3b7fa6

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