Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs251_group10
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SNEHA SUNIL BHAKARE
cs251_group10
Commits
8604aa8f
Commit
8604aa8f
authored
Aug 23, 2016
by
KRATI TIWARI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lab01_group10_final
parents
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
lab01_group10_final/readme.txt
lab01_group10_final/readme.txt
+2
-0
lab01_group10_final/refraction.m
lab01_group10_final/refraction.m
+11
-0
No files found.
lab01_group10_final/readme.txt
0 → 100644
View file @
8604aa8f
We have learned about functions like save, fwrite, fprint, fzero. We referred to the site gnu octave for the syntax of the various functions which we used in the program.
it was a nice experience.
lab01_group10_final/refraction.m
0 → 100644
View file @
8604aa8f
function y=f(x)
A=load("input_inlab_task_A1.txt");
nx=A(1);
ny=A(2);
y=sin(x)-nx*cos(x)*sin(x/3)-ny*sin(x)*sin(x/3);
endfunction
result=fzero("f",0.00001);
filename = "output_inlab_task_01.txt";
fid = fopen (filename, "w");
fprintf(fid,"%.12f\n",result);
fclose (fid);
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