acer

31344 Reputation

29 Badges

19 years, 118 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@fnavarro Suppose that the nm is the string denoting the filename.

Suppose that the text file already exists.

Then, in any subsequent Maple session you can do the following, to add additional content to the end of the file, ie. to append to it:

  FileTools:-Text:-Open(fn,':-append'):
  FileTools:-Text:-WriteLine(fn, "%a\n",  some_new_thing ):

See the Open command's Help page, which documents choices of mode in which to open the file.

@sidyly1211 What do the three colored sections of your 2D plot represent?

Your worksheet has three functions, LE,ME,NE. How do they relate to the three areas in your attached image?

For example, does that 2D image represent something like which of the three is greatest (or least). Or...?

Please don't spawn wholly separate new Question threads for this same system (esp. just trying to use the same code in an Answer here).

Duplicate Question threads get flagged as such, and may be deleted.

You could add a close followup query here.

Or (if it's really a significantly different variant) you can use the Branch button at the bottom of this Question's body and so spawn a new Question that automatically has cross-reference links. Otherwise it's not helpful for readers to not have the full context, when reading either.

The NAG and CUBA sources are compiled from C source to shared objects. For each there is also a C bridging function.

The bridging functions are accessed from Maple via its external-calling mechanism.

The integrands are turned into Maple procs, which are passed out to the bridging functions and there set up as C functions (which can do call-back into Maple) which are passed as handles to the NAG/CUBA function.

There are two flavors of call-back, evalhf mode (tried first) and evalf mode (fallback).

@Carl Love I did that so that the Variable palette gets updated. I just wanted it at the top-level, and didn't have time to get fancier.

I didn't look at whether I could use anything from the _UIUtils package.

To the OP: I didn't mention it, but naturally the getassumptions command could also be used to programmatically work with the assumptions in some other way, eg. put them all in a nice Table, having the RealRanges typeset, etc. It was the OP who mentioned the Variable palette, so I tried for just that.

@salim-barzani It's unclear what you are trying to convey.

You expression is not a (nonconstant) polynomial in x. It is also not a polynomial in xi.

You have not explained what you mean by "find parameter", or "change parameters".

It's not just that your explanation is still missing merely a few parts. It's that an explanation is still missing.

@Ronan Sorry, I misread part of that followup as a request to allow a few (hard-coded) misspellings.

@Ronan Does this do more of what you're after?

I've added some alternate spellings for the index keys. And your type checks seem ok.

2024-11-22_Q_Projective_Vector_Format_ac_Rc_ac.mw


ps. That is not the only way to do that type. And it's certainly not the most graceful. But I'd like to point out that you can pretty much always use type,satifies to do pretty much any arbitrary predicate check.

Next time could plese use the Branch button right below your previous Question's body?

That automatically inserts cross-reference URLs into both the new and the old Question. It's not so helpful if readers of either Question thread don't know that it's part of a multi-thread discussion.

Can all your unknowns be taken as being purely real-valued? If so then can you apply the evalc command to your expression.

Note that you have as yet given no explanation of what it is that you're trying to accomplish.

@Scot Gould Sorry to repeat it, but there is also that same Vector/sum example with explanation on the sum,details Help page.

You can put close followups to this here, instead of spawning wholly separate new Question threads on it.

If the material is on the same topic, but significantly different, then you could use the Branch button at the bottom of your Question's main body, to spawn a new Question that automatically includes cross-reference links. (Without the links, knowledge and details and attempts are hidden from unsuspecting readers, which is not at all useful.)

Duplicate un-branched Questions get flagged as such and may be deleted.

@AHSAN Well, I'd already seen the y=h=k+(1-k)*x related stuff in your sheet even before your last comment. It wasn't making full sense to me even with that knowledge. I don't know why you chose that full paramSet earlier, and how it's justified to pass those equations to dsolve and now (apparently, according to you) utilize that dsolve solution in this x<>0, y=k+(1-k)*x situation. I was wondering whether possibly you wanted/intended a dchange in the formula (or the DE passed), or to call dsolve again, or... soemthing else. Also, using the range 0..1 for both y and (apparently) x also seems unclear to me.

Your worksheet has almost no explanation of justification of its steps. Your previous two Replies' comments don't make the details clear to me.

You wrote, "...we now need to use the solution of u(y) in Eq. (1) and plot the solution for diff(p(x), x), against x=0..1". Now, your formula in Eq.1, which you equate to dpdx, is a function of y, not of x. Is dchange what you want!? Or...!?

What of the range?

And why use the earlier solution from dsolve, when you say that relates to x=0? What did that mean?

Are there not infinitely many solutions, with x9 arbitrary and the others all zero?

What other ranges do you know, which have roots?

Download question1118_ac.mw

@AHSAN I don't see how you've explained anything. You get the same plot as before (in two ways) if instead you use the LHS of your eq1.

Help_Numeric_Solution_ac3.mw

Again, you don't need to "extract" the parts of the dsolve result to do that; the odeplot command handles such a formula automatically.

But now I've shown you one way with the extracted procedures from dsolve (correcting you attempt), and also two ways without having do do that more complicated approach.

All three produce the same plots. If that doesn't match your expectation for the plots then I suggest you look for another kind of cause.

For example: what is the role that you imagine to be played by the name x? You write of dpdx. But the independent variable in your differential equations is y. What exactly (and in proper detail, please), in your mind, is the relationship between y and x? I think that your posting is unclear on this.

Also, I've merely corrected your faulty substitution and the dsolve return. I'm just following your approach to the same dpdx formula -- except I've had to guess that the y vs x muddle because you haven't explained it. Perhaps you've made some miscalculation?

4 5 6 7 8 9 10 Last Page 6 of 574