Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs251_group17
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
RAJAT KAPOOR
cs251_group17
Commits
a77b2697
Commit
a77b2697
authored
Aug 23, 2016
by
VANVI FENIL BHARATKUMAR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lab01inlab
parent
3745d709
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
lab01_group17_inlab/input_inlab_task_A1.txt
lab01_group17_inlab/input_inlab_task_A1.txt
+1
-0
lab01_group17_inlab/readme.txt
lab01_group17_inlab/readme.txt
+15
-0
lab01_group17_inlab/refraction.m
lab01_group17_inlab/refraction.m
+10
-0
No files found.
lab01_group17_inlab/input_inlab_task_A1.txt
0 → 100644
View file @
a77b2697
1.5 2
\ No newline at end of file
lab01_group17_inlab/readme.txt
0 → 100644
View file @
a77b2697
I pledge on my honour that i have not given or received any unauthorised assistance on this assignment or any previous task.
we learnt the basic functions in octave,healthy use of google and use of fzero,fsolve and terminal use too.
Fenil: 100%
Rajat:100%
Mohit:100%
Mohit patil(150050017),fenil vanvi(150050003),rajat kapoor(150050037)
lab01_group17_inlab/refraction.m
0 → 100644
View file @
a77b2697
S=load ("input_inlab_task_A1.txt"); %takes input from the text file
x=S(1); %assignment of x is Nx
y=S(2); %assignment of y is Ny
f=@(a) x*cos(a)+y*sin(a)+4*(sin(a/3)*sin(a/3))-3; %defining a function to get "a" which is the angle of incidence
fsolve(f,0.0001) %solves the function f and gives "a"
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