用HTML编写数学公式 [英] Write mathematical formulas in HTML

查看:294
本文介绍了用HTML编写数学公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用一个基于微积分的物理学来制作一个专注于物理学的HTLM页面。它最终会显示问题,并以一种方式来推导出解决方案。我担心的一个问题是,数学符号通常有下标或超级脚本。例如,当他们做限制时,他们总是有一个下标来定义变量,以及它接近什么,甚至不能在这个页面这样做,或者不知道如何,但我怎样才能使用适当的数学符号(希腊语字符不难得到),包括正确的字符集以及下标和上标。

我要提出的一个问题是在带斜坡的台面上(汽车启动时)和一个循环(它必须通过),然后从头开始放一个塞子,以防止汽车掉落。通过应用物理学,我可以估计出击中顶部所需的最小高度,并在环路的最顶部脱落。那么我想增加2厘米的高度,并在另一端取下塞子。但是运用微积分来解决运动方程,以便估计汽车从桌面上掉下时会发生碰撞的位置。

我希望学生应用这种方法来推导出他自己的公式,然后我会验证公式。在公式达成一致之后,我会让他们填写所需的变量,并放置垫子来抓住车子。如果他们第一次发现它会是A,第二次尝试它会是C,而其他任何东西基本上都是F(因为他们还没有足够的学习能力,无法移动到下一个层次)。

b
$ b

我希望他们学会应用数学,并且做得足够好,以便在第一时间解决问题(而不是通过反复试验)。



这是一个很长的问题,但是id想知道如何在html中获得正确的数学符号格式?或者我最好使用其他工具,并将它显示为图形而不是文本?

解决方案

我只是想问这部分问题



我想制作一个专注于物理学的HTLM页面,以微积分为基础的物理学。

b
$ b

使用MathML

 < ;数学> 
< mrow>
< mi> A< mi>
< mo> =< / mo>
< mfen ced open =[close =]>
< mtable>
< mtr>
< mtd>< mi> x< / mi>< / mtd>
< mtd>< mi> y< / mi>< / mtd>
< / mtr>
< mtr>
< mtd>< mi> z< / mi>< / mtd>
< mtd>< mi> w< / mi>< / mtd>
< / mtr>
< / mtable>
< / mfenced>
< / mrow>
< / math>

演示

I wanted to make an HTLM page that focuses on physics, with a calculus based physics. It will eventually show problems, with a way to derive a solution. One concern I have is that math notation often has subscripts or super scripts. for example when doing limits they always have a subscript on them to define the variable, as well as what it is approaching, cant even do that in this page here, or dont know how, but how can I use proper math notation (the greek characters are not hard to get) including the proper character set as well as subscript and superscript.

An example problem I would draw out is to put a hot wheels system on a table with a slope (where the car starts) and a loop (it has to pass through) and then initally put a stopper at the end to prevent the car from falling. by applying physics, I can estimate the minimum height needed to hit the top of the loop and fall off, at the very top of the loop. then I would want to add 2 cm to the height, and take off the stopper at the other end. but apply calculus to solve the motion equation to approximate where the car would crash as it fell off the table.

I would want the student to apply this kind of method to derive the formula for themself, and I would then validate the formula. After the formula was agreed to match, I would then have them fill in the variables needed, and to place a mat to catch the car. if they caught it on 1st try it would be an A, on 2nd try it would be a C and anything else would basically be an F (as in they are not learning enough yet to move to the next level)

I want them to learn to apply the math and do it well enough to solve it right the first time (not by trial and error.

Well this was a long drawn out question, but id like to know how to get proper formatting of math notation in html? or am I better off using some other tool, and having it display as a graphic as opposed to text?

解决方案

I am just going with this part of the question

I wanted to make an HTLM page that focuses on physics, with a calculus based physics.

Use MathML

<math>
<mrow>
  <mi>A</mi>
  <mo>=</mo>
  <mfenced open="[" close="]">
    <mtable>
      <mtr>
         <mtd><mi>x</mi></mtd>
         <mtd><mi>y</mi></mtd>
      </mtr>
      <mtr>
         <mtd><mi>z</mi></mtd>
         <mtd><mi>w</mi></mtd>
      </mtr>
    </mtable>
  </mfenced>
</mrow>
</math>

Demo

这篇关于用HTML编写数学公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆