## 145 Reputation

7 years, 333 days

## Numerical value for some quadratic equat...

Maple

I have this piece of command in maple which I want to get a numerical value out of it, but instead of that it shows the sines without their numerical values. What to add to these commands to get a numerical value for x? (I checked maple's help for "numerical value", but perhaps I am a bit impatient and didn't find such a thing):

with(Degrees);
solve(x^2 = (4/sind(10))^2 + ((4 + x)/sind(20))^2 - 8*(4 + x)/(sind(10)*sind(20)), x);

I get the following:

1                        /  /
---------------------------------------------- \8 \16
2
4 Degrees:-sind(10)  - 4 Degrees:-sind(10) + 1

2                                        2
Degrees:-sind(10)  Degrees:-cosd(10) - 8 Degrees:-sind(10)  -

/                     4                  2
\256 Degrees:-sind(10)  Degrees:-cosd(10)

4
- 192 Degrees:-sind(10)  Degrees:-cosd(10)

4
+ 32 Degrees:-sind(10)

3
- 64 Degrees:-sind(10)  Degrees:-cosd(10)

3
+ 24 Degrees:-sind(10)

2
+ 16 Degrees:-sind(10)  Degrees:-cosd(10)

\      \\
- 2 Degrees:-sind(10)/^(1/2)//,

1                        /  /
---------------------------------------------- \8 \16
2
4 Degrees:-sind(10)  - 4 Degrees:-sind(10) + 1

2                                        2
Degrees:-sind(10)  Degrees:-cosd(10) - 8 Degrees:-sind(10)  +

/                     4                  2
\256 Degrees:-sind(10)  Degrees:-cosd(10)

4
- 192 Degrees:-sind(10)  Degrees:-cosd(10)

4
+ 32 Degrees:-sind(10)

3
- 64 Degrees:-sind(10)  Degrees:-cosd(10)

3
+ 24 Degrees:-sind(10)

2
+ 16 Degrees:-sind(10)  Degrees:-cosd(10)

\      \\
- 2 Degrees:-sind(10)/^(1/2)//

## Given a function, I want maple to produc...

Maple 2021

I remember that once there was an option to provide to maple a given function and it produced a suitable DE that this function solves.

Can you remind me how to do it?

I remember there was such an option in the previous versions of maple.

## How to plot two functions on different d...

Maple 2021

I have the function: f(x)= sqrt(x) for x>=0; f(x)=1/x for x<0 and I would like to plot the function.

How exactly to implement this?

## How can I make maple to show me the Eucl...

Maple 2021

Suppose I want to calculate gcd(g(x),f(x))=a(x)f(x)+b(x)g(x) for two polynomial, i.e finding the RHS representation of the gcd, then how to implement this in maple?

I know of the command GCD(f(x),g(x)) but how to find the RHS representation?

Thanks!

## Defining a piecewise function....

Maple 2021

Suppose I have a real function which is defined on these intervals [x0,x1],...[x1,xn], and on each interval it's defined differently, for example f(x):=sqrt(x) if x>=0; f(x):=1/x if x<0.

For the last example I tried my last resort to use the assuming operator the following way:

f := ((x -> sqrt(x)) assuming (0 <= x)) or ((x -> 1/x) assuming (x < 0)) plot(f, x)

But it doesn't seem to be working, how do you propose to define this function? perhaps proc?

I tried looking for an example in maple's help, but didn't find any.