Ronan

1361 Reputation

15 Badges

13 years, 209 days
East Grinstead, United Kingdom

MaplePrimes Activity


These are replies submitted by Ronan

@acer That does what I want. I was just trying to use them as a pair of standalone procedures, that would work together. It can be difficult to precisely ask a question when not knowing the best phrasing to use. "Export" was probably not a great choice.

@acer I used the two above routines in an answer to this question

Determine whether a point with known coordinates is within a given polygon with known verticies - MaplePrimes

As they are inside a package I wrote for myself nobody else has that package. So with(RonanRoutines) ... won't work for anyone else who downloads the document as far as I understand. Am I mistaken here?

@mmcdara Very nice.

@Carl Love I had noticed that too. Is there a way to see the steps simplify takes? Maybe it only uses each euqation once. Years ago when I doing simplification or substitutions into a polynomail along the lines of reducing a 5th order to 4th order I found I had to repetatively use algsubs in a loop to get the order from 5 down to 4. Those equations where huge so one couldnt really follow what was happening. So i am presuming this could be a slightly similar phenomea. 

@Carl Love Very nice. I have now  re-found this data in the help. I had read it  several years ago but at that time did not have an immediate application. Voted up.

Looking at the new application site. I am not a fan of the whole tile turning bule when mousing over it. That is quite distracting and hides what it is. The tiles could be made smaller so more are visible too.

 

OK. Use the green up arrow button and post a copy of your work sheet. Then people can see what you are doing.

@acer  Ahh,  I wasn't at my pc when I posted the answer. My mistake.

@Anthrazit  did you try this op(1,b)<op(1,a) or is( op(1,b)<op(1,a)). That works for me in Maple2021.1 using the Units-Standard package. Yes it's probable a bug.

@Anthrazit This gives a True answer.  This post should really be converted to a question.

if is(op(1, b) < op(1, a)) then
    "True";
else
    "False";
end if

Edit:-
I purposely kept in "is" because it forces evaluation.

if 1 < sqrt(2) then
    "True";
else
    "False";
end if;
Error, cannot determine if this expression is true or false: 1 < 2^(1/2)
if is(1 < sqrt(2)) then
    "True";
else
    "False";
end if;

You can see the problem  by looking at op(A), it has two parts when A is non  zero i.e. value,unit but only one part when A is zero i.e. value.

Try if is(a<b) then "True" else ""False" end if

@acer  Just out of interest. Are there other situations outside of trig. where solve misses solutions? I mean towards relatively simple type equations like what is presented above. I realise that might be hard to define.

@acer  Thank you. Nice to read the history and orign of such things.

@tomleslie Am using this version. Thank you.

@vv     @tomleslie explained the cause of my problem well in the first reply. I have since converted the formula.

First 17 18 19 20 21 22 23 Last Page 19 of 32