mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
added various keywords to calculator
Added functions I commonly use on e.g. google calculator but were missed by parser. Specifically I added: e (constant like pi) tan, arcsin, and arctan log and ln
This commit is contained in:
@@ -10,7 +10,8 @@ namespace Wox.Plugin.Caculator
|
|||||||
{
|
{
|
||||||
private static Regex regValidExpressChar = new Regex(
|
private static Regex regValidExpressChar = new Regex(
|
||||||
@"^(" +
|
@"^(" +
|
||||||
@"sin|cos|ceil|floor|exp|pi|max|min|det|arccos|abs|" +
|
@"ceil|floor|exp|pi|e|max|min|det|abs|log|ln" +
|
||||||
|
@"sin|cos|tan|arcsin|arccos|arctan|" +
|
||||||
@"eigval|eigvec|eig|sum|polar|plot|round|sort|real|zeta|" +
|
@"eigval|eigvec|eig|sum|polar|plot|round|sort|real|zeta|" +
|
||||||
@"bin2dec|hex2dec|oct2dec|" +
|
@"bin2dec|hex2dec|oct2dec|" +
|
||||||
@"==|~=|&&|\|\||" +
|
@"==|~=|&&|\|\||" +
|
||||||
|
|||||||
Reference in New Issue
Block a user