Post Reply 
sqrt(1+i)
10-06-2016, 01:03 PM (This post was last modified: 04-17-2017 12:53 AM by compsystems.)
Post: #17
RE: sqrt(1+i)
(10-05-2016 07:24 PM)parisse Wrote:  
(10-05-2016 02:59 PM)compsystems Wrote:  I think the rules of simplifications on the ti68k calculators are more powerful in many cases
.... As a counterexample try simplifying 4*atan(1/5)-atan(1/239) on your ti.
The handling of sqrt in Xcas is based on the more general concept of algebraic extension of Q (rootof in Xcas), where the emphasis is on recognizing 0 in a deterministic manner. Internally, there is no embedded sqrt inside Xcas, only a common algebraic extension for all the coefficients. Since displaying rootofs would scare many users, simple algebraic extensions are converted to more standard sqrt after computations, but as a side effect this does not necessarily *look* as simple (especially for embedded sqrt). And you can rework sqrt(1+i): for example if you want real or imaginary part: normal(re(sqrt(1+i))); normal(im(sqrt(1+i)))

ok, but they are more steps (input) to get to the same output,

[Image: output_x_plus_yi.jpg]

ti68k:
input (approx mode): √(1.0+i)
output x+y*i: 1.09868411347 + 0.455089860562*i

input (exact mode): √(1+i)
output x+y*i: sqrt(2*(sqrt(2)+1))/2 + (sqrt(2*(sqrt(2)+1))/2)*i


Xcas
input: normal(re(√(1+i))) + normal(im(√(1+i)))*i
output: (√2*√(√2+1)+(1+i)*√(√2+1))/(√2+2) not is a x + y * i form
fabulous if you include a flag in xcas to see the output of a complex expression in the form x + y * i Good Idea?

Xcas (next realease) =)
input (exact mode and new flag): √(1+i)
output: sqrt(2*(sqrt(2)+1))/2 + (sqrt(2*(sqrt(2)+1))/2)*i

another way to transform the output to x+y*i
√(1+i) -> (1+i)*√(√2+1)/(√2)
substituting i -> x
coeff( (1+x)*√(√2+1)/(√2),x) coeff separates the real and complex part
poly1[√2*√(√2+1)/2, √2*√(√2+1)/2]
Ans .* poly1[1, i]
poly1[√2*√(√2+1)/2, √2*√(√2+1)/2*i]
ΣLIST(poly1[√2*√(√2+1)/2, √2*√(√2+1)/2*i])
sqrt(2*(sqrt(2)+1))/2 + (sqrt(2*(sqrt(2)+1))/2)*i


we also need a version of QPI-ROOT cmd
Code:
QPIROOT(normal(re(√(1+i)))+normal(im(√(1+i)))*i)
-> sqrt(2*(sqrt(2)+1))/2 + (sqrt(2*(sqrt(2)+1))/2)*i
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
sqrt(1+i) - moonbeam - 09-26-2016, 12:35 PM
RE: sqrt(1+i) - parisse - 09-26-2016, 06:19 PM
RE: sqrt(1+i) - Helge Gabert - 09-26-2016, 08:33 PM
RE: sqrt(1+i) - dg1969 - 09-26-2016, 08:38 PM
RE: sqrt(1+i) - Helge Gabert - 09-27-2016, 04:19 AM
RE: sqrt(1+i) - Helge Gabert - 10-04-2016, 03:06 PM
RE: sqrt(1+i) - Helge Gabert - 10-04-2016, 04:50 PM
RE: sqrt(1+i) - roadrunner - 10-05-2016, 12:16 PM
RE: sqrt(1+i) - Albert Chan - 07-04-2021, 03:50 PM
RE: sqrt(1+i) - roadrunner - 07-07-2021, 01:35 PM
RE: sqrt(1+i) - parisse - 10-05-2016, 01:52 PM
RE: sqrt(1+i) - DedeBarre - 10-05-2016, 05:54 PM
RE: sqrt(1+i) - Hlib - 07-05-2021, 05:31 PM



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