TRIGSIMP.LOG 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. REDUCE 3.6, 15-Jul-95, patched to 6 Mar 96 ...
  2. % test file for trigsimp package
  3. %
  4. %---------------------trigsimp---------------------------
  5. trigsimp(tan(x+y),keepalltrig);
  6. - (tan(x) + tan(y))
  7. ----------------------
  8. tan(x)*tan(y) - 1
  9. trigsimp(ws,keepalltrig,combine);
  10. tan(x + y)
  11. trigsimp(sin(5x-9y));
  12. 4 9 4 7
  13. - 4096*cos(x)*sin(x) *sin(y) + 9216*cos(x)*sin(x) *sin(y)
  14. 4 5 4 3
  15. - 6912*cos(x)*sin(x) *sin(y) + 1920*cos(x)*sin(x) *sin(y)
  16. 4 2 9
  17. - 144*cos(x)*sin(x) *sin(y) + 3072*cos(x)*sin(x) *sin(y)
  18. 2 7 2 5
  19. - 6912*cos(x)*sin(x) *sin(y) + 5184*cos(x)*sin(x) *sin(y)
  20. 2 3 2 9
  21. - 1440*cos(x)*sin(x) *sin(y) + 108*cos(x)*sin(x) *sin(y) - 256*cos(x)*sin(y)
  22. 7 5 3
  23. + 576*cos(x)*sin(y) - 432*cos(x)*sin(y) + 120*cos(x)*sin(y)
  24. 5 8 5 6
  25. - 9*cos(x)*sin(y) + 4096*cos(y)*sin(x) *sin(y) - 7168*cos(y)*sin(x) *sin(y)
  26. 5 4 5 2 5
  27. + 3840*cos(y)*sin(x) *sin(y) - 640*cos(y)*sin(x) *sin(y) + 16*cos(y)*sin(x)
  28. 3 8 3 6
  29. - 5120*cos(y)*sin(x) *sin(y) + 8960*cos(y)*sin(x) *sin(y)
  30. 3 4 3 2 3
  31. - 4800*cos(y)*sin(x) *sin(y) + 800*cos(y)*sin(x) *sin(y) - 20*cos(y)*sin(x)
  32. 8 6
  33. + 1280*cos(y)*sin(x)*sin(y) - 2240*cos(y)*sin(x)*sin(y)
  34. 4 2
  35. + 1200*cos(y)*sin(x)*sin(y) - 200*cos(y)*sin(x)*sin(y) + 5*cos(y)*sin(x)
  36. trigsimp(ws,combine);
  37. sin(5*x - 9*y)
  38. trigsimp(cos(10x),cos);
  39. 10 8 6 4 2
  40. 512*cos(x) - 1280*cos(x) + 1120*cos(x) - 400*cos(x) + 50*cos(x) - 1
  41. trigsimp(cos(10x),sin);
  42. 10 8 6 4 2
  43. - 512*sin(x) + 1280*sin(x) - 1120*sin(x) + 400*sin(x) - 50*sin(x) + 1
  44. trigsimp((sin(x-a)+sin(x+a))/(cos(x-a) + cos(x+a)));
  45. sin(x)
  46. --------
  47. cos(x)
  48. trigsimp(cos(6x+4y),sin);
  49. 5 3 5
  50. 256*cos(x)*cos(y)*sin(x) *sin(y) - 128*cos(x)*cos(y)*sin(x) *sin(y)
  51. 3 3 3
  52. - 256*cos(x)*cos(y)*sin(x) *sin(y) + 128*cos(x)*cos(y)*sin(x) *sin(y)
  53. 3
  54. + 48*cos(x)*cos(y)*sin(x)*sin(y) - 24*cos(x)*cos(y)*sin(x)*sin(y)
  55. 6 4 6 2 6 4 4
  56. - 256*sin(x) *sin(y) + 256*sin(x) *sin(y) - 32*sin(x) + 384*sin(x) *sin(y)
  57. 4 2 4 2 4 2 2
  58. - 384*sin(x) *sin(y) + 48*sin(x) - 144*sin(x) *sin(y) + 144*sin(x) *sin(y)
  59. 2 4 2
  60. - 18*sin(x) + 8*sin(y) - 8*sin(y) + 1
  61. trigsimp(ws,expon);
  62. 12*i*x + 8*i*y
  63. e + 1
  64. ---------------------
  65. 6*i*x + 4*i*y
  66. 2*e
  67. trigsimp(ws,hyp);
  68. 5 3
  69. 256*cosh(i*x)*cosh(i*y)*sinh(i*x) *sinh(i*y)
  70. 5
  71. + 128*cosh(i*x)*cosh(i*y)*sinh(i*x) *sinh(i*y)
  72. 3 3
  73. + 256*cosh(i*x)*cosh(i*y)*sinh(i*x) *sinh(i*y)
  74. 3
  75. + 128*cosh(i*x)*cosh(i*y)*sinh(i*x) *sinh(i*y)
  76. 3
  77. + 48*cosh(i*x)*cosh(i*y)*sinh(i*x)*sinh(i*y)
  78. 6 4
  79. + 24*cosh(i*x)*cosh(i*y)*sinh(i*x)*sinh(i*y) + 256*sinh(i*x) *sinh(i*y)
  80. 6 2 6 4 4
  81. + 256*sinh(i*x) *sinh(i*y) + 32*sinh(i*x) + 384*sinh(i*x) *sinh(i*y)
  82. 4 2 4 2 4
  83. + 384*sinh(i*x) *sinh(i*y) + 48*sinh(i*x) + 144*sinh(i*x) *sinh(i*y)
  84. 2 2 2 4 2
  85. + 144*sinh(i*x) *sinh(i*y) + 18*sinh(i*x) + 8*sinh(i*y) + 8*sinh(i*y) + 1
  86. trigsimp(ws,combine);
  87. cosh(6*i*x + 4*i*y)
  88. trigsimp(ws,trig,combine);
  89. cos(6*x + 4*y)
  90. trigsimp(sqrt(1-cos(2x)));
  91. sqrt(2)*abs(sin(x))
  92. trigsimp(sin(x)**20*cos(x)**20,sin);
  93. 20 20 18 16 14 12
  94. sin(x) *(sin(x) - 10*sin(x) + 45*sin(x) - 120*sin(x) + 210*sin(x)
  95. 10 8 6 4 2
  96. - 252*sin(x) + 210*sin(x) - 120*sin(x) + 45*sin(x) - 10*sin(x)
  97. + 1)
  98. trigsimp(sin(x)**20*cos(x)**20,cos);
  99. 20 20 18 16 14 12
  100. cos(x) *(cos(x) - 10*cos(x) + 45*cos(x) - 120*cos(x) + 210*cos(x)
  101. 10 8 6 4 2
  102. - 252*cos(x) + 210*cos(x) - 120*cos(x) + 45*cos(x) - 10*cos(x)
  103. + 1)
  104. trigsimp(sin(x)**20*cos(x)**20,compact);
  105. 20 20
  106. cos(x) *sin(x)
  107. trigsimp(sin(x)**10,combine);
  108. - cos(10*x) + 10*cos(8*x) - 45*cos(6*x) + 120*cos(4*x) - 210*cos(2*x) + 126
  109. ------------------------------------------------------------------------------
  110. 512
  111. trigsimp(ws,hyp);
  112. 10
  113. - sinh(i*x)
  114. trigsimp(ws,expon);
  115. 20*i*x 18*i*x 16*i*x 14*i*x 12*i*x 10*i*x
  116. ( - e + 10*e - 45*e + 120*e - 210*e + 252*e
  117. 8*i*x 6*i*x 4*i*x 2*i*x 10*i*x
  118. - 210*e + 120*e - 45*e + 10*e - 1)/(1024*e )
  119. trigsimp(ws,trig);
  120. 10
  121. sin(x)
  122. int(sin(x+y)*cos(x-y)*tan(x),x);
  123. int(cos(x - y)*sin(x + y)*tan(x),x)
  124. int(trigsimp(sin(x+y)*cos(x-y)*tan(x)),x);
  125. 2 2
  126. cos(x) *x - cos(x)*sin(x) - 2*cos(y)*log(cos(x))*sin(y) + sin(x) *x
  127. ---------------------------------------------------------------------
  128. 2
  129. % int(sin(x+y)*cos(x-y)/tan(x),x) hangs
  130. int(trigsimp(sin(x+y)*cos(x-y)/tan(x)),x);
  131. x 2
  132. (cos(x)*sin(x) - 2*cos(y)*log(tan(---) + 1)*sin(y)
  133. 2
  134. x
  135. + 2*cos(y)*log(tan(---))*sin(y) + x)/2
  136. 2
  137. trigsimp(2*tan(x)*(sec(x)**2 - tan(x)**2 - 1));
  138. 0
  139. df(sqrt(1+cos(x)),x,4);
  140. 4 2 2 2
  141. (sqrt(cos(x) + 1)*( - 4*cos(x) - 20*cos(x) *sin(x) + 12*cos(x)
  142. 2 4 2
  143. - 4*cos(x)*sin(x) + 8*cos(x) - 15*sin(x) + 16*sin(x) ))/(16
  144. 4 3 2
  145. *(cos(x) + 4*cos(x) + 6*cos(x) + 4*cos(x) + 1))
  146. trigsimp(ws);
  147. sqrt(cos(x) + 1)
  148. ------------------
  149. 16
  150. df(2cos((x+y)/2)*cos((x-y)/2),x);
  151. x - y x + y x + y x - y
  152. - (cos(-------)*sin(-------) + cos(-------)*sin(-------))
  153. 2 2 2 2
  154. trigsimp(ws,combine);
  155. - sin(x)
  156. df(int(1/cos(x),x),x);
  157. x 2
  158. - (tan(---) + 1)
  159. 2
  160. --------------------
  161. x 2
  162. tan(---) - 1
  163. 2
  164. trigsimp(ws,combine);
  165. 1
  166. --------
  167. cos(x)
  168. trigsimp(cos(100x));
  169. 100
  170. 633825300114114700748351602688*sin(x)
  171. 98
  172. - 15845632502852867518708790067200*sin(x)
  173. 96
  174. + 192128294097091018664344079564800*sin(x)
  175. 94
  176. - 1505335087771022414277335056384000*sin(x)
  177. 92
  178. + 8567473526884295537508113973248000*sin(x)
  179. 90
  180. - 37750993877408064336851542202122240*sin(x)
  181. 88
  182. + 134036108580690866727917044786790400*sin(x)
  183. 86
  184. - 394078512785625681900511864396185600*sin(x)
  185. 84
  186. + 978503372439851812055958467641344000*sin(x)
  187. 82
  188. - 2082455895192505138478065456775168000*sin(x)
  189. 80
  190. + 3842131126630171980492030767750184960*sin(x)
  191. 78
  192. - 6200783636440931286187342812099379200*sin(x)
  193. 76
  194. + 8816739233064449172547628060953804800*sin(x)
  195. 74
  196. - 11108623702136905456127648087408640000*sin(x)
  197. 72
  198. + 12460295938318846194767764735918080000*sin(x)
  199. 70
  200. - 12489614281703125832873100652943769600*sin(x)
  201. 68
  202. + 11221137831217652115471926367879168000*sin(x)
  203. 66
  204. - 9058026923994972189597820080095232000*sin(x)
  205. 64
  206. + 6581798018959761296303294062264320000*sin(x)
  207. 62
  208. - 4310885252184171141438414824407040000*sin(x)
  209. 60
  210. + 2547463753712583633893763260298035200*sin(x)
  211. 58
  212. - 1358954443662228159129584379363328000*sin(x)
  213. 56
  214. + 654531379770880870350000868032512000*sin(x)
  215. 54
  216. - 284578860769948204500000377405440000*sin(x)
  217. 52
  218. + 111631674825053695350740279623680000*sin(x)
  219. 50
  220. - 39472960218138986676021762874933248*sin(x)
  221. 48
  222. + 12566106098549963273941439584665600*sin(x)
  223. 46
  224. - 3595780740528756614156758967910400*sin(x)
  225. 44
  226. + 923024074019658505866132324352000*sin(x)
  227. 42
  228. - 212040013118649088525828358144000*sin(x)
  229. 40
  230. + 43468202689323063147794813419520*sin(x)
  231. 38
  232. - 7925478751208973645460484915200*sin(x)
  233. 36
  234. + 1280241627320751027747867852800*sin(x)
  235. 34
  236. - 182395347175955031090266112000*sin(x)
  237. 32
  238. + 22799418396994378886283264000*sin(x)
  239. 30 28
  240. - 2485387148331694929142087680*sin(x) + 234623135747458180159897600*sin(x)
  241. 26 24
  242. - 19023497493037149742694400*sin(x) + 1312104559685287280640000*sin(x)
  243. 22 20
  244. - 76111992112891822080000*sin(x) + 3662889620432918937600*sin(x)
  245. 18 16
  246. - 143850563845029888000*sin(x) + 4517474603507712000*sin(x)
  247. 14 12
  248. - 110586893598720000*sin(x) + 2042087523840000*sin(x)
  249. 10 8 6
  250. - 27227833651200*sin(x) + 246628928000*sin(x) - 1386112000*sin(x)
  251. 4 2
  252. + 4165000*sin(x) - 5000*sin(x) + 1
  253. trigsimp(ws,combine);
  254. cos(100*x)
  255. trigsimp(sinh(3a+4b-5c)*cosh(3a-5b-6c));
  256. 5 10
  257. 16384*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  258. 5 8
  259. + 36864*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  260. 5 6
  261. + 28672*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  262. 5 4
  263. + 8960*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  264. 5 2
  265. + 960*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  266. 5
  267. + 16*cosh(a)*cosh(b)*cosh(c)*sinh(a)
  268. 3 10
  269. + 16384*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  270. 3 8
  271. + 36864*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  272. 3 6
  273. + 28672*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  274. 3 4
  275. + 8960*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  276. 3 2
  277. + 960*cosh(a)*cosh(b)*cosh(c)*sinh(a) *sinh(c)
  278. 3
  279. + 16*cosh(a)*cosh(b)*cosh(c)*sinh(a)
  280. 10
  281. + 3072*cosh(a)*cosh(b)*cosh(c)*sinh(a)*sinh(c)
  282. 8
  283. + 6912*cosh(a)*cosh(b)*cosh(c)*sinh(a)*sinh(c)
  284. 6
  285. + 5376*cosh(a)*cosh(b)*cosh(c)*sinh(a)*sinh(c)
  286. 4
  287. + 1680*cosh(a)*cosh(b)*cosh(c)*sinh(a)*sinh(c)
  288. 2
  289. + 180*cosh(a)*cosh(b)*cosh(c)*sinh(a)*sinh(c)
  290. 5 11
  291. + 3*cosh(a)*cosh(b)*cosh(c)*sinh(a) + 16384*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  292. 5 9
  293. + 45056*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  294. 5 7
  295. + 45056*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  296. 5 5
  297. + 19712*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  298. 5 3 5
  299. + 3520*cosh(a)*sinh(a) *sinh(b)*sinh(c) + 176*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  300. 3 11
  301. + 16384*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  302. 3 9
  303. + 45056*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  304. 3 7
  305. + 45056*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  306. 3 5
  307. + 19712*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  308. 3 3 3
  309. + 3520*cosh(a)*sinh(a) *sinh(b)*sinh(c) + 176*cosh(a)*sinh(a) *sinh(b)*sinh(c)
  310. 11
  311. + 3072*cosh(a)*sinh(a)*sinh(b)*sinh(c)
  312. 9 7
  313. + 8448*cosh(a)*sinh(a)*sinh(b)*sinh(c) + 8448*cosh(a)*sinh(a)*sinh(b)*sinh(c)
  314. 5 3
  315. + 3696*cosh(a)*sinh(a)*sinh(b)*sinh(c) + 660*cosh(a)*sinh(a)*sinh(b)*sinh(c)
  316. 6 11
  317. + 33*cosh(a)*sinh(a)*sinh(b)*sinh(c) - 16384*cosh(b)*sinh(a) *sinh(c)
  318. 6 9 6 7
  319. - 45056*cosh(b)*sinh(a) *sinh(c) - 45056*cosh(b)*sinh(a) *sinh(c)
  320. 6 5 6 3
  321. - 19712*cosh(b)*sinh(a) *sinh(c) - 3520*cosh(b)*sinh(a) *sinh(c)
  322. 6 4 11
  323. - 176*cosh(b)*sinh(a) *sinh(c) - 24576*cosh(b)*sinh(a) *sinh(c)
  324. 4 9 4 7
  325. - 67584*cosh(b)*sinh(a) *sinh(c) - 67584*cosh(b)*sinh(a) *sinh(c)
  326. 4 5 4 3
  327. - 29568*cosh(b)*sinh(a) *sinh(c) - 5280*cosh(b)*sinh(a) *sinh(c)
  328. 4 2 11
  329. - 264*cosh(b)*sinh(a) *sinh(c) - 9216*cosh(b)*sinh(a) *sinh(c)
  330. 2 9 2 7
  331. - 25344*cosh(b)*sinh(a) *sinh(c) - 25344*cosh(b)*sinh(a) *sinh(c)
  332. 2 5 2 3
  333. - 11088*cosh(b)*sinh(a) *sinh(c) - 1980*cosh(b)*sinh(a) *sinh(c)
  334. 2 8
  335. - 99*cosh(b)*sinh(a) *sinh(c) + 128*cosh(b)*sinh(b) *sinh(c)
  336. 6 4
  337. + 224*cosh(b)*sinh(b) *sinh(c) + 120*cosh(b)*sinh(b) *sinh(c)
  338. 2 11 9
  339. + 20*cosh(b)*sinh(b) *sinh(c) - 512*cosh(b)*sinh(c) - 1408*cosh(b)*sinh(c)
  340. 7 5 3
  341. - 1408*cosh(b)*sinh(c) - 616*cosh(b)*sinh(c) - 110*cosh(b)*sinh(c)
  342. 6 10
  343. - 5*cosh(b)*sinh(c) - 16384*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  344. 6 8
  345. - 36864*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  346. 6 6
  347. - 28672*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  348. 6 4
  349. - 8960*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  350. 6 2 6
  351. - 960*cosh(c)*sinh(a) *sinh(b)*sinh(c) - 16*cosh(c)*sinh(a) *sinh(b)
  352. 4 10
  353. - 24576*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  354. 4 8
  355. - 55296*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  356. 4 6
  357. - 43008*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  358. 4 4
  359. - 13440*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  360. 4 2 4
  361. - 1440*cosh(c)*sinh(a) *sinh(b)*sinh(c) - 24*cosh(c)*sinh(a) *sinh(b)
  362. 2 10
  363. - 9216*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  364. 2 8
  365. - 20736*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  366. 2 6
  367. - 16128*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  368. 2 4
  369. - 5040*cosh(c)*sinh(a) *sinh(b)*sinh(c)
  370. 2 2 2
  371. - 540*cosh(c)*sinh(a) *sinh(b)*sinh(c) - 9*cosh(c)*sinh(a) *sinh(b)
  372. 9 7 5
  373. + 128*cosh(c)*sinh(b) + 288*cosh(c)*sinh(b) + 216*cosh(c)*sinh(b)
  374. 3 10
  375. + 60*cosh(c)*sinh(b) - 512*cosh(c)*sinh(b)*sinh(c)
  376. 8 6
  377. - 1152*cosh(c)*sinh(b)*sinh(c) - 896*cosh(c)*sinh(b)*sinh(c)
  378. 4 2
  379. - 280*cosh(c)*sinh(b)*sinh(c) - 30*cosh(c)*sinh(b)*sinh(c)
  380. + 4*cosh(c)*sinh(b)
  381. trigsimp(ws,combine);
  382. sinh(9*b + c) + sinh(6*a - b - 11*c)
  383. --------------------------------------
  384. 2
  385. trigsimp(sec(20x-y),keepalltrig);
  386. 20 20 20 19
  387. (csc(x) *csc(y)*sec(x) *sec(y))/(csc(x) *csc(y) + 20*csc(x) *sec(x)*sec(y)
  388. 18 2 17 3
  389. - 190*csc(x) *csc(y)*sec(x) - 1140*csc(x) *sec(x) *sec(y)
  390. 16 4 15 5
  391. + 4845*csc(x) *csc(y)*sec(x) + 15504*csc(x) *sec(x) *sec(y)
  392. 14 6 13 7
  393. - 38760*csc(x) *csc(y)*sec(x) - 77520*csc(x) *sec(x) *sec(y)
  394. 12 8 11 9
  395. + 125970*csc(x) *csc(y)*sec(x) + 167960*csc(x) *sec(x) *sec(y)
  396. 10 10 9 11
  397. - 184756*csc(x) *csc(y)*sec(x) - 167960*csc(x) *sec(x) *sec(y)
  398. 8 12 7 13
  399. + 125970*csc(x) *csc(y)*sec(x) + 77520*csc(x) *sec(x) *sec(y)
  400. 6 14 5 15
  401. - 38760*csc(x) *csc(y)*sec(x) - 15504*csc(x) *sec(x) *sec(y)
  402. 4 16 3 17
  403. + 4845*csc(x) *csc(y)*sec(x) + 1140*csc(x) *sec(x) *sec(y)
  404. 2 18 19 20
  405. - 190*csc(x) *csc(y)*sec(x) - 20*csc(x)*sec(x) *sec(y) + csc(y)*sec(x) )
  406. trigsimp(csc(10a-9b),keepalltrig);
  407. 10 9 10 9 10 8
  408. ( - csc(a) *csc(b) *sec(a) *sec(b) )/(9*csc(a) *csc(b) *sec(b)
  409. 10 6 3 10 4 5
  410. - 84*csc(a) *csc(b) *sec(b) + 126*csc(a) *csc(b) *sec(b)
  411. 10 2 7 10 9 9 9
  412. - 36*csc(a) *csc(b) *sec(b) + csc(a) *sec(b) - 10*csc(a) *csc(b) *sec(a)
  413. 9 7 2 9 5 4
  414. + 360*csc(a) *csc(b) *sec(a)*sec(b) - 1260*csc(a) *csc(b) *sec(a)*sec(b)
  415. 9 3 6 9 8
  416. + 840*csc(a) *csc(b) *sec(a)*sec(b) - 90*csc(a) *csc(b)*sec(a)*sec(b)
  417. 8 8 2 8 6 2 3
  418. - 405*csc(a) *csc(b) *sec(a) *sec(b) + 3780*csc(a) *csc(b) *sec(a) *sec(b)
  419. 8 4 2 5
  420. - 5670*csc(a) *csc(b) *sec(a) *sec(b)
  421. 8 2 2 7 8 2 9
  422. + 1620*csc(a) *csc(b) *sec(a) *sec(b) - 45*csc(a) *sec(a) *sec(b)
  423. 7 9 3 7 7 3 2
  424. + 120*csc(a) *csc(b) *sec(a) - 4320*csc(a) *csc(b) *sec(a) *sec(b)
  425. 7 5 3 4
  426. + 15120*csc(a) *csc(b) *sec(a) *sec(b)
  427. 7 3 3 6
  428. - 10080*csc(a) *csc(b) *sec(a) *sec(b)
  429. 7 3 8 6 8 4
  430. + 1080*csc(a) *csc(b)*sec(a) *sec(b) + 1890*csc(a) *csc(b) *sec(a) *sec(b)
  431. 6 6 4 3
  432. - 17640*csc(a) *csc(b) *sec(a) *sec(b)
  433. 6 4 4 5
  434. + 26460*csc(a) *csc(b) *sec(a) *sec(b)
  435. 6 2 4 7 6 4 9
  436. - 7560*csc(a) *csc(b) *sec(a) *sec(b) + 210*csc(a) *sec(a) *sec(b)
  437. 5 9 5 5 7 5 2
  438. - 252*csc(a) *csc(b) *sec(a) + 9072*csc(a) *csc(b) *sec(a) *sec(b)
  439. 5 5 5 4
  440. - 31752*csc(a) *csc(b) *sec(a) *sec(b)
  441. 5 3 5 6
  442. + 21168*csc(a) *csc(b) *sec(a) *sec(b)
  443. 5 5 8 4 8 6
  444. - 2268*csc(a) *csc(b)*sec(a) *sec(b) - 1890*csc(a) *csc(b) *sec(a) *sec(b)
  445. 4 6 6 3
  446. + 17640*csc(a) *csc(b) *sec(a) *sec(b)
  447. 4 4 6 5
  448. - 26460*csc(a) *csc(b) *sec(a) *sec(b)
  449. 4 2 6 7 4 6 9
  450. + 7560*csc(a) *csc(b) *sec(a) *sec(b) - 210*csc(a) *sec(a) *sec(b)
  451. 3 9 7 3 7 7 2
  452. + 120*csc(a) *csc(b) *sec(a) - 4320*csc(a) *csc(b) *sec(a) *sec(b)
  453. 3 5 7 4
  454. + 15120*csc(a) *csc(b) *sec(a) *sec(b)
  455. 3 3 7 6
  456. - 10080*csc(a) *csc(b) *sec(a) *sec(b)
  457. 3 7 8 2 8 8
  458. + 1080*csc(a) *csc(b)*sec(a) *sec(b) + 405*csc(a) *csc(b) *sec(a) *sec(b)
  459. 2 6 8 3
  460. - 3780*csc(a) *csc(b) *sec(a) *sec(b)
  461. 2 4 8 5
  462. + 5670*csc(a) *csc(b) *sec(a) *sec(b)
  463. 2 2 8 7 2 8 9
  464. - 1620*csc(a) *csc(b) *sec(a) *sec(b) + 45*csc(a) *sec(a) *sec(b)
  465. 9 9 7 9 2
  466. - 10*csc(a)*csc(b) *sec(a) + 360*csc(a)*csc(b) *sec(a) *sec(b)
  467. 5 9 4 3 9 6
  468. - 1260*csc(a)*csc(b) *sec(a) *sec(b) + 840*csc(a)*csc(b) *sec(a) *sec(b)
  469. 9 8 8 10
  470. - 90*csc(a)*csc(b)*sec(a) *sec(b) - 9*csc(b) *sec(a) *sec(b)
  471. 6 10 3 4 10 5
  472. + 84*csc(b) *sec(a) *sec(b) - 126*csc(b) *sec(a) *sec(b)
  473. 2 10 7 10 9
  474. + 36*csc(b) *sec(a) *sec(b) - sec(a) *sec(b) )
  475. trigsimp(ws,combine);
  476. 2*cos(a)
  477. ----------------------------------
  478. sin(11*a - 9*b) + sin(9*a - 9*b)
  479. trigsimp(cosh(50*acosh(x))-cos(50*acos(x)));
  480. 0
  481. trigsimp(cos(n*acos(x))-cosh(n*acosh(x)),trig);
  482. 0
  483. trigsimp((2*tan(log(x))*(sec(log(x))**2 - tan(log(x))**2 - 1))/x);
  484. 0
  485. trigsimp(sech(10x),keepalltrig);
  486. 10 10 10 8 2 6 4
  487. (csch(x) *sech(x) )/(csch(x) + 45*csch(x) *sech(x) + 210*csch(x) *sech(x)
  488. 4 6 2 8 10
  489. + 210*csch(x) *sech(x) + 45*csch(x) *sech(x) + sech(x) )
  490. trigsimp(ws,combine);
  491. 1
  492. ------------
  493. cosh(10*x)
  494. trigsimp(csch(3x-5y),keepalltrig);
  495. 3 5 3 5 3 4
  496. ( - csch(x) *csch(y) *sech(x) *sech(y) )/(5*csch(x) *csch(y) *sech(y)
  497. 3 2 3 3 5
  498. + 10*csch(x) *csch(y) *sech(y) + csch(x) *sech(y)
  499. 2 5 2 3 2
  500. - 3*csch(x) *csch(y) *sech(x) - 30*csch(x) *csch(y) *sech(x)*sech(y)
  501. 2 4
  502. - 15*csch(x) *csch(y)*sech(x)*sech(y)
  503. 4 2
  504. + 15*csch(x)*csch(y) *sech(x) *sech(y)
  505. 2 2 3 2 5
  506. + 30*csch(x)*csch(y) *sech(x) *sech(y) + 3*csch(x)*sech(x) *sech(y)
  507. 5 3 3 3 2
  508. - csch(y) *sech(x) - 10*csch(y) *sech(x) *sech(y)
  509. 3 4
  510. - 5*csch(y)*sech(x) *sech(y) )
  511. trigsimp(ws,combine);
  512. 1
  513. -----------------
  514. sinh(3*x - 5*y)
  515. off precise;
  516. trigsimp((sinh(x)+cosh(x))**n+(cosh(x)-sinh(x))**n,expon);
  517. 2*n*x
  518. e + 1
  519. ------------
  520. n*x
  521. e
  522. on precise;
  523. trigsimp(ws,hyp);
  524. 2*cosh(n*x)
  525. load taylor;
  526. taylor(sin(x+a)*cos(x+b),x,0,4);
  527. cos(b)*sin(a) + (cos(a)*cos(b) - sin(a)*sin(b))*x
  528. 2
  529. - (cos(a)*sin(b) + cos(b)*sin(a))*x
  530. 2*( - cos(a)*cos(b) + sin(a)*sin(b)) 3
  531. + --------------------------------------*x
  532. 3
  533. cos(a)*sin(b) + cos(b)*sin(a) 4 5
  534. + -------------------------------*x + O(x )
  535. 3
  536. trigsimp(ws,combine);
  537. sin(a - b) + sin(a + b) 2 2*cos(a + b) 3
  538. ------------------------- + cos(a + b)*x - sin(a + b)*x - --------------*x
  539. 2 3
  540. sin(a + b) 4 5
  541. + ------------*x + O(x )
  542. 3
  543. %----------------------trigfactorize------------------------
  544. trigfactorize(sin(x)**2,x);
  545. {sin(x),sin(x)}
  546. trigfactorize(1+cos(x),x);
  547. {cos(x) + 1}
  548. trigfactorize(1+cos(x),x/2);
  549. x x
  550. {2,cos(---),cos(---)}
  551. 2 2
  552. trigfactorize(1+cos(x),x/6);
  553. {2,
  554. x 2
  555. - 4*sin(---) + 1,
  556. 6
  557. x 2
  558. - 4*sin(---) + 1,
  559. 6
  560. x
  561. cos(---),
  562. 6
  563. x
  564. cos(---)}
  565. 6
  566. trigfactorize(sin(x)*(1-cos(x)),x);
  567. {sin(x)*( - cos(x) + 1)}
  568. trigfactorize(sin(x)*(1-cos(x)),x/2);
  569. {4,
  570. x
  571. cos(---),
  572. 2
  573. x
  574. sin(---),
  575. 2
  576. x
  577. sin(---),
  578. 2
  579. x
  580. sin(---)}
  581. 2
  582. trigfactorize(tan(x),x);
  583. {tan(x)}
  584. trigfactorize(sin(x*3),x);
  585. 2
  586. { - 4*sin(x) + 3,sin(x)}
  587. trigfactorize(sin(4x)-1,x);
  588. {-1,
  589. 2
  590. 2*cos(x)*sin(x) + 2*sin(x) - 1,
  591. 2
  592. 2*cos(x)*sin(x) + 2*sin(x) - 1}
  593. trigfactorize(sin(x)**4-1,x);
  594. 2
  595. { - (sin(x) + 1),cos(x),cos(x)}
  596. trigfactorize(cos(x)**4-1,x);
  597. 2
  598. {-1, - sin(x) + 2,sin(x),sin(x)}
  599. trigfactorize(sin(x)**10-cos(x)**6,x);
  600. {-1,
  601. 2 5
  602. cos(x)*sin(x) - cos(x) - sin(x) ,
  603. 2 5
  604. cos(x)*sin(x) - cos(x) + sin(x) }
  605. trigfactorize(sin(x)*cos(y),x);
  606. {cos(y),sin(x)}
  607. trigfactorize(sin(2x)*cos(y)**2,y/2);
  608. {2*cos(x)*sin(x),
  609. y y
  610. cos(---) + sin(---),
  611. 2 2
  612. y y
  613. cos(---) + sin(---),
  614. 2 2
  615. y y
  616. cos(---) - sin(---),
  617. 2 2
  618. y y
  619. cos(---) - sin(---)}
  620. 2 2
  621. trigfactorize(sin(y)**4-x**2,y);
  622. 2 2
  623. { - sin(y) + x, - (sin(y) + x)}
  624. trigfactorize(sin(x),x+1);
  625. ***** error using trigfactorize, basis not possible
  626. trigfactorize(sin(x),2x);
  627. ***** error using trigfactorize, basis not possible
  628. trigfactorize(sin(x)*cosh(x),x/2);
  629. {2,
  630. x
  631. cos(---),
  632. 2
  633. x
  634. sin(---),
  635. 2
  636. x x
  637. cosh(---) - i*sinh(---),
  638. 2 2
  639. x x
  640. cosh(---) + i*sinh(---)}
  641. 2 2
  642. trigfactorize(1+cos(2x)+2cos(x)*cosh(x),x/2);
  643. {4,
  644. x x x x
  645. cos(---)*cosh(---) + i*sin(---)*sinh(---),
  646. 2 2 2 2
  647. x x x x
  648. cos(---)*cosh(---) - i*sin(---)*sinh(---),
  649. 2 2 2 2
  650. x x
  651. cos(---) + sin(---),
  652. 2 2
  653. x x
  654. cos(---) - sin(---)}
  655. 2 2
  656. %------------------------gcd---------------------------------
  657. triggcd(sin(x),cos(x),x);
  658. 1
  659. triggcd(1-cos(x)**2,sin(x)**2,x);
  660. 2
  661. - sin(x)
  662. triggcd(sin(x)**4-1,cos(x)**2,x);
  663. 2
  664. - sin(x) + 1
  665. triggcd(sin(5x+1),cos(x),x);
  666. 1
  667. triggcd(1-cos(2x),sin(2x),x);
  668. sin(x)
  669. triggcd(-5+cos(2x)-6sin(x),-7+cos(2x)-8sin(x),x/2);
  670. x x
  671. 2*cos(---)*sin(---) + 1
  672. 2 2
  673. triggcd(1-2cosh(x)+cosh(2x),1+2cosh(x)+cosh(2x),x/2);
  674. x 2
  675. 2*sinh(---) + 1
  676. 2
  677. triggcd(1+cos(2x)+2cos(x)*cosh(x),1+2cos(x)*cosh(x)+cosh(2x),x/2);
  678. x 2 x 2
  679. - sin(---) + sinh(---) + 1
  680. 2 2
  681. triggcd(-1+2*a*b+cos(2x)-2*a*sin(x)+2*b*sin(x),-1-2*a*b+cos(2x)-2*a*sin(x)
  682. -2*b*sin(x),x/2);
  683. x x
  684. 2*cos(---)*sin(---) + a
  685. 2 2
  686. triggcd(sin(x)**10-1,cos(x),x);
  687. cos(x)
  688. triggcd(sin(5*x) + sin(3*x),cos(x),x);
  689. cos(x)
  690. triggcd(sin(3x)+sin(5x),sin(5x)+sin(7x),x);
  691. 2
  692. sin(x)*(sin(x) - 1)
  693. end;
  694. (TIME: trigsimp 75830 79750)