欢迎访问皮皮网官网
皮皮网

【求片源码】【vba源码网站】【cocosjs源码分析】object公式源码_object代码

时间:2024-12-23 22:56:35 分类:焦点 来源:打赏功能源码

1.相对论长度收缩公式
2.delphi 如何用代码编写这个公式
3.vb如何编写计算公式

object公式源码_object代码

相对论长度收缩公式

       1. The公式求片源码 relativistic length contraction formula is expressed as L' = L * √(1 - v^2/c^2), where:

        - L' is the length of the object as measured by an observer,

        - L is the object's proper length (its length in its own rest frame),

        - v is the object's velocity relative to the observer, and

        - c is the speed of light in a vacuum.

       2. According to this formula, as an object's velocity approaches the speed of light, specifically when v approaches c, the value of √(1 - v^2/c^2) approaches zero.

       3. Consequently, the observed length L' approaches zero, indicating that the length of the object as measured by an observer contracts to a negligible value near the speed of light. This phenomenon is known as length contraction.

delphi 如何用代码编写这个公式

       procedure TForm1.btn1Click(Sender: TObject);

       var

        sz1,sz2,sz3,sz4,sz5,sz6,sz7, sz8 : Double;

       begin

        if (edt1.Text = '') or

        (edt2.Text = '') or

        (edt3.Text = '') or

        (edt4.Text = '') or

        (edt5.Text = '') or

        (edt6.Text = '') then

        begin

        ShowMessage('不能为空');

        Exit;

        end;

        try

        sz1 := StrToFloat(edt1.Text);

        sz2 := StrToFloat(edt2.Text);

        sz3 := StrToFloat(edt3.Text);

        sz4 := StrToFloat(edt4.Text);

        sz5 := StrToFloat(edt5.Text);

        sz6 := StrToFloat(edt6.Text);

        except

        ShowMessage('不是有效的数字');

        exit;

        end;

        if sz4 = 0 then

        begin

        ShowMessage('被除数不能为0');

        exit;

        end;

        sz7 := sz1 + sz2 - (sz3 * sz4) / sz5 + Sqr(sz6);

        edt7.Text := FloatToStr(sz7);

       end;

vb如何编写计算公式

       Private Sub Form_Click()

       Dim vbs As Object

       Set vbs = CreateObject("ScriptControl")

       vbs.Language = "vbs"

       vbs.ExecuteStatement "a1=3:a2=5:d=7:b=6:c=3"

       MsgBox vbs.Eval("a1+a2*d-b/c")

       Set vbs = Nothing

       End Sub

copyright © 2016 powered by 皮皮网   sitemap