embeer/math 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

embeer/math

最新稳定版本:v1.0.1

Composer 安装命令:

composer require embeer/math

包简介

tools for math exercising

README 文档

README

A few classes (for now actually only one) serving maths exercising.

v. 1.0.0

released on 20th March 2020

Usage

Class Expressions

Execute the below code to obtain an array of expressions coded for HTML ready to display in browser.

$expressions = (new Expressions($parameters))->getExpressions();

Example result

1<sup>4</sup>&frasl;<sub>6</sub> + (<sup>4</sup>&frasl;<sub>8</sub> + 2.1 + 6 + <sup>5</sup>&frasl;<sub>10</sub>) * <sup>3</sup>&frasl;<sub>4</sub> =
<sup>5</sup>&frasl;<sub>10</sub> * <sup>5</sup>&frasl;<sub>5</sub> * (2<sup>1</sup>&frasl;<sub>3</sub> + <sup>1</sup>&frasl;<sub>6</sub> - 10) - 10 =
5 - 6 * (<sup>4</sup>&frasl;<sub>8</sub> - 6) + 4 =
<sup>6</sup>&frasl;<sub>4</sub> - (6 : (-<sup>6</sup>&frasl;<sub>9</sub>) - 2) =

giving the following display

146 + (48 + 2.1 + 6 + 510) * 34 =

510 * 55 * (213 + 16 - 10) - 10 =

5 - 6 * (48 - 6) + 4 =

64 - (6 : (-69) - 2) =

Class internal variables are self documented. The defaults can be changed passing new values to the class constructor as an array of pairs "variableName" => variableValue.

Note: : (colon) stands for division operator symbol.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-21