327 reputation
6
bio website
location
age
visits member for 4 months
seen yesterday
stats profile views 24

May
7
comment How to make the imaginary part of a +0. I zero globally?
@Jonathan Shock Is there a way to confine all the numbers to real numbers in a program? Because I don't need imaginary number.
May
7
revised How to make the imaginary part of a +0. I zero globally?
added 1 characters in body
May
7
comment How to make the imaginary part of a +0. I zero globally?
@bills, what if I need to compare a to an integer like If[a>3,..,..], whereas a is actually a + 0.I? Then error occurs.
May
7
comment How to make the imaginary part of a +0. I zero globally?
Jonathan Shock: I don't know Chop fails outside the MatrixForm. But doesn't $Post = Chop[#, 10^-16] &; tells Mathematica to neglect digits smaller than 10^-16 automatically?
May
7
asked How to make the imaginary part of a +0. I zero globally?
May
7
comment Is there a way to globally set when to treat a very small number as zero?
Andy Ross ,Does $Post = Chop[#, 10^-13] &; really take away the digits smaller than 10^-13? I find that those digits still exist by Print[MatrixForm[FourierDCT[FourierDCT[{0, 0, 1, 0, 0}, 2], 3]]];
Apr
23
accepted How can I draw a Cuboid given its center and its dimensions?
Apr
23
accepted How to get complement from two matrices?
Apr
17
answered Can I put subscripted parameter values into a package?
Apr
15
comment Can I put subscripted parameter values into a package?
I found a way to use subscripted variables, that is transforming them into symbols first, then use symbol like q[UnderBracket]Subscript[UnderBracket]1 in the packages.
Apr
15
accepted Can I put subscripted parameter values into a package?
Apr
11
comment Can I put subscripted parameter values into a package?
@halirutan,I modified my question. I want to put all parameters (including subscripted ones) into a single package, then I call these data in the main program.
Apr
11
revised Can I put subscripted parameter values into a package?
added 542 characters in body
Apr
11
revised Can I put subscripted parameter values into a package?
added 542 characters in body
Apr
10
comment Can I put subscripted parameter values into a package?
Thanks, halirutan. a little problem arose when I am using subscripted variables. In my main program, I used Symbolize[ParsedBoxWrapper[SubscriptBox["", ""]]] to transform all subscripted variables into symbols, I find that I can not use the subscripted variables in the package any more.
Apr
10
asked Can I put subscripted parameter values into a package?
Apr
8
comment How can I draw a Cuboid given its center and its dimensions?
belisarius Thanks,Big favor!
Apr
8
comment How can I draw a Cuboid given its center and its dimensions?
Sorry about that, I did't realise that I had to vote that much. I voted for questions asked by others, does it have anything to do with my answers?
Apr
8
asked How can I draw a Cuboid given its center and its dimensions?
Apr
1
comment How to add lists with unequal length?
Neat and simple,I can define fadd=Plus @@ PadRight[{##}]&;