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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.786-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.786-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.786-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae7e40c136ce489de3936e01f2f88a5541e367942dc3329868fde9902c45cd42
MD5 abca3667a9ea74927c181b077bcca78d
BLAKE2b-256 0b01f8b5a98a71cc4b971350fcdc1be0bb982d0127497b1b11d38130de1e0a36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a8a54132ce44e4f060a24afc9070ce1a7985d97790d9302c8ef878e66bb35a84
MD5 1d51fd29515587fb08a0b1106780fecf
BLAKE2b-256 8056ea270dc46745976eca6d435bbd3a332d42a99d5d5c4a94bd1d3cfd79038b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.786-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.786-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d95b53fabfcfe2852d25c4bae561f3f425a5d9ff9d160065ecc83add0724658
MD5 ae936a6aa0631aafae91721a6bef7a04
BLAKE2b-256 ea9e2faa77cf5b252b28e093f8bb08c1f0e1673d3b872ea7d30f0b659958d6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed5ca744d370f055a7f6aa1ee52f673e684968b8f56b56b42f46693de9bb00bb
MD5 a07715add11cd6508f32831d1054c79c
BLAKE2b-256 38a33d3e4cb2274991e47da30f1dc9d173bfb850cfeb26ef27da4fad7d86d8cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 48555f5511f6765788d56dc56d04920eeab1e478841b8237e20bb68881d7b8ea
MD5 977586cf99c235fdbd73d25d04407803
BLAKE2b-256 4ea9331d65bcb3b20a72ba35b3059650aa5934c752cffaf7f2eb847c6aca3b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0c3324f1f718a9928d78730cac03d7b133fcd307a0bd4f73297b4a6ce3e382d0
MD5 eae7d559460ae2799d83649f1d3078cd
BLAKE2b-256 b31df553afc49718d3161519f5a7ef45acfc412018cabcaa3271c57175aa5215

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.786-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.786-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d28483f0af8375375c91203469c639eadbb49089da2e9a7c203d929ed1862c42
MD5 a8c65f173b1de6d25603db7c83b7e8cc
BLAKE2b-256 a57fb392a40f013c5b6f830b2839431ed42fc1f7a0f2c4f66c5673588730a54d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 249e10783eae39db9e9b9a69c6aa7511e560b675c5db8e2d6097ed9a2d63b969
MD5 b7af9e0435e68dc55c0b8941aa5c2142
BLAKE2b-256 a90bab7b101e162f60a5e3cbff9e5a804afef5ed90abcfea18581e708959d4fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b7ddef6e5156194afa911b4a5ecee7e75c6b04c04ef9d27f2d9c7aaa144d591a
MD5 2b09b806e99757fc1a1c8e367cd890cf
BLAKE2b-256 3c5d03215bef78ca4b896f56e5705545f61e37db54c250ea7f4d2bf05e65af0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b5e537ca2a57220bb11ab9debfc536f5670385599b671ae0f4caaef05919c3a6
MD5 f37f8cd07cc734f322ee9eae87d6c8d0
BLAKE2b-256 5f519c65b216524eeb3da7af4fbe4955bed904faff640a4c58b87b6810a84a6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.786-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.786-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b6000ffb2247c720b9a55af7edcfa3676c6ed3034a030a4e4c411e748482260
MD5 57bb64a196a31a4df841d1dcae339700
BLAKE2b-256 fc0936d9c11463d2532e0c6a9c88c7d1e26ec4d3128c73a6d6bdf8e96f0a0806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2058bcc2f754d180c1f15610a32c1c49669d469ce35994ba3127b711fbbe75d2
MD5 904a0eb866b0b84a30eeddd98cecf602
BLAKE2b-256 0db5d4692566347b37b20db476b9b22284ea355c1e95cfed27faf98e0703965f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9f2142abf3c3605313d97c024238319527fabf36cfd49dad59b4d6fd25c7ac95
MD5 bb85d262a0f5e51b36a6fef0d3cb1f53
BLAKE2b-256 20a44b5d8e6c26e66924c705f9341e70affed08d968116c8afced6fb07b9ed55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 17e07b6d9c7dd011537b2fbe89463d347bf9905e6f944d3703d8690808e76423
MD5 13c7a62d1bd9b82f0191a9cd6581d945
BLAKE2b-256 0b52c9b05c77de85224754b388b5d96a9a324f0b951abfad4229544726f28203

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.786-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.786-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 470f5632e9201ece951f8501f256cfa8b1fd2b41ea5c8be95e9a31d7e87e6e48
MD5 b4512b02f532856bfb60a21c50fe5f57
BLAKE2b-256 ad7aba131ac9a0be799d051805e721aba95cd8ad9c0b3f76597c4692c0b63d4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6abf36182e89f9140c30c91193882a3b815b3c6cadb3e7d8b870a0b5bc8ab39
MD5 72c282e683632b14a931798d05b70fec
BLAKE2b-256 b8b4fcab689e942a6e61185ddb9b392c791341efe57fddeba548461befb64f31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 09ee2ddc276160c91a3c25de0391c95d720c936a0d8229cff385ca8a232c2252
MD5 81739862316dd8b810f287a7a8837d37
BLAKE2b-256 d5855653e5243e83b861e271a290984a77ca2a6b8fdd299a615d24fd21ada7b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.786-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.786-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8a360160bbb8ce337d2bfda1120a3f3b48033dc372ef3d28e3ad910a768791f1
MD5 6c8850c810d253910ff3d689bd91fb05
BLAKE2b-256 d7c8ad5a22d47a4ffe3c9d1bb870afde45967b99823557319466124e0250b753

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.786-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.786-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be750b9869850a9ef4779105bf8402d964524197970185b688a5bd7bb93d0e31
MD5 78887afe56acf492931817d42e2afc0b
BLAKE2b-256 982aa641cb0f3d198b373b811a8760fe5152024fdaad4fb9bb5aa447f3fa2c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.786-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffdb9ace0f407a5626faab068a6909f41f922fa9f4ad8ef18bd839af6fc6952b
MD5 b3ded4ee5c579f311ac2433868da214b
BLAKE2b-256 feab4de89636ae2ecd6edb375be8a80ae1116472b319f4177141213c511dc6ce

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