Post Reply 
Calculator test
Today, 01:35 PM
Post: #93
RE: Calculator test
(Yesterday 01:56 PM)Commie Wrote:  Here is one of the equations for tan(x+iy):
\[\tan(x+iy) = \frac{sin{2x} + {i}sinh{2y}}{cosh{2y}+cos{2x}}\]

Proof is trivial, using sum to product formula. Let Y = i*y

RHS
= (sin(2x) + sin(2Y)) / (cos(2x) + cos(2Y))
= (2*sin(x+Y)*cos(x-Y)) / (2*cos(x+Y)*cos(x-Y))
= sin(x+Y) / cos(x+Y)
= tan(x+i*y)

Note that cos(2x) has range [-1,1], cosh(2y) has range [1,inf)
RHS denominator may cause catastrophic cancellation.

This was the reason Free42 tan(z) later switched to this:

tan(x+i*y) = (sin(x)*cos(x) + i * cosh(y)*sinh(y)) / (cos(x)^2 + sinh(y)^2)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Calculator test - Commie - 12-06-2024, 10:27 PM
RE: Calculator test - Steve Simpkin - 12-06-2024, 11:19 PM
RE: Calculator test - Johnh - 12-06-2024, 11:20 PM
RE: Calculator test - Commie - 12-07-2024, 10:32 AM
RE: Calculator test - naddy - 12-06-2024, 11:31 PM
RE: Calculator test - Thomas Klemm - 12-07-2024, 03:33 AM
RE: Calculator test - rprosperi - 12-07-2024, 03:34 AM
RE: Calculator test - naddy - 12-07-2024, 08:11 PM
RE: Calculator test - StephenG1CMZ - 12-07-2024, 08:49 AM
RE: Calculator test - rprosperi - 12-07-2024, 01:14 PM
RE: Calculator test - Idnarn - 12-07-2024, 09:47 AM
RE: Calculator test - AnnoyedOne - 12-07-2024, 01:22 PM
RE: Calculator test - Johnh - 12-07-2024, 07:17 PM
RE: Calculator test - AnnoyedOne - 12-07-2024, 07:23 PM
RE: Calculator test - Geoff Quickfall - 12-07-2024, 07:50 PM
RE: Calculator test - JurgenRo - 12-07-2024, 08:12 PM
RE: Calculator test - Steve Simpkin - 12-07-2024, 08:23 PM
RE: Calculator test - Geoff Quickfall - 12-07-2024, 08:20 PM
RE: Calculator test - Commie - 12-07-2024, 08:23 PM
RE: Calculator test - C.Ret - 12-08-2024, 07:36 AM
RE: Calculator test - naddy - 12-08-2024, 06:55 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 09:30 AM
RE: Calculator test - AnnoyedOne - 12-08-2024, 01:20 PM
RE: Calculator test - Commie - 12-08-2024, 02:06 PM
RE: Calculator test - carey - 12-08-2024, 03:15 PM
RE: Calculator test - Commie - 12-08-2024, 05:34 PM
RE: Calculator test - carey - 12-08-2024, 08:38 PM
RE: Calculator test - Commie - 12-08-2024, 08:52 PM
RE: Calculator test - Idnarn - Today, 04:16 PM
RE: Calculator test - AnnoyedOne - 12-08-2024, 04:04 PM
RE: Calculator test - naddy - 12-08-2024, 06:37 PM
RE: Calculator test - AnnoyedOne - 12-08-2024, 07:02 PM
RE: Calculator test - dm319 - 12-08-2024, 08:13 PM
RE: Calculator test - AnnoyedOne - 12-09-2024, 12:30 PM
RE: Calculator test - Maximilian Hohmann - 12-09-2024, 01:03 PM
RE: Calculator test - vaklaff - 12-10-2024, 09:42 AM
RE: Calculator test - RPNerd - 12-10-2024, 10:47 AM
RE: Calculator test - carey - 12-10-2024, 10:53 AM
RE: Calculator test - naddy - 12-10-2024, 12:44 PM
RE: Calculator test - John Keith - 12-10-2024, 04:26 PM
RE: Calculator test - carey - 12-10-2024, 05:22 PM
RE: Calculator test - Steve Simpkin - 12-08-2024, 05:36 PM
RE: Calculator test - dm319 - 12-08-2024, 02:05 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 02:51 PM
RE: Calculator test - AnnoyedOne - 12-08-2024, 03:34 PM
RE: Calculator test - dm319 - 12-08-2024, 05:33 PM
RE: Calculator test - AnnoyedOne - 12-08-2024, 05:39 PM
RE: Calculator test - dm319 - 12-08-2024, 06:04 PM
RE: Calculator test - John Keith - 12-08-2024, 06:48 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 04:01 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 04:17 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 06:31 PM
RE: Calculator test - Commie - 12-08-2024, 07:35 PM
RE: Calculator test - dm319 - 12-09-2024, 11:44 PM
RE: Calculator test - naddy - 12-10-2024, 12:34 AM
RE: Calculator test - AnnoyedOne - 12-10-2024, 01:32 PM
RE: Calculator test - Commie - 12-10-2024, 02:49 PM
RE: Calculator test - AnnoyedOne - 12-10-2024, 03:59 PM
RE: Calculator test - carey - 12-10-2024, 06:12 PM
RE: Calculator test - Commie - 12-10-2024, 07:25 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 08:01 PM
RE: Calculator test - Johnh - 12-08-2024, 08:02 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 08:18 PM
RE: Calculator test - dm319 - 12-08-2024, 08:26 PM
RE: Calculator test - Idnarn - 12-10-2024, 05:34 AM
RE: Calculator test - Gil - 12-08-2024, 11:38 PM
RE: Calculator test - Thomas Klemm - 12-08-2024, 11:46 PM
RE: Calculator test - gentzel - 12-09-2024, 06:27 PM
RE: Calculator test - Johnh - 12-10-2024, 12:28 PM
RE: Calculator test - AnnoyedOne - 12-10-2024, 01:45 PM
RE: Calculator test - Commie - 12-10-2024, 05:44 PM
RE: Calculator test - Idnarn - 12-10-2024, 06:49 PM
RE: Calculator test - Commie - 12-10-2024, 07:18 PM
RE: Calculator test - dm319 - 12-10-2024, 10:26 PM
RE: Calculator test - AnnoyedOne - Yesterday, 01:37 PM
RE: Calculator test - Maximilian Hohmann - Yesterday, 02:04 PM
RE: Calculator test - AnnoyedOne - Yesterday, 02:12 PM
RE: Calculator test - Maximilian Hohmann - Yesterday, 02:28 PM
RE: Calculator test - AnnoyedOne - Yesterday, 03:27 PM
RE: Calculator test - dm319 - Yesterday, 06:35 PM
RE: Calculator test - dm319 - 12-10-2024, 10:58 PM
RE: Calculator test - Commie - 12-10-2024, 11:52 PM
RE: Calculator test - naddy - Yesterday, 12:05 AM
RE: Calculator test - Thomas Klemm - Yesterday, 02:16 AM
RE: Calculator test - Johnh - Yesterday, 04:43 AM
RE: Calculator test - Commie - Yesterday, 01:56 PM
RE: Calculator test - Albert Chan - Today 01:35 PM
RE: Calculator test - Commie - Yesterday, 06:19 PM
RE: Calculator test - Idnarn - Yesterday, 08:12 PM
RE: Calculator test - Commie - Yesterday, 09:22 PM
RE: Calculator test - naddy - Yesterday, 11:14 PM
RE: Calculator test - AnnoyedOne - Today, 01:49 PM
RE: Calculator test - Albert Chan - Today, 02:29 PM
RE: Calculator test - klesl - Yesterday, 06:25 PM
RE: Calculator test - AnnoyedOne - Yesterday, 06:29 PM
RE: Calculator test - cdmackay - Yesterday, 07:03 PM
RE: Calculator test - Commie - Today, 03:21 PM
RE: Calculator test - Albert Chan - Today, 04:48 PM
RE: Calculator test - Commie - Today, 06:10 PM
RE: Calculator test - AnnoyedOne - Today, 06:22 PM



User(s) browsing this thread: 4 Guest(s)