Howdy guys, I have a specialist maths project due tommorow, and I need some help.

I have to add these two functions:

C(t) = 10 cos((PI*t)/6) +9

and

F(t) = 5 sin ((PI*t)/6)+2.2

So that they equal P(t). Could someone please explain how to do this?

This is a discussion on *Trigonomic Preliminaries* within the **A Brief History of Cprogramming.com** forums, part of the Community Boards category; Howdy guys, I have a specialist maths project due tommorow, and I need some help.
I have to add these ...

- 03-02-2004 #1
## Trigonomic Preliminaries

Howdy guys, I have a specialist maths project due tommorow, and I need some help.

I have to add these two functions:

C(t) = 10 cos((PI*t)/6) +9

and

F(t) = 5 sin ((PI*t)/6)+2.2

So that they equal P(t). Could someone please explain how to do this?

- 03-02-2004 #2
## Re: Trigonomic Preliminaries

P(t) = C(t) + F(t)

P(t) = 10 cos((PI*t)/6) +9 + 5 sin ((PI*t)/6)+2.2

That's my first reaction to what you stated, but I have a feeling it's more complicated than that, so please explain further.FAQ

"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

- 03-03-2004 #3
Ops, never mind, it was easier than I thought. Thanks anyway though JoshDick!

FYI, you were right, it just simplifies to

10 cos((PI*t)/6) + 5 sin ((PI*t)/6)+*11.2*

Which I thought would be much more complicated, but he said thats all we need to do.

- 03-03-2004 #4
You're welcome.

FAQ

"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

- Exactly how to get started with C++ (or C) today
- C Tutorial
- C++ Tutorial
- 5 ways you can learn to program faster
- The 5 Most Common Problems New Programmers Face
- How to set up a compiler
- 8 Common programming Mistakes
- What is C++11?
- Creating a game, from start to finish

- How to create a shared library on Linux with GCC - December 30, 2011
- Enum classes and nullptr in C++11 - November 27, 2011
- Learn about The Hash Table - November 20, 2011
- Rvalue References and Move Semantics in C++11 - November 13, 2011
- C and C++ for Java Programmers - November 5, 2011
- A Gentle Introduction to C++ IO Streams - October 10, 2011