-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson3.php
More file actions
87 lines (87 loc) · 1.55 KB
/
lesson3.php
File metadata and controls
87 lines (87 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<h3>Вариант 7</h3>
<p>
<math>
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<msup>
<mi>a</mi>
<mn>3</mn>
</msup>
<mo>+</mo>
<mroot>
<mi>b</mi>
<mn>3</mn>
</mroot>
<mo>-</mo>
<mroot>
<mi>c</mi>
<mn>5</mn>
</mroot>
</mrow>
<mrow>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</mrow>
</mfrac>
</mrow>
</math>
<br/>
<math>
<mrow>
<mi>y</mi>
<mo>=</mo>
<msup>
<mi>sin</mi>
<mn>2</mn>
</msup>
<msup>
<mi>a</mi>
<mn>3</mn>
</msup>
<mo>+</mo>
<msup>
<mi>cos</mi>
<mn>3</mn>
</msup>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
</mrow>
</math>
</p>
<form action="<?= $_SERVER['REQUEST_URI']?>" method="POST">
<label>a = </label>
<input name='a' type='number' value='0'/>
<br/>
<label>b = </label>
<input name='b' type='number' value='0'/>
<br/>
<label>c = </label>
<input name='c' type='number' value='0'/>
<br/>
<input type='submit' value='⇓⇓⇓⇓⇓'/>
<br/>
<label>x = </label>
<input name='x' type='number' disabled value="<?
if (isset($_POST['a']) & isset($_POST['b']) & isset($_POST['c']))
{
echo ((pow($_POST['a'],3)+pow($_POST['b'],(1/3))-pow($_POST['c'],(1/5)))/($_POST['a']*$_POST['b']*$_POST['c']));
}
else {echo (0);}
?>"/>
<br/>
<label>y = </label>
<input name='y' type='number' disabled value="<?
if (isset($_POST['a']) & isset($_POST['b']))
{
echo (pow(sin(pow($_POST['a'],3)),2)+(pow(sin(pow($_POST['b'],2)),3)));
}
else {echo (0);}
?>"/>
<br/>
</form>