Join Eduardo Corpeño for an in-depth discussion in this video Trigonometric functions example, part of C Standard Library.
- [Instructor] Trigonometric functions…are very straightforward.…So in this example I will concentrate on illustrating…the angle system they use…so that you know if they use radians or degrees.…So let's do that with a printf…and I'll type sine of 90 degrees…equals this value.…And I'll call sine of 90.0.…So the sine of 90 degrees is one.…
So if we get something other than one,…well it must be radians.…So let's take a look.…And as you can see we get 0.89,…so it's not one.…Let's make some changes then.…And let me change what I am sending to the sine.…Let's say…pi divided by…2.0.…So pi divided by two is 90 degrees, expressed in radians.…
So let me define that constant…to this very nice value of pi.…Let's see it working now.…And now we get that sine of 90 degrees is one.…So there you have it, trigonometric functions…in the C standard library use the angle in radians.…
- Working with header files
- C constants and types
- Unformatted and formatted input/output
- Accessing files with C functions
- Generating random numbers
- Converting strings
- Sorting and searching for data
- Manipulating strings
- Using mathematical functions
Skill Level Intermediate
1. The C Standard Library
2. Input and Output Library: stdio.h
3. General Purpose: stdlib.h
4. String Functions: string.h
5. Mathematical Functions: math.h
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.