Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aghajari/MathParser
/ functions
Functions
186 in github.com/Aghajari/MathParser
⨍
Functions
186
◇
Types & classes
21
↓ 26 callers
Method
trim
()
MathParser/src/com/aghajari/math/MathParser.java:1112
↓ 18 callers
Method
apply
(double a, double b)
MathParser/src/com/aghajari/math/MathParser.java:873
↓ 14 callers
Method
get
()
MathParser/src/com/aghajari/math/MathParser.java:1116
↓ 13 callers
Method
getVariable
Returns the instance of {@link MathVariable} if the variable exists on {@link #getVariables()} or {@link #getInnerVariables()}, Null otherwise.
MathParser/src/com/aghajari/math/MathParser.java:757
↓ 9 callers
Method
parse
Parses and calculates the expression @param expression the expression to parse and calculate @throws MathParserException If somethi
MathParser/src/com/aghajari/math/MathParser.java:168
↓ 7 callers
Method
realTrim
(String src)
MathParser/src/com/aghajari/math/Utils.java:201
↓ 7 callers
Method
wrap
(final Method method)
MathParser/src/com/aghajari/math/MathFunction.java:60
↓ 6 callers
Method
calculate
Calculates and returns the value Parameters are usually double values
MathParser/src/com/aghajari/math/MathFunction.java:46
↓ 6 callers
Method
getParameterCount
()
MathParser/src/com/aghajari/math/MathFunction.java:48
↓ 5 callers
Method
addVariable
Adds a new variable to this {@link MathParser} @param name variable name @param expression expression of variable @see #addVariable(String, dou
MathParser/src/com/aghajari/math/MathParser.java:610
↓ 5 callers
Method
isIdentifier
(String text)
MathParser/src/com/aghajari/math/Utils.java:205
↓ 5 callers
Method
log
(double a, double b)
MathParser/src/com/aghajari/math/Functions.java:113
↓ 4 callers
Method
addConst
Adds a const variable to {@link #innerVariables};
MathParser/src/com/aghajari/math/MathParser.java:747
↓ 4 callers
Method
clone
Creates a new copy of this {@link MathParser} @return a shallow copy of this {@link MathParser} @noinspection MethodDoesntCallSuperMethod
MathParser/src/com/aghajari/math/MathParser.java:844
↓ 4 callers
Method
findBestIndex
(String src, boolean before)
MathParser/src/com/aghajari/math/Utils.java:104
↓ 4 callers
Method
getAnswer
()
MathParser/src/com/aghajari/math/MathParser.java:905
↓ 4 callers
Method
isSpecialSign
@return True if src is an special characters, False otherwise
MathParser/src/com/aghajari/math/MathParser.java:831
↓ 4 callers
Method
removeVariable
Removes the specified variable from {@link #getVariables()}
MathParser/src/com/aghajari/math/MathParser.java:689
↓ 4 callers
Method
toString
()
MathParser/src/com/aghajari/math/MathParser.java:957
↓ 3 callers
Method
addFunctions
(Collection<Method> methods, List<MathFunction> functions)
MathParser/src/com/aghajari/math/Functions.java:71
↓ 3 callers
Method
calculate
Calculates and returns the value of an expression @param exp the simplified expression @param main the original expression
MathParser/src/com/aghajari/math/MathParser.java:385
↓ 3 callers
Method
factorial
(double x)
MathParser/src/com/aghajari/math/Functions.java:272
↓ 3 callers
Method
getVariables
Returns the list of imported variables
MathParser/src/com/aghajari/math/MathParser.java:726
↓ 3 callers
Method
min
(Double... a)
MathParser/src/com/aghajari/math/Functions.java:141
↓ 2 callers
Method
arccosh
(double x)
MathParser/src/com/aghajari/math/Functions.java:379
↓ 2 callers
Method
arcsinh
(double x)
MathParser/src/com/aghajari/math/Functions.java:391
↓ 2 callers
Method
arctanh
(double x)
MathParser/src/com/aghajari/math/Functions.java:451
↓ 2 callers
Method
attachToParser
Calls when this function just attached to a parser or it's parent variable called to calculate
MathParser/src/com/aghajari/math/MathFunction.java:58
↓ 2 callers
Method
compareNames
@return True if name mentions this function
MathParser/src/com/aghajari/math/MathFunction.java:40
↓ 2 callers
Method
create
()
MathParser/src/com/aghajari/math/MathParser.java:153
↓ 2 callers
Method
firstSimplify
Simplify syntax for common functions
MathParser/src/com/aghajari/math/MathParser.java:197
↓ 2 callers
Method
fix
(String src, String function, char c)
MathParser/src/com/aghajari/math/MathParser.java:238
↓ 2 callers
Method
getExpression
()
MathParser/src/com/aghajari/math/MathParser.java:945
↓ 2 callers
Method
getName
()
MathParser/src/com/aghajari/math/MathParser.java:941
↓ 2 callers
Method
isUnsignedInteger
(String s)
MathParser/src/com/aghajari/math/Utils.java:192
↓ 2 callers
Method
max
(Double... a)
MathParser/src/com/aghajari/math/Functions.java:134
↓ 2 callers
Method
name
@return the name of function
MathParser/src/com/aghajari/math/MathFunction.java:35
↓ 2 callers
Method
round
Rounds the value if {@link #roundEnabled} is true. @see #setRoundEnabled(boolean) @see #isRoundEnabled()
MathParser/src/com/aghajari/math/MathParser.java:373
↓ 2 callers
Method
setRoundEnabled
Because of the way floating-point numbers are stored as binary, it is better to round them a bit <p> Some functions like {@link Functions#derivative(M
MathParser/src/com/aghajari/math/MathParser.java:779
↓ 2 callers
Method
trySplitVariables
(String word, double coefficient)
MathParser/src/com/aghajari/math/MathParser.java:1065
↓ 2 callers
Method
validate
validate syntax
MathParser/src/com/aghajari/math/MathParser.java:190
↓ 1 callers
Method
addExpression
Adds support of an expression to this {@link MathParser}, the expression must contains {@code =}, There are two types of phrases. Variable and Functio
MathParser/src/com/aghajari/math/MathParser.java:594
↓ 1 callers
Method
addFunction
Adds a new function to this {@link MathParser} @see #addExpression(String)
MathParser/src/com/aghajari/math/MathParser.java:659
↓ 1 callers
Method
arccot
(double x)
MathParser/src/com/aghajari/math/Functions.java:463
↓ 1 callers
Method
arccoth
(double x)
MathParser/src/com/aghajari/math/Functions.java:471
↓ 1 callers
Method
arccsc
(double x)
MathParser/src/com/aghajari/math/Functions.java:427
↓ 1 callers
Method
arccsch
(double x)
MathParser/src/com/aghajari/math/Functions.java:439
↓ 1 callers
Method
arcsec
(double x)
MathParser/src/com/aghajari/math/Functions.java:403
↓ 1 callers
Method
arcsech
(double x)
MathParser/src/com/aghajari/math/Functions.java:415
↓ 1 callers
Method
arctan
(double x)
MathParser/src/com/aghajari/math/Functions.java:443
↓ 1 callers
Method
avg
(Double... a)
MathParser/src/com/aghajari/math/Functions.java:159
↓ 1 callers
Method
calculateVariables
Calculate the answer of variables
MathParser/src/com/aghajari/math/MathParser.java:356
↓ 1 callers
Method
couldNotFindVariables
Couldn't find the variable but let's try to guess what could it be, may help to debug the expression
MathParser/src/com/aghajari/math/MathParser.java:1093
↓ 1 callers
Method
findCharAfter
(String src, int start)
MathParser/src/com/aghajari/math/Utils.java:93
↓ 1 callers
Method
findCharBefore
(String src, int start)
MathParser/src/com/aghajari/math/Utils.java:84
↓ 1 callers
Method
fixBinary
(0b010) -> (2)
MathParser/src/com/aghajari/math/MathParser.java:304
↓ 1 callers
Method
fixDegrees
Makes degrees readable for Math trigonometry functions x° => toRadians(x)
MathParser/src/com/aghajari/math/MathParser.java:212
↓ 1 callers
Method
fixDoubleType
(2e+2) -> (200.0)
MathParser/src/com/aghajari/math/MathParser.java:278
↓ 1 callers
Method
fixFactorial
Makes factorial readable x! => factorial(x)
MathParser/src/com/aghajari/math/MathParser.java:234
↓ 1 callers
Method
fixHexadecimal
(0x0FF) -> (255)
MathParser/src/com/aghajari/math/MathParser.java:318
↓ 1 callers
Method
fixOctal
(0o027) -> (23)
MathParser/src/com/aghajari/math/MathParser.java:332
↓ 1 callers
Method
gaussQuad
()
MathParser/src/com/aghajari/math/custom/Integration.java:105
↓ 1 callers
Method
gaussQuadCoeff
(double[] gaussQuadDist, double[] gaussQuadWeight, int n)
MathParser/src/com/aghajari/math/custom/Integration.java:172
↓ 1 callers
Method
generateMessages
(String src, int index)
MathParser/src/com/aghajari/math/exception/MathParserException.java:44
↓ 1 callers
Method
generateTmpName
Generates a new unique name for temp variables in format of __tmp{index}
MathParser/src/com/aghajari/math/MathParser.java:570
↓ 1 callers
Method
getCursor
()
MathParser/src/com/aghajari/math/exception/MathParserException.java:36
↓ 1 callers
Method
getDerivative
Calculates the derivative around a certain point using a numerical approximation. @param x the x-coordinate at which to approximate the derivative @r
MathParser/src/com/aghajari/math/custom/Derivative.java:22
↓ 1 callers
Method
getFunction
(String src, int index, String name, int count, List<MathFunction> innerFunctions)
MathParser/src/com/aghajari/math/Functions.java:89
↓ 1 callers
Method
getFunctions
Returns the list of imported functions
MathParser/src/com/aghajari/math/MathParser.java:733
↓ 1 callers
Method
getInnerVariables
Returns the list of const and temp variables
MathParser/src/com/aghajari/math/MathParser.java:740
↓ 1 callers
Method
getIntegralSum
()
MathParser/src/com/aghajari/math/custom/Integration.java:96
↓ 1 callers
Method
getLevenshteinDistance
java.org.apache.commons.lang3.StringUtils#getLevenshteinDistance(CharSequence, CharSequence)
MathParser/src/com/aghajari/math/Utils.java:141
↓ 1 callers
Method
initDefaultVariables
Adds default constants {pi, e}
MathParser/src/com/aghajari/math/MathParser.java:346
↓ 1 callers
Method
integral
(MathParser parser, String variableName, String exp, double lowerLimit, double upperLimit)
MathParser/src/com/aghajari/math/Functions.java:237
↓ 1 callers
Method
isExp
(String line)
MathParser/src/com/aghajari/Main.java:47
↓ 1 callers
Method
isMathSign
@return True if src exists on supported operations, False otherwise
MathParser/src/com/aghajari/math/MathParser.java:814
↓ 1 callers
Method
isSpecialParameter
@return True if the parameter at specified index won't be a double value (String otherwise)
MathParser/src/com/aghajari/math/MathFunction.java:53
↓ 1 callers
Method
limit
(MathParser parser, String variable, String exp)
MathParser/src/com/aghajari/math/Functions.java:197
↓ 1 callers
Method
limit
(MathParser parser, MathParser.MathVariable var, String exp, double approach)
MathParser/src/com/aghajari/math/custom/LimitFunction.java:14
↓ 1 callers
Method
limitFromAbove
(FunctionWrapper function, double approach)
MathParser/src/com/aghajari/math/custom/LimitFunction.java:43
↓ 1 callers
Method
limitFromBelow
(FunctionWrapper function, double approach)
MathParser/src/com/aghajari/math/custom/LimitFunction.java:23
↓ 1 callers
Method
nextWord
()
MathParser/src/com/aghajari/math/MathParser.java:1122
↓ 1 callers
Method
not
(double a)
MathParser/src/com/aghajari/math/Functions.java:294
↓ 1 callers
Method
or
(double a, double b)
MathParser/src/com/aghajari/math/Functions.java:298
↓ 1 callers
Method
orderAgain
{@link #calculate(String, String, boolean)} has simplified the expression as much as it's possible, It is time to set priorities of {@link #operations
MathParser/src/com/aghajari/math/MathParser.java:525
↓ 1 callers
Method
radical
(double a)
MathParser/src/com/aghajari/math/Functions.java:121
↓ 1 callers
Method
repeat
@see jdk.internal.joptsimple.internal.Strings#repeat(char, int)
MathParser/src/com/aghajari/math/Utils.java:75
↓ 1 callers
Method
similarity
Calculates the similarity (a number within 0 and 1) between two strings. https://stackoverflow.com/a/16018452/9187189
MathParser/src/com/aghajari/math/Utils.java:124
↓ 1 callers
Method
sum
(Double... a)
MathParser/src/com/aghajari/math/Functions.java:148
↓ 1 callers
Method
tryParseWord
so there is a string which isn't a number, this function will try to parse this word and check for variables "xy" => can be two variables (x or y) or
MathParser/src/com/aghajari/math/MathParser.java:1038
↓ 1 callers
Method
updateAnswer
(Object... answers)
MathParser/src/com/aghajari/math/MathParser.java:913
↓ 1 callers
Method
validateBalancedParentheses
@param src the expression to check @throws BalancedParenthesesException If parentheses aren't balanced
MathParser/src/com/aghajari/math/Utils.java:48
Method
BalancedParenthesesException
(String src, int index)
MathParser/src/com/aghajari/math/exception/BalancedParenthesesException.java:5
Method
ExpValue
(String expression, String original)
MathParser/src/com/aghajari/math/MathParser.java:981
Method
FunctionWrapper
(MathParser parser, String exp, MathParser.MathVariable var)
MathParser/src/com/aghajari/math/custom/FunctionWrapper.java:12
Method
IF
(MathParser parser, String condition, String a, String b)
MathParser/src/com/aghajari/math/Functions.java:326
Method
Integration
(FunctionWrapper intFunc)
MathParser/src/com/aghajari/math/custom/Integration.java:40
Method
LimitFunction
()
MathParser/src/com/aghajari/math/custom/LimitFunction.java:11
Method
MathFunctionInvalidArgumentsException
(String src, int index, MathFunction function, int count)
MathParser/src/com/aghajari/math/exception/MathFunctionInvalidArgumentsException.java:9
Method
MathFunctionNotFoundException
(String src, int index, String function)
MathParser/src/com/aghajari/math/exception/MathFunctionNotFoundException.java:9
next →
1–100 of 186, ranked by callers