ScEqAn (Scientific Equation/Expression Analysis)
- Dynamic Expression Analysis for research on equations and algorithms.
- Used for providing boundary values to any equations to make sure how far the input dependencies have impact on outcomes
- Altering the x, y multiple times to check individual impact of x & y on f(x, y) is the ultimate goal of ScEqAn.
- Check out the example code in repo ( https://github.com/Palani-SN/ScEqAn ) for reference.
Note:
- Recommended for Educational & Research purposes only,
- Not Recommended for Verification & Validation (Testing)
Step 1 : Create ScEqAn input scripts in Input.txt
[P] = p{-10.0, 70.0} + r{-50.0, 50.0} * t{0.0, 0.20};
[Q] = q{-20.0, 20.0} + s{-50.0, 50.0} * t;
- save the above content to Input.txt and use that to create the Output.log
Rules to be followed in writing ScEqAn script
- All Input Variables of any equation should be provided with a range as specified below.
... = input_variable{lower_bound, upper_bound}
- And Output variables should be enclosed within square brackets.
[output_variable] = ...
- Otherwise you can write the equations the same way you would write in a python code.
Step 2 : Use the following example Code to get reports
Analysis
- Sample usage of the file is as given below (Refer Examples for more understanding)
from ScEqAn.Analysis import DynamicProgramAnalysis
OBJ = DynamicProgramAnalysis("InputFiles/Input.txt", "OutputFiles/Output.log");
# For printing the results to console, set Debug = True
OBJ.Run(Debug = True);
# For printing the results to console, set Debug = False
OBJ.Run(Debug = False);
CodeFlow
DynamicProgramAnalysis (class from Analysis.py)
- Initialising class helps to configure the Input txt file to be used and output report needs to be generated with the worst case values.
- Arguments
- Arg1 - FileName (name of the input file which has ScEqAn script)
- Arg2 - LogFileName (name of the output file for the reports)
- Sample usage of DynamicProgramAnalysis Initialisation is shown below.
from ScEqAn.Analysis import DynamicProgramAnalysis
OBJ = DynamicProgramAnalysis("Input.txt", "Output.log")
Run()
- Initiates the Dynamic Program Analysis with the already set Input and Output files as configuration.
- Additionally we can select Debug as True to print the current status of the run to console.
## Definition
def Run(self, Debug = False):
- Arguments
- Arg1 - Debug (If True prints the run info to console, If false doesnt print)
Step 3 : Check output reports in Output.log
- you will be getting the extreme values of input with respect to output extremes as shown below.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ScEqAn-1.0.0.tar.gz
(53.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ScEqAn-1.0.0-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file ScEqAn-1.0.0.tar.gz.
File metadata
- Download URL: ScEqAn-1.0.0.tar.gz
- Upload date:
- Size: 53.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262c8b45209ec3036fa94e2193169db30a0ed44076daf0f9292f8fe2fcd59ddf
|
|
| MD5 |
9d0b050c634101ab20f0b7591fa0e2eb
|
|
| BLAKE2b-256 |
fee5c67ced7cbd46f88b3ddf990d4e5c654c932153759233dcb2949a333c61e5
|
File details
Details for the file ScEqAn-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ScEqAn-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e89fadbe6f75fa2d2b7fc07f279240371247fc0bdd5f2066b6a5f7af4a7fbbc3
|
|
| MD5 |
c64fc2c88dd8fa0dd1e38ceafd202960
|
|
| BLAKE2b-256 |
c0d75c3ecbade335b21d6fe2a1247064e46b09c13fc7328863574b12ff2047d1
|