## 24 Reputation

14 years, 132 days

## Finding elements adress in matrix...

Maple

Hello!

Is there a function that allows finding address of array/matrix's element equal or closest to given number. Or I have to write a loop.

en example

array

[1 2 5 6 9 10]

given value

5.1

the closest is 5 and it is in 3th column.

Regards,

Smagliczka

## Curve fitting ...

Maple

Geetings!

I try to fit curve through set of points that I read  from a graph. Then use equation of this curve to define a function function. Only bspline approximation gave acceptable result. But how can I use it in defining a function?

XvalsCf := [0, 5, 10, 25, 50, 100, 140, 200, 250, 300, 400]

valsCf := [0.5e-2, 0.4e-2, 0.3e-2, 0.26e-2, 0.23e-2, 0.21e-2, 0.2e-2, 0.19e-2, 0.18e-2, 0.175e-2, 0.15e-2]

Another issue is in "surface fitting". Graph shows propeller efficiency curves. I'd like to get equation of surface spread on those curves.  Axis x is an angle, axis y V/nD and z is efficiency.

Again using spline/bspline approximation is nesssary to get accurate results.

I will use this efficiecny surface function equation in drive optimization .

Is creation of such surface/function  possible in maple.

Smagliczka

## Adding finctions values and plot issue...

Maple

Hello,

I have two functions:

Gx(x)=0.025+(x^2)/40

Hxi(x)=0.006+0.5*x^2

with values I'd like to add

Fx(x)=Gx(x)+Hxi(x)

and plot new function

I use

F=plot(Fx(x),x=0..2)

G=plot(Gx(x),x=0..2)

H=plot(Hxi(x),x=0..2)

then:

display(F,G,H)

But it doesnt work. Then when I displaed

By the way, Hxi are correction, in function of x.

The second problem with I have is with ploting.

 Page 1 of 1
﻿