You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
347 B
20 lines
347 B
//
|
|
// cht.hpp
|
|
// sanjiaohanshu
|
|
//
|
|
// Created by chenhoutao on 2020/8/6.
|
|
// Copyright © 2020年 com.cht. All rights reserved.
|
|
//
|
|
|
|
#ifndef cht_hpp
|
|
#define cht_hpp
|
|
|
|
#include <stdio.h>
|
|
#include<math.h>
|
|
#endif /* cht_hpp */
|
|
double tri_fun(double x,char a){
|
|
if(a=='s') return sin(x);
|
|
else if(a=='c')return cos(x);
|
|
else return tan(x);
|
|
}
|