version 1.118, 2016/02/20 00:12:45
|
version 1.119, 2016/04/09 14:48:13
|
Line 548 sub postprocess_algebra {
|
Line 548 sub postprocess_algebra {
|
# $string =~s/\\fun/ /g; |
# $string =~s/\\fun/ /g; |
|
|
# sqrt(3,4) means the 4 root of 3 |
# sqrt(3,4) means the 4 root of 3 |
$string =~s/\\sqrt{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs; |
$string =~s/\\sqrt\{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs; |
|
|
# log(3,4) means the log base 4 of 3 |
# log(3,4) means the log base 4 of 3 |
$string =~s/\\log\\left\((.+?),(.+?)\\right\)/\\log_{$2}\\left($1\\right)/gs; |
$string =~s/\\log\\left\((.+?),(.+?)\\right\)/\\log_{$2}\\left($1\\right)/gs; |