Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Lavig
Лабораторна робота No6 (Завдання 1)
Lavig
Oct 25th, 2024
166
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.43 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
#include <windows.h>
#include <format>
using
namespace
std
;
int
main
(
)
{
SetConsoleOutputCP
(
1251
)
;
double
y
{
}
, x
{
}
;
double
xn
{
0.25
}
, xk
{
6
}
, dx
{
0.55
}
, a
{
0.86
}
, b
{
2.8
}
;
const
auto
table_format
=
"x = {:4.2f}
\t
y = {:4.2f}
\n
"
;
for
(
x
=
xn
;
x
<=
xk
;
x
+
=
dx
)
{
y
=
(
pow
(
a
+
x,
1
/
3.0
)
+
2
*
tan
(
x
)
)
/
(
x
-
4.87
*
b
)
;
cout
<<
format
(
table_format, x, y
)
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Feels footsteps through floor
43 min ago | 1.27 KB
Untitled
1 hour ago | 12.21 KB
Reads desk where letter was written
2 hours ago | 1.38 KB
Untitled
3 hours ago | 13.57 KB
Untitled
5 hours ago | 16.69 KB
Reads city's construction orders in thre...
6 hours ago | 2.17 KB
Feels weather through floor
6 hours ago | 0.28 KB
Untitled
7 hours ago | 16.33 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル