exponentialSymbols.d.ts 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. declare function factorial(a: number): number;
  2. declare function power(a: number, b: number): number;
  3. declare function sqrt(a: number): number;
  4. declare const exponentialSymbols: {
  5. symbols: {
  6. '!': {
  7. postfix: {
  8. symbol: '!';
  9. f: factorial;
  10. notation: 'postfix';
  11. precedence: 6;
  12. rightToLeft: 0;
  13. argCount: 1;
  14. };
  15. symbol: '!';
  16. regSymbol: '!';
  17. };
  18. '^': {
  19. infix: {
  20. symbol: '^';
  21. f: power;
  22. notation: 'infix';
  23. precedence: 5;
  24. rightToLeft: 1;
  25. argCount: 2;
  26. };
  27. symbol: '^';
  28. regSymbol: '\\^';
  29. };
  30. sqrt: {
  31. func: {
  32. symbol: 'sqrt';
  33. f: sqrt;
  34. notation: 'func';
  35. precedence: 0;
  36. rightToLeft: 0;
  37. argCount: 1;
  38. };
  39. symbol: 'sqrt';
  40. regSymbol: 'sqrt\\b';
  41. };
  42. };
  43. };
  44. export default exponentialSymbols;