Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
emonyi
/
IAX0583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf329a99
authored
Dec 01, 2018
by
emonyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Homework1Ccode.c
parent
6e82c5c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
Homework1/Homework1Ccode.c
Homework1/Homework1Ccode.c
View file @
cf329a99
...
...
@@ -16,7 +16,6 @@
int
main
(
void
)
{
//intialization of variables
double
t
;
float
A
=
0
;
int
i
=
0
;
int
N
=
0
;
...
...
@@ -54,10 +53,10 @@ int main(void)
{
//mathematical equation
x
+=
i
*
(
H
);
y
=
(
pow
(
sin
(
t
+
5
),
2
)
+
cos
(
t
))
/
(
x
+
exp
(
t
+
3
));
y
=
(
pow
(
sin
(
x
+
5
),
2
)
+
cos
(
x
))
/
(
x
+
exp
(
x
+
3
));
//output print statement
printf
(
" %d
\t
%0.2f
\t\t
%0.
4
f
\n
"
,
N
+
1
,
x
,
y
);
printf
(
" %d
\t
%0.2f
\t\t
%0.
25
f
\n
"
,
N
+
1
,
x
,
y
);
i
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment