Modify real part and leaves imaginary part unchangedpresenting a real number as real instead of imaginaryHow...
What determines the top speed in ice skating?
useState hook setter incorrectly overwrites state
Is it fine to ask this kind of question to the corresponding author of a paper?
Should I withdraw my paper because the Editor is behaving so badly with me?
Creating chess engine, machine learning vs. traditional engine?
How are steel imports supposed to threaten US national security?
Why didn't Kes send Voyager home?
how do you value what your leisure time is worth?
What does ぎゃんかわ女子 mean?
How to temporarily replace Latin characters with Greek
"Es gefällt ihm." How to identify similar exceptions?
Postman Delivery
Proving roots of a function cannot all be real
An employee has low self-confidence, and is performing poorly. How can I help?
QGIS can't detect negative values?
D&D Monsters and Copyright
Sanitise a high score table
Is sleeping on the ground in cold weather better than on an air mattress?
Relation between signal processing and control systems engineering?
How to discipline overeager engineer
What do you call the fallacy of thinking that some action A will guarantee some outcome B, when in reality B depends on multiple other conditions?
Difference between $HOME and ~
Singing - effect of vowels on tuning and tonality
Low-magic medieval fantasy clothes that allow the wearer to grow?
Modify real part and leaves imaginary part unchanged
presenting a real number as real instead of imaginaryHow to eliminate the zero real part of a purely imaginary number?Solve equations real and imaginary part separatelyDecomposing a complex numbers equation into its real and imaginary partListplot imaginary part of complex numbersContour plot of the imaginary portion of a function given the real part is positiveImaginary part of complex number, nothing works?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
.everyonelovesstackoverflow{position:absolute;height:1px;width:1px;opacity:0;top:0;left:0;pointer-events:none;}
$begingroup$
How can I flip the sign of the real part but not affect the imaginary part of a complex number:
a+bi
=> -a + bi
Example list:
list = {{-0.282095 + 0.282095 I, -0.27254 + 0.291336 I,
-0.262018 + 0.300835 I, -0.250437 + 0.310542 I}}
expected:
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}}
So it's "similar" to conjugate but works on the real not imaginary.
complex
$endgroup$
add a comment
|
$begingroup$
How can I flip the sign of the real part but not affect the imaginary part of a complex number:
a+bi
=> -a + bi
Example list:
list = {{-0.282095 + 0.282095 I, -0.27254 + 0.291336 I,
-0.262018 + 0.300835 I, -0.250437 + 0.310542 I}}
expected:
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}}
So it's "similar" to conjugate but works on the real not imaginary.
complex
$endgroup$
add a comment
|
$begingroup$
How can I flip the sign of the real part but not affect the imaginary part of a complex number:
a+bi
=> -a + bi
Example list:
list = {{-0.282095 + 0.282095 I, -0.27254 + 0.291336 I,
-0.262018 + 0.300835 I, -0.250437 + 0.310542 I}}
expected:
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}}
So it's "similar" to conjugate but works on the real not imaginary.
complex
$endgroup$
How can I flip the sign of the real part but not affect the imaginary part of a complex number:
a+bi
=> -a + bi
Example list:
list = {{-0.282095 + 0.282095 I, -0.27254 + 0.291336 I,
-0.262018 + 0.300835 I, -0.250437 + 0.310542 I}}
expected:
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}}
So it's "similar" to conjugate but works on the real not imaginary.
complex
complex
asked 8 hours ago
leon365leon365
1947 bronze badges
1947 bronze badges
add a comment
|
add a comment
|
2 Answers
2
active
oldest
votes
$begingroup$
-Conjugate[list]
(* {{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}} *)
$endgroup$
add a comment
|
$begingroup$
list /. Complex[x_, y_] :> Complex[-x, y]
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I, 0.262018 + 0.300835 I,
0.250437 + 0.310542 I, 2, 3 I}}
$endgroup$
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f207188%2fmodify-real-part-and-leaves-imaginary-part-unchanged%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
-Conjugate[list]
(* {{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}} *)
$endgroup$
add a comment
|
$begingroup$
-Conjugate[list]
(* {{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}} *)
$endgroup$
add a comment
|
$begingroup$
-Conjugate[list]
(* {{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}} *)
$endgroup$
-Conjugate[list]
(* {{0.282095 + 0.282095 I, 0.27254 + 0.291336 I,
0.262018 + 0.300835 I, 0.250437 + 0.310542 I}} *)
answered 8 hours ago
WReachWReach
55.5k2 gold badges121 silver badges220 bronze badges
55.5k2 gold badges121 silver badges220 bronze badges
add a comment
|
add a comment
|
$begingroup$
list /. Complex[x_, y_] :> Complex[-x, y]
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I, 0.262018 + 0.300835 I,
0.250437 + 0.310542 I, 2, 3 I}}
$endgroup$
add a comment
|
$begingroup$
list /. Complex[x_, y_] :> Complex[-x, y]
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I, 0.262018 + 0.300835 I,
0.250437 + 0.310542 I, 2, 3 I}}
$endgroup$
add a comment
|
$begingroup$
list /. Complex[x_, y_] :> Complex[-x, y]
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I, 0.262018 + 0.300835 I,
0.250437 + 0.310542 I, 2, 3 I}}
$endgroup$
list /. Complex[x_, y_] :> Complex[-x, y]
{{0.282095 + 0.282095 I, 0.27254 + 0.291336 I, 0.262018 + 0.300835 I,
0.250437 + 0.310542 I, 2, 3 I}}
answered 8 hours ago
Suba ThomasSuba Thomas
3,93111 silver badges20 bronze badges
3,93111 silver badges20 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f207188%2fmodify-real-part-and-leaves-imaginary-part-unchanged%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown