Remove Abs from Norms of Vectors
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I have the following norm
Norm[a, b*c] // Sqrt[Abs[a]^2 + Abs[b c]^2]
How do I remove the Abs
from it?
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0]
only kills the first Abs
Sqrt[a^2 + Abs[b c]^2]
list-manipulation simplifying-expressions vector
add a comment |Â
up vote
3
down vote
favorite
I have the following norm
Norm[a, b*c] // Sqrt[Abs[a]^2 + Abs[b c]^2]
How do I remove the Abs
from it?
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0]
only kills the first Abs
Sqrt[a^2 + Abs[b c]^2]
list-manipulation simplifying-expressions vector
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have the following norm
Norm[a, b*c] // Sqrt[Abs[a]^2 + Abs[b c]^2]
How do I remove the Abs
from it?
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0]
only kills the first Abs
Sqrt[a^2 + Abs[b c]^2]
list-manipulation simplifying-expressions vector
I have the following norm
Norm[a, b*c] // Sqrt[Abs[a]^2 + Abs[b c]^2]
How do I remove the Abs
from it?
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0]
only kills the first Abs
Sqrt[a^2 + Abs[b c]^2]
list-manipulation simplifying-expressions vector
list-manipulation simplifying-expressions vector
asked 51 mins ago
chr
232
232
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
ComplexExpand@Norm@a, b c
Sqrt[a^2 + b^2 c^2]
Thx. Can you explain whyComplexEpxpand
does it andAssumptions
does not?
â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation toIntegrate
).
â That Gravity Guy
18 mins ago
add a comment |Â
up vote
1
down vote
If you have to use FullSimplify
or Simplify
, you can use the option ComplexityFunction
to make expressions with Abs
more costly:
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0,
ComplexityFunction -> (100 Count[#, _Abs, 0, Infinity] + LeafCount[#] &)]
ÃÂ Sqrt[a^2 + b^2 c^2]
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
ComplexExpand@Norm@a, b c
Sqrt[a^2 + b^2 c^2]
Thx. Can you explain whyComplexEpxpand
does it andAssumptions
does not?
â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation toIntegrate
).
â That Gravity Guy
18 mins ago
add a comment |Â
up vote
1
down vote
accepted
ComplexExpand@Norm@a, b c
Sqrt[a^2 + b^2 c^2]
Thx. Can you explain whyComplexEpxpand
does it andAssumptions
does not?
â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation toIntegrate
).
â That Gravity Guy
18 mins ago
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
ComplexExpand@Norm@a, b c
Sqrt[a^2 + b^2 c^2]
ComplexExpand@Norm@a, b c
Sqrt[a^2 + b^2 c^2]
answered 38 mins ago
That Gravity Guy
698410
698410
Thx. Can you explain whyComplexEpxpand
does it andAssumptions
does not?
â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation toIntegrate
).
â That Gravity Guy
18 mins ago
add a comment |Â
Thx. Can you explain whyComplexEpxpand
does it andAssumptions
does not?
â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation toIntegrate
).
â That Gravity Guy
18 mins ago
Thx. Can you explain why
ComplexEpxpand
does it and Assumptions
does not?â chr
33 mins ago
Thx. Can you explain why
ComplexEpxpand
does it and Assumptions
does not?â chr
33 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation to Integrate
).â That Gravity Guy
18 mins ago
ComplexExpand
automatically assumes all its variables to be real. Other than that, I believe it's just a matter of behind-the-scenes expression manipulation (i.e. I don't know...). Though this idea reminds me of this post talking about different ways of assuming things (granted in relation to Integrate
).â That Gravity Guy
18 mins ago
add a comment |Â
up vote
1
down vote
If you have to use FullSimplify
or Simplify
, you can use the option ComplexityFunction
to make expressions with Abs
more costly:
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0,
ComplexityFunction -> (100 Count[#, _Abs, 0, Infinity] + LeafCount[#] &)]
ÃÂ Sqrt[a^2 + b^2 c^2]
add a comment |Â
up vote
1
down vote
If you have to use FullSimplify
or Simplify
, you can use the option ComplexityFunction
to make expressions with Abs
more costly:
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0,
ComplexityFunction -> (100 Count[#, _Abs, 0, Infinity] + LeafCount[#] &)]
ÃÂ Sqrt[a^2 + b^2 c^2]
add a comment |Â
up vote
1
down vote
up vote
1
down vote
If you have to use FullSimplify
or Simplify
, you can use the option ComplexityFunction
to make expressions with Abs
more costly:
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0,
ComplexityFunction -> (100 Count[#, _Abs, 0, Infinity] + LeafCount[#] &)]
ÃÂ Sqrt[a^2 + b^2 c^2]
If you have to use FullSimplify
or Simplify
, you can use the option ComplexityFunction
to make expressions with Abs
more costly:
FullSimplify[Norm[a, b*c], Assumptions -> a > 0, b > 0, c > 0,
ComplexityFunction -> (100 Count[#, _Abs, 0, Infinity] + LeafCount[#] &)]
ÃÂ Sqrt[a^2 + b^2 c^2]
answered 34 mins ago
kglr
161k8185384
161k8185384
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182373%2fremove-abs-from-norms-of-vectors%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password