6,324 reputation
626
bio website
location Luxembourg
age 56
visits member for 2 years, 8 months
seen 7 hours ago

merge keep


11h
answered This system cannot be solved with the methods available to solve
13h
comment I need to move X to right side without solving or simplifying anything else
First I suggest that you gibe a simple example of what you have and what you want. Please avoid the huge numbers and fractions, so that one can understand it from a single glance.Second, your expression is not an equation, but an assignment in Mma, and as it is it should give an error. You should replace = by == . Third, if I do this, all your expressions involving x are already in the right-hand side of the equation, so it is unclear what do you want.
14h
comment How to export figures with normal spacing in texts?
I tried your example in two ways at Mma 10.0, Win7. The first was to use the Menu/File/SaveSelectionAs, the second one to export the file. In the both cases I saved the files as pdf ones. I did not observe any fusion of the words in the FrameLabel.
1d
comment Systems of equations
I suggest that you put these your questions as comments or edits to your original question, where they actually belong.
1d
comment How to export figures with normal spacing in texts?
Why do not you insert a few additional empty intervals between the words "note", "the" and "saapa"? This seems the easiest, unless you have in mind a high-quality image as eg., for a journal publication.
1d
comment TraditionalForm for PlotLabel with a parameter
I also suggest that you formulate here your question completely
1d
comment How to obtain the best possibe NonlinearFit
Technically the code is quite right. If the fit is, nevertheless, not close enough to the data it may be because (1) the data contain some errors, (2) the function used for the fit is not good enough or (3) there are some limitations for the function parameters that should be accounted for (that is what Yves mentioned above). It is typically up to you to decide, what is the case.
1d
accepted How to prepare a Mma expression to insert it into Comsol?
1d
comment How to prepare a Mma expression to insert it into Comsol?
You are probably right. Yesterday I tried your code and repeatedly obtained a result that differs from what I want vy the form in which the derivatives are represented. Today it is OK. Well, it must be something related to Mma have kept in memory, though it seems I cleaned everything.
2d
comment How to prepare a Mma expression to insert it into Comsol?
Please disregard the previous comment, I was unable to remove it. @gpap, Sorry, right as it is written in your case it creates the expressions for derivatives that are not acceptable for Comsol. It can be, however, slightly transformed: rule1 = {y -> (u[#] &)}; then rule2 = {u[x]^n_ -> u^n, u[x] -> u}; , rule3 = {u'[x] -> ux, u''[x] -> uxx}; and postprocessing = ToLowerCase[ToString[InputForm[#]]]~ StringReplace~{" " .. -> "", "[" -> "(", "]" -> ")"} &; . After that one makes expr /. rule1 /. rule2 /. rule3 // postprocessing that works perfectly
2d
comment How to prepare a Mma expression to insert it into Comsol?
Yes, this is what comsol requires and seems to work well.
2d
comment How to Hold/Defer only one (only given) level?
@Cris Degen I again do not see the point: try this: Table[Defer[Sin[x]^2 + Cos[x]^2] == Sin[x]^2 + Cos[x]^2 /. x -> 12 //Simplify, {x0, 0, 1, 0.1}] // TableForm , since the right-hand part is always 1. But even less I see the point in making a table of 10 equal elements by that complex trick. I do not imagine that OP needs that, so s/he should formulate more clearly what s/he is after.
2d
comment How to prepare a Mma expression to insert it into Comsol?
@Cris Dengen, thank you, Cris. Based on your idea I built a function that works: toComsol[expr_, y_, u_] := Module[{n}, expr /. y -> (u[#] &) /. {u[x]^n_ -> u^n, u[x] -> u} /. {u'[x] -> ToExpression[ToString[u] <> "x"], u''[x] -> ToExpression[ToString[u] <> "xx"]} // InputForm // ToString // ToLowerCase // StringReplace[#, {" " .. -> "", "[" -> "(", "]" -> ")"}] &] . Why do not you give your idea as a regular answer?
2d
asked How to prepare a Mma expression to insert it into Comsol?
2d
comment Where put or edit an init.m to add menu commands?
I tried this on my machine, but unsuccessfully. It is strange. Instead I succeeded to install it into $InstallationDirectory/SystemFiles/Autoload/PacletManager/Kernel . This is already the second case when on my machine I cannot work with the init.m file where other people seem to easily work with it, but secceed at the mentioned position. I have a question, however. In my case all the items are repeated twice in the Menu/Format/FontColor and Menu/Format/BackgroundColor. Do you know any reason?
2d
comment How to Hold/Defer only one (only given) level?
In my code x has no value. I do not see your point.
2d
comment How do I use an offset with Parametric Plot?
It would be helpful, if you can give a minimalistic example showing the behavior you need to improve. Otherwise, it is not quite clear, what do you wish.
2d
comment How to Hold/Defer only one (only given) level?
It seems to be even a bit more simple than that: Defer[Sin[x]^2 + Cos[x]^2] == Sin[x]^2 + Cos[x]^2 /.x -> 12// Simplify yields what you need.
2d
reviewed Approve suggested edit on Array element problem in optimization
Nov
21
reviewed Approve suggested edit on How to select the value of a substitution rule for a particular varible?