<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jeneshicc</author_name>
  <author_url>https://blog.hatena.ne.jp/jeneshicc/</author_url>
  <blog_title>落書き、時々落学</blog_title>
  <blog_url>https://jeneshicc.hatenadiary.org/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>Haskell</anon>
  </categories>
  <description>ちょっと，連立合同方程式を解く必要がでてきたので，実装してみた． ここで，invMod n p = n^(-1) (mod p)． -- Input: 互いに素な整数 m1,m2,...,mn, 整数 a1,a2,...,an -- Output: 連立合同方程式の解 x in Zm s.t. x = ai (mod mi) congruence :: (Integral a) =&gt; [a] -&gt; [a] -&gt; a congruence ms as = (`mod` m).sum.zipWith3 add as vs $ us where m = product ms us = [div m …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20090716%2F1247756328&quot; title=&quot;連立合同方程式 - 落書き、時々落学&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-07-16 23:58:48</published>
  <title>連立合同方程式</title>
  <type>rich</type>
  <url>https://jeneshicc.hatenadiary.org/entry/20090716/1247756328</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
