Click here to Skip to main content
11,410,405 members (43,752 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Matlab
The function F(x) is a polynomial of degree 3.
And given the values of x and y = F(x) mod 251
it is required to reconstruct the polynomial F(x)
x is finite and has only 3 discrete values
how could we solve this using lagrange interpolation

hi
if i have used modulo function in the polynomial then how can i use lagrange interpolation
Posted 31-Dec-12 3:20am
Edited 31-Dec-12 22:02pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Start from here and it should help you out: Matlab - Lagrange Interpolation Polynomial[^]
General info about the same: Wiki Lagrange polynomial[^]

Try out!
  Permalink  
Comments
terasajan at 2-Jan-13 3:09am
   
hi
if i have used modulo function in the polynomial then how can i use lagrange interpolation
Sandeep Mewara at 2-Jan-13 4:08am
   
Did you go through the MATLAB mathwork's link?
terasajan at 3-Jan-13 4:17am
   
thank u sir
yes i did went through the links
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

hi
if i have used modulo function in the polynomial then how lagrange interpolation function can be used
  Permalink  
Comments
Richard MacCutchan at 1-Jan-13 5:23am
   
Do not post questions as Solutions. If you have question to ask someone who has replied then use the "Have a Question or Comment" link below their answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 129
1 Sascha Lefévre 95
2 Maciej Los 68
3 BillWoodruff 60
4 OriginalGriff 60
0 Sergey Alexandrovich Kryukov 8,755
1 OriginalGriff 6,915
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100