Question: cosine error in my code

 

Hello,

I writing a code for some mechanical system and need some help.

My force is given by  F*cos(w*t) in my system.

Sometimes my code works and sometimes I have this kind of error: 

Error, (in assuming) when calling 'cos'. Received: 'expecting 1 argument, got 2'

I am using one argument for cosine and the following operations:

1)  int   -----> to integrate my system

2)  evalf(F*cos(w*t0))  >  A         -----> to compare the initial force with the value ''A ''

3) evalf(abs(F*cos(w*t0)))  < A  -------> to compare it's absolute value with the value '' A ''

 
2) and 3) :   F, w, t0 and A are given

 

Thanks !

 

 

 

 

 

 

Please Wait...