Reputation
34,018
Next tag badge:
92/100 score
27/20 answers
Badges
1 48 118
Impact
~399k people reached

Dec
12
comment Option for styling PolarAxes - Am I missing something or is this a missing feature?
According to help, I think it should have worked. It might be a bug. I do not know. May be someone else would know better what is going on.
Dec
12
comment Option for styling PolarAxes - Am I missing something or is this a missing feature?
I do not know why it does not work. But Will this work for your? PolarPlot[\[Theta], {\[Theta], 0, 3 Pi}, BaseStyle -> Red, PolarAxes -> True]
Dec
12
comment How can I pass arguments to Module without being reinterpreted each time they appear inside it?
@Rorschach first of all, I was not answering, just giving an observation. But there is a difference between lm+mat2 and lm+lm. In one case mat2 is global, while in the second case it is local. There could be difference there in how and/or where each is allocated, or some overhead to access local module level heap. But not knowing internals of Mathematica, this is all speculation.
Dec
12
comment How can I combine NIntegrate with NDSolve?
is this different than your other question how-can-i-perform-nintegrate-with-ndsolve ?
Dec
12
comment How can I pass arguments to Module without being reinterpreted each time they appear inside it?
The slow down is due to + using the new allocated matrix lm in Module context. You can see this by changing Module[{lm = mat}, lm + lm] to Module[{lm = 2*mat}, lm ] which is the same thing, but now its speed is similar to the second case where the + with with the global mat. So the slow down happens to due to adding, element by element, lm to lm in the module content. It should not really be this much slower. This is strange. With compiled languages, the compiler will see this and will do this at compile time!
Dec
11
comment How can I perform NIntegrate with NDSolve?
The solution to your ODE is y(t)=0.
Dec
9
comment How to know the string data/settings, of some options/functions
@MikeHoneychurch It looks like something that could be re-written for this question though? that might be possible. I do not know now. When finals are over, will see if I can change it to do what is being asked here. Unless someone has a better answer meanwhile.
Dec
9
comment How to know the string data/settings, of some options/functions
@MikeHoneychurch It was this how-to-extract-a-list-of-available-method-s but it does not work on the above examples. I just tried it.
Dec
8
comment About a simple differential equation
you are right. I have used $y'(0)=1$ and not $y'(0)=-1$ by mistake when I typed the ODE. That is why Maple gave the answer I showed in the screen shot above. Here is the corrected ODE below. Maple now do not solve it. It gives division by zero error. !Mathematica graphics
Dec
8
comment About a simple differential equation
The solution $y=e^x$ does satisfy the ode and the initial conditions.
Dec
8
comment About a simple differential equation
@MarcoB the solution $y=e^x$ seems to be correct. Maple gives that answer: !Mathematica graphics
Dec
6
comment When slope is undefined, output is undefined instead of error message
Why not simply use slope[p_, q_] := Module[{r = run[p, q]}, If[r == 0, Infinity, rise[p, q]/r]]; ? You can change the definition as needed to handle the special case. I do not know what logic you are using. You change the above as needed to check for this special case and return different result if needed.
Dec
3
comment Can I emulate Wolfram's automatic package updating in my own packages?
I did not know that WRI did this. But this seems to me to be a bad idea. I'd rather get a notification that there is a new package version, and let the user decide when and if they want to update. You can make the update very easy, sure. But I do not want external software to update anything on my PC without me knowing about it.
Nov
29
comment Back from transfer function (s-domain) to differential equation (in t-domain)
@JanEerland You need to have the function tfToDiff defined first.
Nov
22
comment How can I export 3D plots as vector graphics?
May be this was done as temporary solution until WRI adds true vector graphics export to 3D plots. May be in version 11 it will do true svg for 3D.
Nov
22
comment How can I export 3D plots as vector graphics?
I tried the same thing with 2D plot, and now it is true svg format (vector graphics). So it seems Mathematica does not really support true svg with 3D. Only 2D type plots? For 3D it uses png data and just puts it inside svg file (same with pdf, it puts endcoded png image data inside pdf)
Nov
22
comment How can I export 3D plots as vector graphics?
When I exported it as svg, and looked at the .svg file using editor, I see Mathematica is actually making .png image inside and just encoding the image data. Here is the line: <image id="image83" width="360" height="287" xlink:href="data:image/png;base64,iVBOR..... so it looks like Mathematica does not really support true svg. It just wraps the png encoded data inside an svg file!
Nov
22
comment How can I export 3D plots as vector graphics?
try "svg" reference.wolfram.com/language/ref/format/SVG.html
Aug
4
comment Laplace: from differential equation to transfer function
@Phab I do not have 10.2, but I just tried it on 10.1 and it works: !Mathematica graphics so I really do not know why it would not work in 10.2. I am waiting for version 11 before I upgrade again.
Aug
3
comment How to clear everything in Mathematica?
try CleanSlate package I do not know if it still works on V 10 or not. CleanSlate, tries to do everything possible to return the kernel to the state it was in when the CleanSlate.m package was initially loaded (I myself, when I want to make sure everything is clear, just restart the kernel)