How to remove I.0 from output?

In summary: I don't know what you are working on so I can't suggest anything. If you provide more information I can try to help you.
  • #1
Natthawin Cho
5
0
As I found on many websites, they suggest to use Chop[]. I tried that already but it doesn't work.

This is my output.

{{2 (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2])) Subscript[\[Lambda],
1] (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2] + (I.0 + Subscript[v, 1]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) + (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 2]/Sqrt[2])) Subscript[\[Lambda],
5] (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2] + (I.0 + Subscript[v, 1]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) +
1/2 (2 Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
6] (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2] + (I.0 + Subscript[v, 1]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) -
1/2 I (-(Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
8] (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2] + (I.0 + Subscript[v, 1]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) - \!\(
\*SubsuperscriptBox[\(\[Mu]\), \(1\), \(2\)]\ \((Conjugate[I . 0] +
\*FractionBox[\(Conjugate[
\*SubscriptBox[\(v\), \(1\)]]\),
SqrtBox[\(2\)]] + \((I . 0 +
\*FractionBox[
SubscriptBox[\(v\), \(1\)],
SqrtBox[\(2\)]])\)\ \*
SuperscriptBox["Conjugate", "\[Prime]",
MultilineFunction->None][I . 0 +
\*FractionBox[
SubscriptBox[\(v\), \(1\)],
SqrtBox[\(2\)]]])\)\) -
1/2 (-(Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[2]) (I.0 +
Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
4] (-Conjugate[I.0] - Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) -
1/2 I (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2])) Subscript[\[Lambda],
8] (-Conjugate[I.0] - Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) -
1/2 I (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 2]/Sqrt[2])) Subscript[\[Lambda],
9] (-Conjugate[I.0] - Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) -
1/4 I (2 Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
10] (-Conjugate[I.0] - Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) + 1/2 I
\!\(\*SubsuperscriptBox[\(\[Mu]\), \(4\), \(2\)]\) (-Conjugate[I.0] -
Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) +
1/2 (2 Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
3] (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) +
1/2 (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 1]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2])) Subscript[\[Lambda],
6] (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) +
1/2 (Conjugate[
I.0] I.0 + (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 2]/Sqrt[2])) Subscript[\[Lambda],
7] (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) -
1/4 I (-(Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2]) (I.0 + Subscript[v, 1]/Sqrt[2]) + (Conjugate[I.0] +
Conjugate[Subscript[v, 1]]/Sqrt[2]) (I.0 + Subscript[v, 2]/
Sqrt[2])) Subscript[\[Lambda],
10] (Conjugate[I.0] + Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]]) - 1/2
\!\(\*SubsuperscriptBox[\(\[Mu]\), \(3\), \(2\)]\) (Conjugate[I.0] +
Conjugate[Subscript[v, 2]]/Sqrt[
2] + (I.0 + Subscript[v, 2]/Sqrt[2]) Derivative[1][Conjugate][
I.0 + Subscript[v, 1]/Sqrt[2]])}}

I also would like to know the difference between Conjugate[] and Conjugate'[].
 
Physics news on Phys.org
  • #3
This is the screenshot.
cats.jpg
 
  • #4
What is the input that gave you this?
 
  • #5
To remove I.0 from your output you should probably remove it from your input. It doesn't make sense to take the dot product of two scalars. I think it indicates an error in your code.
 
  • #6
I solved that problem already. The error is in my code. I used I dot with matrix. However, I have 1x2 matrix times 2x1 matrix and I get 1x1 matrix. Can I change this to scalar?
 
  • #7
To me it doesn't make sense to have a dot product of I with anything.

If you read the documentation on Dot it says that if either of the arguments are not lists then the Dot remains unevaluated. So that is consistent with the behavior that we see.
 
Last edited:

1. How do I remove I.0 from my output?

The best way to remove I.0 from your output is to use a text editor or programming language to search and replace all instances of "I.0" with an empty string, effectively deleting it. Alternatively, you can use regular expressions to match and remove all instances of I.0.

2. Why is I.0 showing up in my output?

I.0 is often used as a placeholder or default value in programming, and can show up in output if it is not properly handled or replaced. It could also be a formatting issue, such as if a numerical value is being converted to a string and the default decimal point is being added.

3. How can I prevent I.0 from appearing in my output?

To prevent I.0 from appearing in your output, make sure to properly handle and replace any placeholders or default values in your code. Also, double check your formatting and make sure you are using the correct data types and conversion methods.

4. Is there a specific programming language or tool that can easily remove I.0 from output?

No, there is not a specific programming language or tool that is designed solely for removing I.0 from output. However, many text editors and programming languages have search and replace functions that can make it easier to remove I.0 in bulk.

5. Can I remove I.0 without affecting the rest of my output?

Yes, as long as you are targeting only the instances of I.0 in your code, you can remove it without affecting the rest of your output. However, it is always a good idea to test your code after making changes to ensure that everything is working correctly.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
958
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
207
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
2K
Replies
1
Views
677
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
1K
Back
Top